Usd Notice Framework
0.7.0
|
Predicate functor which indicates whether a notice can be captured during a transaction. More...
#include <capturePredicate.h>
Public Member Functions | |
UNF_API | CapturePredicate (const CapturePredicateFunc &) |
Create predicate from a function . More... | |
UNF_API bool | operator() (const UnfNotice::StageNotice &) const |
Invoke boolean predicate on UnfNotice::StageNotice notice . | |
Static Public Member Functions | |
static UNF_API CapturePredicate | Default () |
Create a predicate which return true for each notice type. | |
static UNF_API CapturePredicate | BlockAll () |
Create a predicate which return false for each notice type. | |
Predicate functor which indicates whether a notice can be captured during a transaction.
Common predicates are provided as static methods for convenience.
UNF_API unf::CapturePredicate::CapturePredicate | ( | const CapturePredicateFunc & | ) |
Create predicate from a function
.
The following example will create a predicate which will return false for a 'Foo' notice.