|
DGtal
0.6.devel
|
#include <ImageContainerBySTLMap.h>


Public Types | |
| typedef ImageContainerBySTLMap < TDomain, TValue > | Self |
| typedef std::map< typename TDomain::Point, TValue > | Parent |
| typedef TDomain | Domain |
| typedef Domain::Point | Point |
| typedef Domain::Vector | Vector |
| typedef Domain::Integer | Integer |
| typedef Domain::Size | Size |
| typedef Domain::Dimension | Dimension |
| typedef Point | Vertex |
| typedef CountedPtr< const Domain > | DomainPtr |
| typedef TValue | Value |
| typedef DefaultConstImageRange < Self > | ConstRange |
| typedef DefaultImageRange< Self > | Range |
| typedef SetValueIterator< Self > | OutputIterator |
| typedef map< Point, Value > ::iterator | Iterator |
| typedef map< Point, Value > ::const_iterator | ConstIterator |
| typedef map< Point, Value > ::reverse_iterator | ReverseIterator |
| typedef map< Point, Value > ::const_reverse_iterator | ConstReverseIterator |
Public Member Functions | |
| BOOST_CONCEPT_ASSERT ((CDomain< TDomain >)) | |
| BOOST_CONCEPT_ASSERT ((CLabel< TValue >)) | |
| ImageContainerBySTLMap (const Domain &aDomain, const Value &aValue=0) | |
| ImageContainerBySTLMap (const ImageContainerBySTLMap &other) | |
| ImageContainerBySTLMap & | operator= (const ImageContainerBySTLMap &other) |
| ~ImageContainerBySTLMap () | |
| Value | operator() (const Point &aPoint) const |
| void | setValue (const Point &aPoint, const Value &aValue) |
| const Domain & | domain () const |
| ConstRange | constRange () const |
| Range | range () |
| void | selfDisplay (std::ostream &out) const |
| bool | isValid () const |
| std::string | className () const |
| OutputIterator | outputIterator () |
Static Public Attributes | |
| static const Domain::Dimension | dimension = Domain::dimension |
Private Attributes | |
| DomainPtr | myDomainPtr |
| Value | myDefaultValue |
Additional Inherited Members | |
Data Fields inherited from std::map< K, T > | |
| K | keys |
| T | elements |
Description of class 'ImageContainerBySTLMap'
Aim: Model of CImage implementing the association Point<->Value using an STL map.
Once constructed, the image is valid, i.e. every point of the image domain has a value, which can be read and overwritten. Note that the default value (returned for points that are not stored in the underlying STL map) can be chosen by the user.
As a model of CImage, this class provides two ways of accessing values:
This class also provides a setValue() method and an output iterator, which is returned by the outputIterator() method for writting purposes.
Definition at line 95 of file ImageContainerBySTLMap.h.
| typedef map<Point,Value>::const_iterator DGtal::ImageContainerBySTLMap< TDomain, TValue >::ConstIterator |
Definition at line 237 of file ImageContainerBySTLMap.h.
| typedef DefaultConstImageRange<Self> DGtal::ImageContainerBySTLMap< TDomain, TValue >::ConstRange |
Definition at line 124 of file ImageContainerBySTLMap.h.
| typedef map<Point,Value>::const_reverse_iterator DGtal::ImageContainerBySTLMap< TDomain, TValue >::ConstReverseIterator |
Definition at line 239 of file ImageContainerBySTLMap.h.
| typedef Domain::Dimension DGtal::ImageContainerBySTLMap< TDomain, TValue >::Dimension |
Definition at line 111 of file ImageContainerBySTLMap.h.
| typedef TDomain DGtal::ImageContainerBySTLMap< TDomain, TValue >::Domain |
Definition at line 106 of file ImageContainerBySTLMap.h.
| typedef CountedPtr<const Domain> DGtal::ImageContainerBySTLMap< TDomain, TValue >::DomainPtr |
Definition at line 114 of file ImageContainerBySTLMap.h.
| typedef Domain::Integer DGtal::ImageContainerBySTLMap< TDomain, TValue >::Integer |
Definition at line 109 of file ImageContainerBySTLMap.h.
| typedef map<Point,Value>::iterator DGtal::ImageContainerBySTLMap< TDomain, TValue >::Iterator |
built-in iterators
Definition at line 236 of file ImageContainerBySTLMap.h.
| typedef SetValueIterator<Self> DGtal::ImageContainerBySTLMap< TDomain, TValue >::OutputIterator |
output iterator
Definition at line 128 of file ImageContainerBySTLMap.h.
| typedef std::map<typename TDomain::Point, TValue > DGtal::ImageContainerBySTLMap< TDomain, TValue >::Parent |
Definition at line 102 of file ImageContainerBySTLMap.h.
| typedef Domain::Point DGtal::ImageContainerBySTLMap< TDomain, TValue >::Point |
Definition at line 107 of file ImageContainerBySTLMap.h.
| typedef DefaultImageRange<Self> DGtal::ImageContainerBySTLMap< TDomain, TValue >::Range |
Definition at line 125 of file ImageContainerBySTLMap.h.
| typedef map<Point,Value>::reverse_iterator DGtal::ImageContainerBySTLMap< TDomain, TValue >::ReverseIterator |
Definition at line 238 of file ImageContainerBySTLMap.h.
| typedef ImageContainerBySTLMap<TDomain,TValue> DGtal::ImageContainerBySTLMap< TDomain, TValue >::Self |
Definition at line 101 of file ImageContainerBySTLMap.h.
| typedef Domain::Size DGtal::ImageContainerBySTLMap< TDomain, TValue >::Size |
Definition at line 110 of file ImageContainerBySTLMap.h.
| typedef TValue DGtal::ImageContainerBySTLMap< TDomain, TValue >::Value |
Definition at line 121 of file ImageContainerBySTLMap.h.
| typedef Domain::Vector DGtal::ImageContainerBySTLMap< TDomain, TValue >::Vector |
Definition at line 108 of file ImageContainerBySTLMap.h.
| typedef Point DGtal::ImageContainerBySTLMap< TDomain, TValue >::Vertex |
Definition at line 112 of file ImageContainerBySTLMap.h.
|
inline |
Constructor from a Domain
| aDomain | the image domain. |
| aValue | a default value associated to the domain points that are not contained in the underlying map. |
Definition at line 45 of file ImageContainerBySTLMap.ih.
|
inline |
Copy operator
| other | the object to copy. |
Definition at line 54 of file ImageContainerBySTLMap.ih.
|
inline |
| DGtal::ImageContainerBySTLMap< TDomain, TValue >::BOOST_CONCEPT_ASSERT | ( | (CDomain< TDomain >) | ) |
domain
| DGtal::ImageContainerBySTLMap< TDomain, TValue >::BOOST_CONCEPT_ASSERT | ( | (CLabel< TValue >) | ) |
range of values
|
inline |
Definition at line 167 of file ImageContainerBySTLMap.ih.
|
inline |
Definition at line 121 of file ImageContainerBySTLMap.ih.
|
inline |
Definition at line 112 of file ImageContainerBySTLMap.ih.
|
inline |
Definition at line 148 of file ImageContainerBySTLMap.ih.
|
inline |
Get the value of an image at a given position given by a Point.
| aPoint | the point. |
Definition at line 85 of file ImageContainerBySTLMap.ih.
|
inline |
Assignement operator
| other | the object to copy. |
Definition at line 64 of file ImageContainerBySTLMap.ih.
References DGtal::ImageContainerBySTLMap< TDomain, TValue >::myDefaultValue, and DGtal::ImageContainerBySTLMap< TDomain, TValue >::myDomainPtr.
|
inline |
Construct a Iterator on the image at a position specified by aPoint
| aPoint | a point to construct a Iterator on. |
aPoint Definition at line 138 of file ImageContainerBySTLMap.ih.
|
inline |
Definition at line 130 of file ImageContainerBySTLMap.ih.
|
inline |
Writes/Displays the object on an output stream.
| out | the output stream where the object is written. |
Definition at line 157 of file ImageContainerBySTLMap.ih.
|
inline |
Set a value on an Image at a position specified by a Point.
it must be a point in the image domain.| aPoint | the point. |
| aValue | the value. |
Definition at line 99 of file ImageContainerBySTLMap.ih.
|
static |
static constants
Definition at line 117 of file ImageContainerBySTLMap.h.
|
private |
Default value.
Definition at line 139 of file ImageContainerBySTLMap.h.
Referenced by DGtal::ImageContainerBySTLMap< TDomain, TValue >::operator=().
|
private |
Counted pointer on the image domain, Since the domain is not mutable, not assignable, it is shared by all the copies of *this
Definition at line 136 of file ImageContainerBySTLMap.h.
Referenced by DGtal::ImageContainerBySTLMap< TDomain, TValue >::operator=().
1.8.1.1