template<typename T, typename TElement>
struct DGtal::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 boost::Assignable<T>
Associated types :
Notation
Definitions
Valid expressions and semantics
Name | Expression | Type requirements | Return type | Precondition | Semantics | Postcondition | Complexity |
Apply predicate | x( p ) | | bool | | the value of the predicate x at element p | | |
Invariants
Models
- specializations: CPointPredicate, CVertexPredicate
Notes
CPredicate allows to factor codes when writing concepts for new
kinds of predicates.
Definition at line 107 of file CPredicate.h.