cartobase 6.0.20
carto::interface_internal::MapIterator< std::map< std::string, T > > Class Template Reference

#include <cartobase/object/object_d.h>

Inheritance diagram for carto::interface_internal::MapIterator< std::map< std::string, T > >:
Collaboration diagram for carto::interface_internal::MapIterator< std::map< std::string, T > >:

Public Member Functions

 MapIterator ()
 
bool isValid () const
 true if the iterator points to a valid value, false when the end of the iterable container has been reached
 
Object currentValue () const
 Access the value of the element pointed to by the iterator.
 
void next ()
 Point to the next element of the iterable container.
 
std::string key () const
 Access the key of the current dictionary element.
 
virtual Object keyObject () const
 Access the key of the current element.
 
 MapIterator (const typename std::map< std::string, T >::const_iterator &begin, const typename std::map< std::string, T >::const_iterator &end)
 
 MapIterator ()
 
 MapIterator (const typename std::map< std::string, T >::const_iterator &begin, const typename std::map< std::string, T >::const_iterator &end)
 
bool isValid () const
 true if the iterator points to a valid value, false when the end of the iterable container has been reached
 
Object currentValue () const
 Access the value of the element pointed to by the iterator.
 
void next ()
 Point to the next element of the iterable container.
 
virtual Object keyObject () const
 Access the key of the current element.
 
- Public Member Functions inherited from carto::KeyIteratorInterface
virtual ~KeyIteratorInterface ()
 
virtual bool isKeyIterator () const
 Returns false if the stored object doesn't actually implement the DictionaryIteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
 
- Public Member Functions inherited from carto::IteratorInterface
virtual ~IteratorInterface ()
 
virtual bool isIterator () const
 Returns false if the stored object doesn't actually implement the IteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
 
- Public Member Functions inherited from carto::Interface
virtual ~Interface ()
 
- Public Member Functions inherited from carto::DictionaryIteratorInterface
virtual ~DictionaryIteratorInterface ()
 
virtual bool isDictionaryIterator () const
 Returns false if the stored object doesn't actually implement the DictionaryIteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
 

Public Attributes

std::map< std::string, T >::const_iterator _iterator
 
std::map< std::string, T >::const_iterator _end
 
std::map< std::string, T >::const_iterator _iterator
 
std::map< std::string, T >::const_iterator _end
 

Detailed Description

template<typename T>
class carto::interface_internal::MapIterator< std::map< std::string, T > >

Definition at line 2215 of file object_d.h.

Constructor & Destructor Documentation

◆ MapIterator() [1/4]

template<typename T>
carto::interface_internal::MapIterator< std::map< std::string, T > >::MapIterator ( )
inline

Definition at line 2219 of file object_d.h.

◆ MapIterator() [2/4]

template<typename T>
carto::interface_internal::MapIterator< std::map< std::string, T > >::MapIterator ( const typename std::map< std::string, T >::const_iterator & begin,
const typename std::map< std::string, T >::const_iterator & end )
inline

Definition at line 2247 of file object_d.h.

◆ MapIterator() [3/4]

carto::interface_internal::MapIterator< std::map< std::string, T > >::MapIterator ( )
inline

Definition at line 1987 of file object_d.h.

◆ MapIterator() [4/4]

carto::interface_internal::MapIterator< std::map< std::string, T > >::MapIterator ( const typename std::map< std::string, T >::const_iterator & begin,
const typename std::map< std::string, T >::const_iterator & end )
inline

Definition at line 2007 of file object_d.h.

Member Function Documentation

◆ currentValue() [1/2]

Object carto::interface_internal::MapIterator< std::map< std::string, T > >::currentValue ( ) const
inlinevirtual

Access the value of the element pointed to by the iterator.

Implements carto::IteratorInterface.

Definition at line 1992 of file object_d.h.

◆ currentValue() [2/2]

template<typename T>
Object carto::interface_internal::MapIterator< std::map< std::string, T > >::currentValue ( ) const
inlinevirtual

Access the value of the element pointed to by the iterator.

Implements carto::IteratorInterface.

Definition at line 2226 of file object_d.h.

◆ isValid() [1/2]

bool carto::interface_internal::MapIterator< std::map< std::string, T > >::isValid ( ) const
inlinevirtual

true if the iterator points to a valid value, false when the end of the iterable container has been reached

Implements carto::IteratorInterface.

Definition at line 1988 of file object_d.h.

◆ isValid() [2/2]

template<typename T>
bool carto::interface_internal::MapIterator< std::map< std::string, T > >::isValid ( ) const
inlinevirtual

true if the iterator points to a valid value, false when the end of the iterable container has been reached

Implements carto::IteratorInterface.

Definition at line 2221 of file object_d.h.

◆ key()

template<typename T>
std::string carto::interface_internal::MapIterator< std::map< std::string, T > >::key ( ) const
inlinevirtual

Access the key of the current dictionary element.

Implements carto::DictionaryIteratorInterface.

Definition at line 2236 of file object_d.h.

◆ keyObject() [1/2]

virtual Object carto::interface_internal::MapIterator< std::map< std::string, T > >::keyObject ( ) const
inlinevirtual

Access the key of the current element.

Implements carto::KeyIteratorInterface.

Definition at line 2001 of file object_d.h.

◆ keyObject() [2/2]

template<typename T>
virtual Object carto::interface_internal::MapIterator< std::map< std::string, T > >::keyObject ( ) const
inlinevirtual

Access the key of the current element.

Implements carto::KeyIteratorInterface.

Definition at line 2241 of file object_d.h.

◆ next() [1/2]

void carto::interface_internal::MapIterator< std::map< std::string, T > >::next ( )
inlinevirtual

Point to the next element of the iterable container.

Implements carto::IteratorInterface.

Definition at line 1996 of file object_d.h.

◆ next() [2/2]

template<typename T>
void carto::interface_internal::MapIterator< std::map< std::string, T > >::next ( )
inlinevirtual

Point to the next element of the iterable container.

Implements carto::IteratorInterface.

Definition at line 2231 of file object_d.h.

Member Data Documentation

◆ _end [1/2]

std::map< std::string, T >::const_iterator carto::interface_internal::MapIterator< std::map< std::string, T > >::_end

Definition at line 2016 of file object_d.h.

◆ _end [2/2]

template<typename T>
std::map<std::string,T>::const_iterator carto::interface_internal::MapIterator< std::map< std::string, T > >::_end

Definition at line 2256 of file object_d.h.

◆ _iterator [1/2]

std::map< std::string, T >::const_iterator carto::interface_internal::MapIterator< std::map< std::string, T > >::_iterator

Definition at line 2015 of file object_d.h.

◆ _iterator [2/2]

template<typename T>
std::map<std::string,T>::const_iterator carto::interface_internal::MapIterator< std::map< std::string, T > >::_iterator

Definition at line 2255 of file object_d.h.


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