![]() |
|
A VdfInputSpec describes an input connector. More...
#include <inputSpec.h>
Public Types | |
| enum | Access { READ = 0x1 , READWRITE = 0x2 } |
| Access limits the kinds of operations allowed on the connector. More... | |
Public Member Functions | |
| TF_MALLOC_TAG_NEW ("Vdf", "new VdfInputSpec") | |
| TfType | GetType () const |
| Returns the type of this spec. | |
| const TfToken & | GetName () const |
| Returns the name of this connector. | |
| VDF_API std::string | GetTypeName () const |
| Returns the name of this spec's type. | |
| const Access & | GetAccess () const |
| Returns the access of this connector. | |
| VDF_API bool | TypeMatches (const VdfOutputSpec &other) const |
Returns true if this connector spec and other have the same type and false otherwise. | |
| const TfToken & | GetAssociatedOutputName () const |
| Returns the name of the associated output, if any. | |
| bool | IsPrerequisite () const |
| Returns whether or not this connector is a prerequisite connector. | |
| VDF_API size_t | GetHash () const |
| Returns a hash for this instance. | |
| bool | operator== (const VdfInputSpec &rhs) const |
| Returns true, if two input specs are equal. | |
| bool | operator!= (const VdfInputSpec &rhs) const |
Static Public Member Functions | |
| template<typename T > | |
| static VdfInputSpec * | New (const TfToken &inName, const TfToken &outName, Access access, bool prerequisite) |
| static VdfInputSpec * | New (TfType type, const TfToken &inName, const TfToken &outName, Access access, bool prerequisite) |
A VdfInputSpec describes an input connector.
It stores typing information, access information and the connector's name.
Definition at line 29 of file inputSpec.h.
| enum Access |
Access limits the kinds of operations allowed on the connector.
Definition at line 35 of file inputSpec.h.
|
inline |
Returns the access of this connector.
Definition at line 75 of file inputSpec.h.
|
inline |
Returns the name of the associated output, if any.
If not set, returns the empty token.
Definition at line 85 of file inputSpec.h.
| VDF_API size_t GetHash | ( | ) | const |
Returns a hash for this instance.
|
inline |
Returns the name of this connector.
Definition at line 68 of file inputSpec.h.
|
inline |
Returns the type of this spec.
Definition at line 65 of file inputSpec.h.
| VDF_API std::string GetTypeName | ( | ) | const |
Returns the name of this spec's type.
|
inline |
Returns whether or not this connector is a prerequisite connector.
Prerequisite outputs are the only ones that can be accessed by VdfNode::GetRequiredReadsIterator(VdfContext). Once these have been computed, a node provides dynamic input dependency information via that method.
Definition at line 96 of file inputSpec.h.
|
inlinestatic |
Definition at line 41 of file inputSpec.h.
|
inlinestatic |
Definition at line 51 of file inputSpec.h.
|
inline |
Definition at line 111 of file inputSpec.h.
|
inline |
Returns true, if two input specs are equal.
Definition at line 104 of file inputSpec.h.
| VDF_API bool TypeMatches | ( | const VdfOutputSpec & | other | ) | const |
Returns true if this connector spec and other have the same type and false otherwise.