7#ifndef PXR_EXEC_VDF_INPUT_VALUES_POINTER_H
8#define PXR_EXEC_VDF_INPUT_VALUES_POINTER_H
21PXR_NAMESPACE_OPEN_SCOPE
75template <
typename T >
137template <
typename T >
186 _CopyInputValues(context, inputName);
189template <
typename T >
203 _size = it.ComputeSize();
204 T *copy =
new T[_size];
208 for (
size_t i = 0; !it.IsAtEnd(); ++i, ++it) {
216template <
typename T >
225PXR_NAMESPACE_CLOSE_SCOPE
Represents a range of contiguous elements.
Token for efficient comparison, assignment, and hashing of known strings.
A class that fully represents a connection between two VdfNodes.
const VdfMask & GetMask() const
Returns the mask for this connection.
A context is the parameter bundle passed to callbacks of computations.
Base class for libVdf iterators.
VDF_API const VdfVector * _GetInputValue(const VdfContext &context, const VdfConnection &connection, const VdfMask &mask) const
Returns a vector for reading an input value.
const VdfNode & _GetNode(const VdfContext &context) const
Returns the current node being run.
A VdfMask is placed on connections to specify the data flowing through them.
bool IsContiguous() const
Returns true if the set bits in the mask are contiguous.
bool IsAllZeros() const
Returns true if this mask has all entries unset.
size_t GetFirstSet() const
Returns the first set bit in the mask.
size_t GetNumSet() const
Returns the number of set bits in the mask.
const VdfInput * GetInput(const TfToken &inputName) const
Returns the connector named inputName, returns NULL if no input of that name exists.
An iterator that provides read access to input values using a context.
A read-only accessor for low-level acces to the contents of the VdfVector.
bool IsBoxed() const
Returns true if this accessor is providing element-wise access into a boxed container.
bool IsEmpty() const
Returns true if the vector is empty.
size_t GetNumValues() const
Returns the size of the vector, i.e.
This class is used to abstract away knowledge of the cache data used for each node.