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 ()
 Default constructor produces empty set of names & defaults. More...
 
 SdfPredicateParamNamesAndDefaults (std::initializer_list< Param > const &params)
 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< ParamGetParams () const &&
 Move-return the parameters in a vector. More...
 
size_t GetNumDefaults () const
 Return the number of params with default values. 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 ( )
inline

Default constructor produces empty set of names & defaults.

Definition at line 71 of file predicateLibrary.h.

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

Construct or implicitly convert from initializer_list<Param>.

Definition at line 74 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.

size_t SdfPredicateParamNamesAndDefaults::GetNumDefaults ( ) const
inline

Return the number of params with default values.

Definition at line 97 of file predicateLibrary.h.

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

Return a reference to the parameters in a vector.

Definition at line 87 of file predicateLibrary.h.

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

Move-return the parameters in a vector.

Definition at line 92 of file predicateLibrary.h.


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