37 #if defined(ImageContainerBySTLMap_RECURSES)
38 #error Recursive header files inclusion detected in ImageContainerBySTLMap.h
39 #else // defined(ImageContainerBySTLMap_RECURSES)
41 #define ImageContainerBySTLMap_RECURSES
43 #if !defined ImageContainerBySTLMap_h
45 #define ImageContainerBySTLMap_h
52 #include "DGtal/base/Common.h"
53 #include "DGtal/base/BasicFunctors.h"
54 #include "DGtal/base/CowPtr.h"
55 #include "DGtal/base/Clone.h"
56 #include "DGtal/images/DefaultConstImageRange.h"
57 #include "DGtal/images/DefaultImageRange.h"
58 #include "DGtal/images/SetValueIterator.h"
59 #include "DGtal/base/CLabel.h"
60 #include "DGtal/kernel/domains/CDomain.h"
65 #pragma warning(disable : 4290)
95 template <
typename TDomain,
typename TValue>
97 public std::map<typename TDomain::Point, TValue >
103 typedef std::map<typename TDomain::Point, TValue >
Parent;
250 typedef typename std::map<Point,Value>::iterator
Iterator;
271 template <
typename TDomain,
typename TValue>
277 object.selfDisplay ( out );
287 #include "DGtal/images/ImageContainerBySTLMap.ih"
291 #endif // !defined ImageContainerBySTLMap_h
293 #undef ImageContainerBySTLMap_RECURSES
294 #endif // else defined(ImageContainerBySTLMap_RECURSES)
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
~ImageContainerBySTLMap()
Space::Dimension Dimension
ImageContainerBySTLMap(Clone< const Domain > aDomain, const Value &aValue=0)
CowPtr< const Domain > DomainPtr
void setValue(const Point &aPoint, const Value &aValue)
std::map< Point, Value >::reverse_iterator ReverseIterator
SetValueIterator< Self > OutputIterator
output iterator
void selfDisplay(std::ostream &out) const
DefaultImageRange< Self > Range
ImageContainerBySTLMap & operator=(const ImageContainerBySTLMap &other)
ConstRange constRange() const
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
const Container & container() const
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::map< Point, Value >::const_reverse_iterator ConstReverseIterator
Aim: implements an output iterator, which is able to write values in an underlying image,...
static const Domain::Dimension dimension
static constants
Value myDefaultValue
Default value.
OutputIterator outputIterator()
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...
Value operator()(const Point &aPoint) const
Domain::Dimension Dimension
std::map< typename TDomain::Point, TValue > Parent
std::string className() const
std::map< Point, Value >::const_iterator ConstIterator
DefaultConstImageRange< Self > ConstRange
ImageContainerBySTLMap< TDomain, TValue > Self
std::map< Point, Value >::iterator Iterator
built-in iterators
const Domain & domain() const
BOOST_CONCEPT_ASSERT((concepts::CDomain< TDomain >))
domain