cartobase  4.5.0
carto::interface_internal::MapIterator< std::map< std::string, Object > > Class Template Reference

#include <cartobase/object/object_d.h>

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

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 More...
 
Object currentValue () const
 Access the value of the element pointed to by the iterator. More...
 
void next ()
 Point to the next element of the iterable container. More...
 
std::string key () const
 Access the key of the current dictionary element. More...
 
 MapIterator (const std::map< std::string, Object >::const_iterator &begin, const std::map< std::string, Object >::const_iterator &end)
 
- 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) More...
 
- 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) More...
 
- Public Member Functions inherited from carto::Interface
virtual ~Interface ()
 

Public Attributes

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

Detailed Description

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

Definition at line 2132 of file object_d.h.

Constructor & Destructor Documentation

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

Definition at line 2136 of file object_d.h.

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

Definition at line 2159 of file object_d.h.

Member Function Documentation

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

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

Implements carto::IteratorInterface.

Definition at line 2143 of file object_d.h.

bool carto::interface_internal::MapIterator< std::map< std::string, Object > >::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 2138 of file object_d.h.

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

Access the key of the current dictionary element.

Implements carto::DictionaryIteratorInterface.

Definition at line 2153 of file object_d.h.

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

Point to the next element of the iterable container.

Implements carto::IteratorInterface.

Definition at line 2148 of file object_d.h.

Member Data Documentation

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

Definition at line 2166 of file object_d.h.

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

Definition at line 2165 of file object_d.h.


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