Loading...
Searching...
No Matches
VdfInputSpec Class Reference

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)
 

Detailed Description

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.

Member Enumeration Documentation

◆ Access

enum Access

Access limits the kinds of operations allowed on the connector.

Definition at line 35 of file inputSpec.h.

Member Function Documentation

◆ GetAccess()

const Access & GetAccess ( ) const
inline

Returns the access of this connector.

Definition at line 75 of file inputSpec.h.

◆ GetAssociatedOutputName()

const TfToken & GetAssociatedOutputName ( ) const
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.

◆ GetHash()

VDF_API size_t GetHash ( ) const

Returns a hash for this instance.

◆ GetName()

const TfToken & GetName ( ) const
inline

Returns the name of this connector.

Definition at line 68 of file inputSpec.h.

◆ GetType()

TfType GetType ( ) const
inline

Returns the type of this spec.

Definition at line 65 of file inputSpec.h.

◆ GetTypeName()

VDF_API std::string GetTypeName ( ) const

Returns the name of this spec's type.

◆ IsPrerequisite()

bool IsPrerequisite ( ) const
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.

◆ New() [1/2]

static VdfInputSpec * New ( const TfToken &  inName,
const TfToken &  outName,
Access  access,
bool  prerequisite 
)
inlinestatic

Definition at line 41 of file inputSpec.h.

◆ New() [2/2]

static VdfInputSpec * New ( TfType  type,
const TfToken &  inName,
const TfToken &  outName,
Access  access,
bool  prerequisite 
)
inlinestatic

Definition at line 51 of file inputSpec.h.

◆ operator!=()

bool operator!= ( const VdfInputSpec &  rhs) const
inline

Definition at line 111 of file inputSpec.h.

◆ operator==()

bool operator== ( const VdfInputSpec &  rhs) const
inline

Returns true, if two input specs are equal.

Definition at line 104 of file inputSpec.h.

◆ TypeMatches()

VDF_API bool TypeMatches ( const VdfOutputSpec &  other) const

Returns true if this connector spec and other have the same type and false otherwise.


The documentation for this class was generated from the following file: