DGtal 1.4.0
|
Aim: The predicate returning true iff the point is in the set given at construction. The set given at construction is aliased in the predicate and not cloned, which means that the lifetime of the set should exceed the lifetime of the predicate. More...
#include <DGtal/kernel/sets/SetPredicate.h>
Public Types | |
typedef TDigitalSet | DigitalSet |
typedef DigitalSet::Domain | Domain |
typedef Domain::Point | Point |
Public Member Functions | |
SetPredicate (ConstAlias< DigitalSet > aSet) | |
SetPredicate (const SetPredicate &other) | |
SetPredicate & | operator= (const SetPredicate &other) |
bool | operator() (const Point &p) const |
Protected Member Functions | |
SetPredicate () | |
Private Attributes | |
const DigitalSet * | mySet |
Aim: The predicate returning true iff the point is in the set given at construction. The set given at construction is aliased in the predicate and not cloned, which means that the lifetime of the set should exceed the lifetime of the predicate.
Description of template class 'SetPredicate'
Model of concepts::CPointPredicate.
Definition at line 73 of file SetPredicate.h.
typedef TDigitalSet DGtal::deprecated::SetPredicate< TDigitalSet >::DigitalSet |
Definition at line 77 of file SetPredicate.h.
typedef DigitalSet::Domain DGtal::deprecated::SetPredicate< TDigitalSet >::Domain |
Definition at line 78 of file SetPredicate.h.
typedef Domain::Point DGtal::deprecated::SetPredicate< TDigitalSet >::Point |
Definition at line 79 of file SetPredicate.h.
DGtal::deprecated::SetPredicate< TDigitalSet >::SetPredicate | ( | ConstAlias< DigitalSet > | aSet | ) |
Constructor.
aSet | any set (only aliased). |
DGtal::deprecated::SetPredicate< TDigitalSet >::SetPredicate | ( | const SetPredicate< TDigitalSet > & | other | ) |
Copy constructor.
other | the object to clone. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
bool DGtal::deprecated::SetPredicate< TDigitalSet >::operator() | ( | const Point & | p | ) | const |
p | any point. |
SetPredicate & DGtal::deprecated::SetPredicate< TDigitalSet >::operator= | ( | const SetPredicate< TDigitalSet > & | other | ) |
Assignment.
other | the object to copy. |
|
private |
Aliasing pointer on the underlying set
Definition at line 120 of file SetPredicate.h.