HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
SdfPredicateParamNamesAndDefaults Class Reference

#include <predicateLibrary.h>

Classes

class  Param
 

Public Member Functions

 SdfPredicateParamNamesAndDefaults (std::initializer_list< Param > const &params)
 Construct or implicitly convert from initializer_list<Param>. More...
 
SDF_API bool CheckValidity () const
 
std::vector< Param > constGetParams () const &
 Return a reference to the parameters in a vector. More...
 
std::vector< ParamGetParams () const &&
 Move-return the parameters in a vector. More...
 

Detailed Description

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.

Constructor & Destructor Documentation

SdfPredicateParamNamesAndDefaults::SdfPredicateParamNamesAndDefaults ( std::initializer_list< Param > const params)
inline

Construct or implicitly convert from initializer_list<Param>.

Definition at line 70 of file predicateLibrary.h.

Member Function Documentation

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.

std::vector<Param> const& SdfPredicateParamNamesAndDefaults::GetParams ( ) const
inline

Return a reference to the parameters in a vector.

Definition at line 82 of file predicateLibrary.h.

std::vector<Param> SdfPredicateParamNamesAndDefaults::GetParams ( ) const
inline

Move-return the parameters in a vector.

Definition at line 87 of file predicateLibrary.h.


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