DGtal  0.9.4beta
Public Types | Public Member Functions | Protected Member Functions | Private Attributes
DGtal::deprecated::SetPredicate< TDigitalSet > Struct Template Reference

#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)
 
SetPredicateoperator= (const SetPredicate &other)
 
bool operator() (const Point &p) const
 

Protected Member Functions

 SetPredicate ()
 

Private Attributes

const DigitalSetmySet
 

Detailed Description

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

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.

Deprecated:
Since 0.6, digital sets are also models of concepts::CPointPredicate, hence using a SetPredicate is therefore no more useful.

Definition at line 73 of file SetPredicate.h.

Member Typedef Documentation

template<typename TDigitalSet >
typedef TDigitalSet DGtal::deprecated::SetPredicate< TDigitalSet >::DigitalSet

Definition at line 77 of file SetPredicate.h.

template<typename TDigitalSet >
typedef DigitalSet::Domain DGtal::deprecated::SetPredicate< TDigitalSet >::Domain

Definition at line 78 of file SetPredicate.h.

template<typename TDigitalSet >
typedef Domain::Point DGtal::deprecated::SetPredicate< TDigitalSet >::Point

Definition at line 79 of file SetPredicate.h.

Constructor & Destructor Documentation

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

Constructor.

Parameters
aSetany set (only aliased).
template<typename TDigitalSet >
DGtal::deprecated::SetPredicate< TDigitalSet >::SetPredicate ( const SetPredicate< TDigitalSet > &  other)

Copy constructor.

Parameters
otherthe object to clone.
template<typename TDigitalSet >
DGtal::deprecated::SetPredicate< TDigitalSet >::SetPredicate ( )
protected

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

Member Function Documentation

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

Assignment.

Parameters
otherthe object to copy.
Returns
a reference on 'this'.

Field Documentation

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

Aliasing pointer on the underlying set

Definition at line 120 of file SetPredicate.h.


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