Public Types | Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes

DGtal::SetPredicate< TDigitalSet > Struct Template Reference

Aim: The predicate returning true iff the point is in the domain given at construction. More...

#include <SetPredicate.h>

Inheritance diagram for DGtal::SetPredicate< TDigitalSet >:
Inheritance graph
[legend]

Public Types

typedef TDigitalSet DigitalSet
typedef DigitalSet::DomainType Domain
typedef Domain::Point Point

Public Member Functions

 SetPredicate (const DigitalSet &aSet)
 SetPredicate (const SetPredicate &other)
bool operator() (const Point &p) const

Protected Member Functions

 SetPredicate ()

Private Member Functions

SetPredicateoperator= (const SetPredicate &other)

Private Attributes

const DigitalSet *const mySet

Detailed Description

template<typename TDigitalSet>
struct DGtal::SetPredicate< TDigitalSet >

Aim: The predicate returning true iff the point is in the domain given at construction.

Description of template class 'SetPredicate'

Model of CPointPredicate


Member Typedef Documentation

template<typename TDigitalSet>
typedef TDigitalSet DGtal::SetPredicate< TDigitalSet >::DigitalSet
template<typename TDigitalSet>
typedef DigitalSet::DomainType DGtal::SetPredicate< TDigitalSet >::Domain
template<typename TDigitalSet>
typedef Domain::Point DGtal::SetPredicate< TDigitalSet >::Point

Constructor & Destructor Documentation

template<typename TDigitalSet>
DGtal::SetPredicate< TDigitalSet >::SetPredicate ( const DigitalSet aSet  ) 

Constructor.

Parameters:
aSet any set.
template<typename TDigitalSet>
DGtal::SetPredicate< TDigitalSet >::SetPredicate ( const SetPredicate< TDigitalSet > &  other  ) 

Copy constructor.

Parameters:
other the object to clone.
template<typename TDigitalSet>
DGtal::SetPredicate< TDigitalSet >::SetPredicate (  )  [protected]

Constructor. Forbidden by default (protected to avoid g++ warnings).


Member Function Documentation

template<typename TDigitalSet>
bool DGtal::SetPredicate< TDigitalSet >::operator() ( const Point p  )  const
Parameters:
p any point.
Returns:
true iff p is in the domain.
template<typename TDigitalSet>
SetPredicate& DGtal::SetPredicate< TDigitalSet >::operator= ( const SetPredicate< TDigitalSet > &  other  )  [private]

Assignment.

Parameters:
other the object to copy.
Returns:
a reference on 'this'. Forbidden by default.

Field Documentation

template<typename TDigitalSet>
const DigitalSet* const DGtal::SetPredicate< TDigitalSet >::mySet [private]

The documentation for this struct was generated from the following file: