DGtal 1.3.0
|
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digital space. More...
#include <DGtal/kernel/domains/CDomain.h>
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::concepts::CConstSinglePassRange< T > | |
typedef T::ConstIterator | ConstIterator |
Public Member Functions | |
BOOST_CONCEPT_USAGE (CDomain) | |
Public Member Functions inherited from DGtal::concepts::CConstSinglePassRange< T > | |
BOOST_CONCEPT_ASSERT ((boost_concepts::SinglePassIteratorConcept< ConstIterator >)) | |
BOOST_CONCEPT_USAGE (CConstSinglePassRange) | |
void | checkConstConstraints () const |
Private Attributes | |
T | myT |
Point | myP |
Predicate | myPred |
bool | myBool |
Size | mySize |
ConstIterator | myIt |
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#
typedef T::ConstIterator DGtal::concepts::CDomain< T >::ConstIterator |
typedef T::Dimension DGtal::concepts::CDomain< T >::Dimension |
typedef T::Domain DGtal::concepts::CDomain< T >::Domain |
typedef T::Integer DGtal::concepts::CDomain< T >::Integer |
typedef T::Point DGtal::concepts::CDomain< T >::Point |
typedef T::Predicate DGtal::concepts::CDomain< T >::Predicate |
typedef T::Size DGtal::concepts::CDomain< T >::Size |
typedef T::Space DGtal::concepts::CDomain< T >::Space |
typedef T::Vector DGtal::concepts::CDomain< T >::Vector |
|
inline |
Definition at line 143 of file CDomain.h.
References DGtal::concepts::CDomain< T >::myBool, DGtal::concepts::CDomain< T >::myIt, DGtal::concepts::CDomain< T >::myP, DGtal::concepts::CDomain< T >::myPred, DGtal::concepts::CDomain< T >::mySize, DGtal::concepts::CDomain< T >::myT, and DGtal::concepts::ConceptUtils::sameType().
|
private |
Definition at line 167 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 169 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 165 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 166 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 168 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().
|
private |
Definition at line 164 of file CDomain.h.
Referenced by DGtal::concepts::CDomain< T >::BOOST_CONCEPT_USAGE().