Loading...
Searching...
No Matches
PcpDynamicFileFormatDependencyData Class Reference

Contains the necessary information for storing a prim index's dependency on dynamic file format arguments and determining if a field change affects the prim index. More...

#include <dynamicFileFormatDependencyData.h>

Public Member Functions

PCP_API PcpDynamicFileFormatDependencyData ()=default
 Default constructor. This data will be empty.
 
PCP_API PcpDynamicFileFormatDependencyData (PcpDynamicFileFormatDependencyData &&)=default
 Move constructor.
 
PCP_API PcpDynamicFileFormatDependencyData (const PcpDynamicFileFormatDependencyData &rhs)
 Copy constructor.
 
PcpDynamicFileFormatDependencyDataoperator= (PcpDynamicFileFormatDependencyData &&rhs)
 Move assignment operator.
 
PcpDynamicFileFormatDependencyDataoperator= (const PcpDynamicFileFormatDependencyData &rhs)
 Copy assignment operator.
 
void Swap (PcpDynamicFileFormatDependencyData &rhs)
 Swap the contents of this dependency data with rhs.
 
void swap (PcpDynamicFileFormatDependencyData &rhs)
 Same as Swap(), but standard name.
 
bool IsEmpty () const
 Returns whether this dependency data is empty.
 
PCP_API void AddDependencyContext (const PcpDynamicFileFormatInterface *dynamicFileFormat, VtValue &&dependencyContextData, TfToken::Set &&composedFieldNames, TfToken::Set &&composedAttributeNames)
 Adds dependency info from a single context that generated dynamic file format arguments (usually a payload arc in the graph).
 
PCP_API void AppendDependencyData (PcpDynamicFileFormatDependencyData &&dependencyData)
 Takes all the dependency data from dependencyData and adds it to this dependency.
 
PCP_API const TfToken::SetGetRelevantFieldNames () const
 Returns a list of field names that were composed for any of the dependency contexts that were added to this dependency.
 
PCP_API const TfToken::SetGetRelevantAttributeNames () const
 Returns a list of attribute names that were composed for any of the dependency contexts that were added to this dependency.
 
PCP_API bool CanFieldChangeAffectFileFormatArguments (const TfToken &fieldName, const VtValue &oldValue, const VtValue &newValue) const
 Given a field name and the changed field values in oldValue and newValue, this returns whether this change can affect any of the file format arguments generated by any of the contexts stored in this dependency.
 
PCP_API bool CanAttributeDefaultValueChangeAffectFileFormatArguments (const TfToken &attributeName, const VtValue &oldValue, const VtValue &newValue) const
 Given an attributeName and the changed attribute default values in oldValue and newValue, this returns whether this default value change can affect any of the file format arguments generated by any of the contexts stored in this dependency.
 

Detailed Description

Contains the necessary information for storing a prim index's dependency on dynamic file format arguments and determining if a field change affects the prim index.

This data structure does not store the prim index or its path itself and is expected to be the data in some other data structure that maps prim indexes to its dependencies.

Definition at line 50 of file dynamicFileFormatDependencyData.h.

Constructor & Destructor Documentation

◆ PcpDynamicFileFormatDependencyData() [1/3]

Default constructor. This data will be empty.

◆ PcpDynamicFileFormatDependencyData() [2/3]

Move constructor.

◆ PcpDynamicFileFormatDependencyData() [3/3]

Copy constructor.

Member Function Documentation

◆ AddDependencyContext()

PCP_API void AddDependencyContext ( const PcpDynamicFileFormatInterface dynamicFileFormat,
VtValue &&  dependencyContextData,
TfToken::Set &&  composedFieldNames,
TfToken::Set &&  composedAttributeNames 
)

Adds dependency info from a single context that generated dynamic file format arguments (usually a payload arc in the graph).


dynamicFileFormat is the file format that generated the arguments. dependencyContextData is custom dependency information generated when the file format generated its arguments. composedFieldNames is a list of the fields that were composed on the prim to generate arguments.

◆ AppendDependencyData()

PCP_API void AppendDependencyData ( PcpDynamicFileFormatDependencyData &&  dependencyData)

Takes all the dependency data from dependencyData and adds it to this dependency.

◆ CanAttributeDefaultValueChangeAffectFileFormatArguments()

PCP_API bool CanAttributeDefaultValueChangeAffectFileFormatArguments ( const TfToken attributeName,
const VtValue oldValue,
const VtValue newValue 
) const

Given an attributeName and the changed attribute default values in oldValue and newValue, this returns whether this default value change can affect any of the file format arguments generated by any of the contexts stored in this dependency.

◆ CanFieldChangeAffectFileFormatArguments()

PCP_API bool CanFieldChangeAffectFileFormatArguments ( const TfToken fieldName,
const VtValue oldValue,
const VtValue newValue 
) const

Given a field name and the changed field values in oldValue and newValue, this returns whether this change can affect any of the file format arguments generated by any of the contexts stored in this dependency.

◆ GetRelevantAttributeNames()

PCP_API const TfToken::Set & GetRelevantAttributeNames ( ) const

Returns a list of attribute names that were composed for any of the dependency contexts that were added to this dependency.

◆ GetRelevantFieldNames()

PCP_API const TfToken::Set & GetRelevantFieldNames ( ) const

Returns a list of field names that were composed for any of the dependency contexts that were added to this dependency.

◆ IsEmpty()

bool IsEmpty ( ) const
inline

Returns whether this dependency data is empty.

Definition at line 90 of file dynamicFileFormatDependencyData.h.

◆ operator=() [1/2]

Copy assignment operator.

Definition at line 75 of file dynamicFileFormatDependencyData.h.

◆ operator=() [2/2]

Move assignment operator.

Definition at line 68 of file dynamicFileFormatDependencyData.h.

◆ Swap()

void Swap ( PcpDynamicFileFormatDependencyData rhs)
inline

Swap the contents of this dependency data with rhs.

Definition at line 82 of file dynamicFileFormatDependencyData.h.

◆ swap()

void swap ( PcpDynamicFileFormatDependencyData rhs)
inline

Same as Swap(), but standard name.

Definition at line 87 of file dynamicFileFormatDependencyData.h.


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