7#ifndef PXR_EXEC_VDF_OUTPUT_H
8#define PXR_EXEC_VDF_OUTPUT_H
14#include "pxr/exec/vdf/api.h"
17#include <tbb/spin_mutex.h>
19PXR_NAMESPACE_OPEN_SCOPE
52 return _connections.
size();
77 return _associatedInput;
86 return _affectsMask.
IsEmpty() ? nullptr : &_affectsMask;
187 tbb::spin_mutex _connectionsMutex;
192PXR_NAMESPACE_CLOSE_SCOPE
size_type size() const
Returns the current size of the vector.
Token for efficient comparison, assignment, and hashing of known strings.
A class that fully represents a connection between two VdfNodes.
A VdfIsolatedSubnetwork builds a collection of VdfNodes and VdfConnections that are disconnected from...
A VdfMask is placed on connections to specify the data flowing through them.
bool IsEmpty() const
Returns true if this mask is empty, i.e.
A VdfNetwork is a collection of VdfNodes and their connections.
This is the base class for all nodes in a VdfNetwork.
A VdfOutput represents an output on a node.
size_t GetNumConnections() const
Returns the number of connections for this output.
const VdfNode & GetNode() const
Returns the owning node for this output.
VDF_API VdfOutput(VdfNode &owner, int specIndex)
Constructor.
VDF_API void SetAssociatedInput(const VdfInput *input)
Sets the input associated with this output.
static VdfIndex GetIndexFromId(const VdfId id)
Get the output index from the output id.
VdfNode & GetNode()
Returns the non-const owning node for this output.
VDF_API int GetNumDataEntries() const
Returns the expected number of entries in the data computed at this output.
VDF_API std::string GetDebugName() const
Returns the debug name for this output.
VdfId GetId() const
The unique id of this output.
VDF_API void SetAffectsMask(const VdfMask &mask)
Sets the affects mask for this output.
VDF_API const VdfOutputSpec & GetSpec() const
Returns the connector specification object for this output.
VDF_API const TfToken & GetName() const
Returns the name of this output.
const VdfInput * GetAssociatedInput() const
Returns the in/out connector associated with this output.
VDF_API ~VdfOutput()
Destructor.
const VdfMask * GetAffectsMask() const
Returns the mask of elements that this output is expected to modify from its corresponding input.
static VdfVersion GetVersionFromId(const VdfId id)
Get the output version from the output id.
const VdfConnectionVector & GetConnections() const
Returns a list of connections connected to this output.
A VdfOuptutSpec describes an output connector.
uint64_t VdfId
The unique identifier type for Vdf objects.
uint32_t VdfIndex
The index type for Vdf objects.
uint32_t VdfVersion
The version type for Vdf objects.