|
DGtal 1.4.2
|
Aim: The predicate returning true iff the point is in the domain given at construction. It is just a wrapper class around the methods Domain::isInside( const Point & ), where Domain stands for any model of CDomain.
More...
#include <DGtal/kernel/domains/DomainPredicate.h>
Public Types | |
| typedef TDomain | Domain |
| typedef Domain::Point | Point |
Public Member Functions | |
| DomainPredicate (ConstAlias< Domain > aDomain) | |
| DomainPredicate (const DomainPredicate &other) | |
| DomainPredicate & | operator= (const DomainPredicate &other) |
| bool | operator() (const Point &p) const |
| const Domain & | domain () const |
Protected Member Functions | |
| DomainPredicate () | |
Private Attributes | |
| const Domain * | myDomain |
| Aliasing pointer on the domain corresponding to this predicate. | |
Aim: The predicate returning true iff the point is in the domain given at construction. It is just a wrapper class around the methods Domain::isInside( const Point & ), where Domain stands for any model of CDomain.
Description of template class 'DomainPredicate'
It is used by domains to define the type by their method predicate().
Model of concepts::CPointPredicate
Definition at line 70 of file DomainPredicate.h.
| TDomain DGtal::functors::DomainPredicate< TDomain >::Domain |
Definition at line 74 of file DomainPredicate.h.
| Domain::Point DGtal::functors::DomainPredicate< TDomain >::Point |
Definition at line 75 of file DomainPredicate.h.
| DGtal::functors::DomainPredicate< TDomain >::DomainPredicate | ( | ConstAlias< Domain > | aDomain | ) |
Constructor from domain.
| aDomain | any domain. |
| DGtal::functors::DomainPredicate< TDomain >::DomainPredicate | ( | const DomainPredicate< TDomain > & | other | ) |
Copy constructor.
| other | the object to clone. |
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
| const Domain & DGtal::functors::DomainPredicate< TDomain >::domain | ( | ) | const |
| bool DGtal::functors::DomainPredicate< TDomain >::operator() | ( | const Point & | p | ) | const |
| p | any point. |
| DomainPredicate & DGtal::functors::DomainPredicate< TDomain >::operator= | ( | const DomainPredicate< TDomain > & | other | ) |
Assignment.
| other | the object to copy. |
|
private |
Aliasing pointer on the domain corresponding to this predicate.
Definition at line 122 of file DomainPredicate.h.