|
HDK
|
#include <predicateLibrary.h>
Public Types | |
| enum | Constancy { ConstantOverDescendants, MayVaryOverDescendants } |
| using | UnspecifiedBoolType = bool(SdfPredicateFunctionResult::*) |
Public Member Functions | |
| constexpr | SdfPredicateFunctionResult () |
| SdfPredicateFunctionResult (bool value) | |
Construct with value and MayVaryOverDescendants constancy. More... | |
| SdfPredicateFunctionResult (bool value, Constancy constancy) | |
Construct with value and constancy. More... | |
| bool | GetValue () const |
| Return the result value. More... | |
| Constancy | GetConstancy () const |
| Return the result constancy. More... | |
| bool | IsConstant () const |
| Return true if this result's constancy is ConstantOverDescendants. More... | |
| operator UnspecifiedBoolType () const | |
| doxygen More... | |
| SdfPredicateFunctionResult | operator! () const |
| Return a result with the opposite value but the same constancy. More... | |
| void | SetAndPropagateConstancy (SdfPredicateFunctionResult other) |
Static Public Member Functions | |
| static SdfPredicateFunctionResult | MakeConstant (bool value) |
Create with value and 'ConstantOverDescendants'. More... | |
| static SdfPredicateFunctionResult | MakeVarying (bool value) |
Create with value and 'MayVaryOverDescendants'. More... | |
Friends | |
| bool | operator== (SdfPredicateFunctionResult lhs, SdfPredicateFunctionResult rhs) |
| bool | operator!= (SdfPredicateFunctionResult lhs, SdfPredicateFunctionResult rhs) |
| bool | operator== (SdfPredicateFunctionResult pfr, bool rhs) |
| bool | operator== (bool lhs, SdfPredicateFunctionResult pfr) |
| bool | operator!= (SdfPredicateFunctionResult pfr, bool rhs) |
| bool | operator!= (bool lhs, SdfPredicateFunctionResult pfr) |
Represents the result of a predicate function: a pair of the boolean result and a Constancy token indicating whether the function result is constant over "descendant" objects, or that it might vary over "descendant" objects.
Definition at line 97 of file predicateLibrary.h.
| using SdfPredicateFunctionResult::UnspecifiedBoolType = bool (SdfPredicateFunctionResult::*) |
Definition at line 141 of file predicateLibrary.h.
| Enumerator | |
|---|---|
| ConstantOverDescendants | |
| MayVaryOverDescendants | |
Definition at line 100 of file predicateLibrary.h.
|
inline |
Default construction produces a 'false' result that 'MayVaryOverDescendants'.
Definition at line 104 of file predicateLibrary.h.
|
inlineexplicit |
Construct with value and MayVaryOverDescendants constancy.
Definition at line 108 of file predicateLibrary.h.
|
inline |
Construct with value and constancy.
Definition at line 112 of file predicateLibrary.h.
|
inline |
Return the result constancy.
Definition at line 131 of file predicateLibrary.h.
|
inline |
Return the result value.
Definition at line 126 of file predicateLibrary.h.
|
inline |
Return true if this result's constancy is ConstantOverDescendants.
Definition at line 136 of file predicateLibrary.h.
|
inlinestatic |
Create with value and 'ConstantOverDescendants'.
Definition at line 116 of file predicateLibrary.h.
|
inlinestatic |
Create with value and 'MayVaryOverDescendants'.
Definition at line 121 of file predicateLibrary.h.
|
inline |
|
inline |
Return a result with the opposite value but the same constancy.
Definition at line 150 of file predicateLibrary.h.
|
inline |
Set this result's value to other's value, and propagate constancy; if both this and other are ConstantOverDescendants, this object's constancy remains ConstantOverDescendants. Otherwise set this object's constancy to MayVaryOverDescendants.
Definition at line 158 of file predicateLibrary.h.
|
friend |
Definition at line 172 of file predicateLibrary.h.
|
friend |
Definition at line 183 of file predicateLibrary.h.
|
friend |
Definition at line 186 of file predicateLibrary.h.
|
friend |
Definition at line 167 of file predicateLibrary.h.
|
friend |
Definition at line 177 of file predicateLibrary.h.
|
friend |
Definition at line 180 of file predicateLibrary.h.