Aim: Defines a predicate function, ie. a functor mapping a domain into the set of booleans.
More...
template<typename T, typename TElement>
struct DGtal::concepts::CPredicate< T, TElement >
Aim: Defines a predicate function, ie. a functor mapping a domain into the set of booleans.
Description of concept 'CPredicate'
- Template Parameters
-
T | the type that should be a model of this predicate |
TElement | the type of an element of the predicate domain. |
Refinement of
Associated types
Notation
Definitions
Valid expressions and semantics
Name | Expression | Type requirements | Return type | Precondition | Semantics | Post condition | Complexity |
Apply predicate | x.( p ) | | bool | | the value of the predicate x at element p | | |
Invariants
Models
Notes
CPredicate allows to factor codes when writing concepts for new kinds of predicates.
Definition at line 93 of file CPredicate.h.