DGtal  0.6.devel
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Public Member Functions | Private Attributes
DGtal::CDomain< T > Struct Template Reference

#include <CDomain.h>

Inheritance diagram for DGtal::CDomain< T >:
Inheritance graph
[legend]
Collaboration diagram for DGtal::CDomain< T >:
Collaboration graph
[legend]

Public Types

typedef T::Domain Domain
typedef T::Space Space
typedef T::Point Point
typedef T::Vector Vector
typedef T::Integer Integer
typedef T::Size Size
typedef T::Dimension Dimension
typedef T::Predicate Predicate
typedef T::ConstIterator ConstIterator
- Public Types inherited from DGtal::CConstSinglePassRange< T >

Public Member Functions

 BOOST_CONCEPT_USAGE (CDomain)
- Public Member Functions inherited from DGtal::CConstSinglePassRange< T >
 BOOST_CONCEPT_ASSERT ((boost_concepts::SinglePassIteratorConcept< ConstIterator >))
 BOOST_CONCEPT_USAGE (CConstSinglePassRange)

Private Attributes

myT
Point myP
Predicate myPred
bool myBool
Size mySize
ConstIterator myIt

Detailed Description

template<typename T>
struct DGtal::CDomain< T >

Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digital space.

DescriptionDescription of concept 'CDomain'

Refinement of CConstSinglePassRange

Associated types :

Notation

Definitions

Valid expressions and

Name Expression Type requirements Return type Precondition Semantics Postcondition Complexity
lower bound x.lowerBound() const Point & return the infimum of all points of the domain. O(1)
upper bound x.upperBound() const Point & return the supremum of all points of the domain. O(1)
inside domain test x.isInside( p ) bool return 'true' whenever p is in the domain.
inside domain predicate object x.predicate() const Predicate & return a reference to the predicate object equivalent to the isInside(p) test.
size x.size() Size return the number of points lying in the domain. O(1)
iterator from point x.begin(p) ConstIterator return a ConstIterator on the domain starting from the point p.

Invariants###

Models### HyperRectDomain, DigitalSetDomain

Notes###

Todo:
Complete domain checking.

Definition at line 128 of file CDomain.h.


Member Typedef Documentation

template<typename T >
typedef T::ConstIterator DGtal::CDomain< T >::ConstIterator

Reimplemented from DGtal::CConstSinglePassRange< T >.

Definition at line 140 of file CDomain.h.

template<typename T >
typedef T::Dimension DGtal::CDomain< T >::Dimension

Definition at line 138 of file CDomain.h.

template<typename T >
typedef T::Domain DGtal::CDomain< T >::Domain

Definition at line 132 of file CDomain.h.

template<typename T >
typedef T::Integer DGtal::CDomain< T >::Integer

Definition at line 136 of file CDomain.h.

template<typename T >
typedef T::Point DGtal::CDomain< T >::Point

Definition at line 134 of file CDomain.h.

template<typename T >
typedef T::Predicate DGtal::CDomain< T >::Predicate

Definition at line 139 of file CDomain.h.

template<typename T >
typedef T::Size DGtal::CDomain< T >::Size

Definition at line 137 of file CDomain.h.

template<typename T >
typedef T::Space DGtal::CDomain< T >::Space

Definition at line 133 of file CDomain.h.

template<typename T >
typedef T::Vector DGtal::CDomain< T >::Vector

Definition at line 135 of file CDomain.h.


Member Function Documentation

template<typename T >
DGtal::CDomain< T >::BOOST_CONCEPT_USAGE ( CDomain< T >  )
inline

Definition at line 142 of file CDomain.h.

References DGtal::CDomain< T >::myBool, DGtal::CDomain< T >::myIt, DGtal::CDomain< T >::myP, DGtal::CDomain< T >::myPred, DGtal::CDomain< T >::mySize, DGtal::CDomain< T >::myT, and DGtal::ConceptUtils::sameType().

{
// Domain should have a lowerBound() returning a Point.
ConceptUtils::sameType( myP, myT.lowerBound() );
// Domain should have an upperBound() returning a Point.
ConceptUtils::sameType( myP, myT.upperBound() );
// Domain should have a size() returning a Size.
// Domain should have a isInside(p) returning a bool.
// Domain should have a predicate() returning a Predicate.
// Domain should have a begin(Point) method returning an
// ConstIterator starting from Point
}

Field Documentation

template<typename T >
bool DGtal::CDomain< T >::myBool
private

Definition at line 166 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().

template<typename T >
ConstIterator DGtal::CDomain< T >::myIt
private

Definition at line 168 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().

template<typename T >
Point DGtal::CDomain< T >::myP
private

Definition at line 164 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().

template<typename T >
Predicate DGtal::CDomain< T >::myPred
private

Definition at line 165 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().

template<typename T >
Size DGtal::CDomain< T >::mySize
private

Definition at line 167 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().

template<typename T >
T DGtal::CDomain< T >::myT
private

Definition at line 163 of file CDomain.h.

Referenced by DGtal::CDomain< T >::BOOST_CONCEPT_USAGE().


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