22 class DerivedNodeTree;
68 const NodeRef *node_ref_ =
nullptr;
80 operator bool()
const;
115 operator bool()
const;
204 std::string
to_dot()
const;
217 namespace derived_node_tree_types {
218 using namespace node_tree_ref_types;
238 return parent_context_;
248 return children_.lookup_default(&
node,
nullptr);
253 return *derived_tree_;
258 return parent_context_ ==
nullptr;
268 : context_(
context), node_ref_(node_ref)
285 return a.context_ ==
b.context_ &&
a.node_ref_ ==
b.node_ref_;
293 inline DNode::operator
bool()
const
295 return node_ref_ !=
nullptr;
310 return {context_, &node_ref_->
input(index)};
315 return {context_, &node_ref_->
output(index)};
335 : context_(
context), socket_ref_(socket_ref)
341 :
DSocket(input_socket.context_, input_socket.socket_ref_)
346 :
DSocket(output_socket.context_, output_socket.socket_ref_)
362 return a.context_ ==
b.context_ &&
a.socket_ref_ ==
b.socket_ref_;
370 inline DSocket::operator
bool()
const
372 return socket_ref_ !=
nullptr;
451 return *root_context_;
456 return used_node_tree_refs_;
DInputSocket input_by_identifier(StringRef identifier) const
const DTreeContext * context() const
const NodeRef * operator->() const
DOutputSocket output(int index) const
friend bool operator==(const DNode &a, const DNode &b)
const NodeRef * node_ref() const
friend bool operator!=(const DNode &a, const DNode &b)
DOutputSocket output_by_identifier(StringRef identifier) const
DInputSocket input(int index) const
DInputSocket get_corresponding_group_node_input() const
DInputSocket get_active_corresponding_group_output_socket() const
const OutputSocketRef * operator->() const
const OutputSocketRef * socket_ref() const
void foreach_target_socket(ForeachTargetSocketFn target_fn) const
const SocketRef * socket_ref_
const SocketRef * socket_ref() const
const DTreeContext * context() const
const SocketRef * operator->() const
const DTreeContext * context_
friend bool operator==(const DSocket &a, const DSocket &b)
friend bool operator!=(const DSocket &a, const DSocket &b)
const DTreeContext * parent_context() const
const DTreeContext * child_context(const NodeRef &node) const
const NodeRef * parent_node() const
const DerivedNodeTree & derived_tree() const
const NodeTreeRef & tree() const
std::string to_dot() const
bool has_link_cycles() const
Span< const NodeTreeRef * > used_node_tree_refs() const
DerivedNodeTree(bNodeTree &btree, NodeTreeRefMap &node_tree_refs)
bool has_undefined_nodes_or_sockets() const
const DTreeContext & root_context() const
void foreach_node(FunctionRef< void(DNode)> callback) const
const OutputSocketRef & output_by_identifier(StringRef identifier) const
const OutputSocketRef & output(int index) const
const InputSocketRef & input(int index) const
const InputSocketRef & input_by_identifier(StringRef identifier) const
const NodeTreeRef & tree() const
const NodeRef & node() const
const NodeTreeRef & tree() const
DEGForeachIDComponentCallback callback
SyclQueue void void size_t num_bytes void
bool operator!=(const DNode &a, const DNode &b)
bool operator==(const DNode &a, const DNode &b)
uint64_t get_default_hash_2(const T1 &v1, const T2 &v2)
static const pxr::TfToken b("b", pxr::TfToken::Immortal)
unsigned __int64 uint64_t
Vector< DSocket, 16 > sockets