HDK
|
#include <predicateLibrary.h>
Classes | |
class | Param |
Public Member Functions | |
SdfPredicateParamNamesAndDefaults () | |
Default constructor produces empty set of names & defaults. More... | |
SdfPredicateParamNamesAndDefaults (std::initializer_list< Param > const ¶ms) | |
Construct or implicitly convert from initializer_list<Param>. More... | |
SDF_API bool | CheckValidity () const |
std::vector< Param > const & | GetParams () const & |
Return a reference to the parameters in a vector. More... | |
std::vector< Param > | GetParams () const && |
Move-return the parameters in a vector. More... | |
size_t | GetNumDefaults () const |
Return the number of params with default values. More... | |
Represents named function parameters, with optional default values. These are generally constructed via an initializer_list and specified in SdfPredicateLibrary::Define().
Valid parameter names and defaults have non-empty names, and all parameters following the first one with a default value must also have default values.
Definition at line 53 of file predicateLibrary.h.
|
inline |
Default constructor produces empty set of names & defaults.
Definition at line 71 of file predicateLibrary.h.
|
inline |
Construct or implicitly convert from initializer_list<Param>.
Definition at line 74 of file predicateLibrary.h.
SDF_API bool SdfPredicateParamNamesAndDefaults::CheckValidity | ( | ) | const |
Check that all parameters have non-empty names and that all paramters following the first with a default value also have default values. Issue TF_CODING_ERROR()s and return false if these conditions are violated, otherwise return true.
|
inline |
Return the number of params with default values.
Definition at line 97 of file predicateLibrary.h.
|
inline |
Return a reference to the parameters in a vector.
Definition at line 87 of file predicateLibrary.h.
|
inline |
Move-return the parameters in a vector.
Definition at line 92 of file predicateLibrary.h.