37 #if defined(ImageContainerBySTLMap_RECURSES)
38 #error Recursive header files inclusion detected in ImageContainerBySTLMap.h
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"
293 #undef ImageContainerBySTLMap_RECURSES
Aim: This class encapsulates its parameter class to indicate that the given parameter is required to ...
Aim: model of CConstBidirectionalRangeFromPoint that adapts the domain of an image in order to iterat...
Aim: model of CConstBidirectionalRangeFromPoint and CBidirectionalRangeWithWritableIteratorFromPoint ...
Space::Dimension Dimension
Domain::Dimension Dimension
ImageContainerBySTLMap(Clone< const Domain > aDomain, const Value &aValue=0)
ConstRange constRange() const
SetValueIterator< Self > OutputIterator
output iterator
std::map< Point, Value >::iterator Iterator
built-in iterators
DefaultImageRange< Self > Range
BOOST_CONCEPT_ASSERT((concepts::CDomain< TDomain >))
domain
ImageContainerBySTLMap & operator=(const ImageContainerBySTLMap &other)
Value myDefaultValue
Default value.
std::map< Point, Value >::const_reverse_iterator ConstReverseIterator
void selfDisplay(std::ostream &out) const
CowPtr< const Domain > DomainPtr
Value operator()(const Point &aPoint) const
std::map< typename TDomain::Point, TValue > Parent
std::map< Point, Value >::reverse_iterator ReverseIterator
std::string className() const
const Container & container() const
void setValue(const Point &aPoint, const Value &aValue)
DefaultConstImageRange< Self > ConstRange
~ImageContainerBySTLMap()
BOOST_CONCEPT_ASSERT((concepts::CLabel< TValue >))
range of values
const Domain & domain() const
static const Domain::Dimension dimension
static constants
ImageContainerBySTLMap< TDomain, TValue > Self
std::map< Point, Value >::const_iterator ConstIterator
ImageContainerBySTLMap(const ImageContainerBySTLMap &other)
OutputIterator outputIterator()
Aim: implements an output iterator, which is able to write values in an underlying image,...
DGtal is the top-level namespace which contains all DGtal functions and types.
std::ostream & operator<<(std::ostream &out, const ATu0v1< TKSpace, TLinearAlgebra > &object)
Aim: This concept represents a digital domain, i.e. a non mutable subset of points of the given digit...
Aim: Define the concept of DGtal labels. Models of CLabel can be default-constructible,...