HDK
|
#include <predicateLibrary.h>
Public Member Functions | |
operator bool () const | |
Return true if this program has any ops, false otherwise. More... | |
bool | operator() (DomainType obj) const |
Run the predicate program on obj , and return the result. More... | |
Friends | |
SdfPredicateProgram | SdfLinkPredicateExpression (SdfPredicateExpression const &expr, SdfPredicateLibrary< DomainType > const &lib) |
Represents a callable "program", the result of linking an SdfPredicateExpression with an SdfPredicateLibrary via SdfLinkPredicateExpression().
The main public interface this class exposes is the function-call operator(), accepting a single argument of type DomainType
, as it is specified to the template. Consider using const Type &
as the DomainType
for both SdfPredicateProgram and SdfPredicateLibrary if it's important that domain type instances aren't passed by-value.
Definition at line 137 of file predicateLibrary.h.
|
inlineexplicit |
Return true if this program has any ops, false otherwise.
Definition at line 77 of file predicateProgram.h.
|
inline |
Run the predicate program on obj
, and return the result.
Definition at line 83 of file predicateProgram.h.
|
friend |
Link expr
with lib
and return a callable program that evaluates expr
on given objects of the DomainType
. If linking expr
and lib
fails, issue a TF_RUNTIME_ERROR with a message, and return an empty program.
Definition at line 142 of file predicateProgram.h.