DGtal
0.6.devel
|
#include <DomainPredicate.h>
Public Types | |
typedef TDomain | Domain |
typedef Domain::Point | Point |
Public Member Functions | |
DomainPredicate (const 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 |
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 CPointPredicate
Definition at line 68 of file DomainPredicate.h.
typedef TDomain DGtal::DomainPredicate< TDomain >::Domain |
Definition at line 72 of file DomainPredicate.h.
typedef Domain::Point DGtal::DomainPredicate< TDomain >::Point |
Definition at line 73 of file DomainPredicate.h.
|
inline |
Constructor from domain.
aDomain | any domain. |
Definition at line 45 of file DomainPredicate.ih.
|
inline |
Copy constructor.
other | the object to clone. |
Definition at line 53 of file DomainPredicate.ih.
|
protected |
Constructor. Forbidden by default (protected to avoid g++ warnings).
|
inline |
Definition at line 76 of file DomainPredicate.ih.
|
inline |
p | any point. |
Definition at line 85 of file DomainPredicate.ih.
|
inline |
Assignment.
other | the object to copy. |
Definition at line 62 of file DomainPredicate.ih.
References DGtal::DomainPredicate< TDomain >::myDomain.
|
private |
Aliasing pointer on the domain corresponding to this predicate.
Definition at line 120 of file DomainPredicate.h.
Referenced by DGtal::DomainPredicate< TDomain >::operator=().