| cartobase
    4.7.0
    | 
An iterator object is a reference to another object. More...
#include <cartobase/object/object.h>


| Public Member Functions | |
| 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... | |
| virtual bool | isValid () const =0 | 
| trueif the iterator points to a valid value,falsewhen the end of the iterable container has been reached  More... | |
| virtual Object | currentValue () const =0 | 
| Access the value of the element pointed to by the iterator.  More... | |
| virtual void | next ()=0 | 
| Point to the next element of the iterable container.  More... | |
|  Public Member Functions inherited from carto::Interface | |
| virtual | ~Interface () | 
An iterator object is a reference to another object.
They are used to iterate on a container Iterable object (like a pointer in an array).
Example:
| 
 | virtual | 
| 
 | pure virtual | 
Access the value of the element pointed to by the iterator.
Implemented in carto::interface_internal::MapIterator< std::map< int, Object > >, carto::interface_internal::MapIterator< std::map< std::string, Object > >, carto::interface_internal::MapIterator< std::map< std::string, T > >, carto::interface_internal::MapIterator< std::map< T, Object > >, carto::interface_internal::MapIterator< M >, carto::interface_internal::SetIterator< std::set< Object > >, carto::interface_internal::SetIterator< S >, carto::interface_internal::VectorIterator< V >, carto::interface_internal::VectorIterator< V >, carto::TypedObject< T >, carto::TypedObject< SyntaxedInterfaceType< T > >, and carto::PropertySet::iterator.
Referenced by carto::TypedObject< SyntaxedInterfaceType< T > >::currentValue().
| 
 | virtual | 
Returns false if the stored object doesn't actually implement the IteratorInterface API (needed since all GenericObject inherit this interface whatever they actually contain)
Reimplemented in carto::TypedObject< T >, and carto::TypedObject< SyntaxedInterfaceType< T > >.
| 
 | pure virtual | 
true if the iterator points to a valid value, false when the end of the iterable container has been reached 
Implemented in carto::interface_internal::MapIterator< std::map< int, Object > >, carto::interface_internal::MapIterator< std::map< std::string, Object > >, carto::interface_internal::MapIterator< std::map< std::string, T > >, carto::interface_internal::MapIterator< std::map< T, Object > >, carto::interface_internal::MapIterator< M >, carto::interface_internal::SetIterator< std::set< Object > >, carto::interface_internal::SetIterator< S >, carto::interface_internal::VectorIterator< V >, carto::TypedObject< T >, carto::TypedObject< SyntaxedInterfaceType< T > >, and carto::PropertySet::iterator.
Referenced by carto::TypedObject< SyntaxedInterfaceType< T > >::isValid().
| 
 | pure virtual | 
Point to the next element of the iterable container.
Implemented in carto::interface_internal::MapIterator< std::map< int, Object > >, carto::interface_internal::MapIterator< std::map< std::string, Object > >, carto::interface_internal::MapIterator< std::map< std::string, T > >, carto::interface_internal::MapIterator< std::map< T, Object > >, carto::interface_internal::MapIterator< M >, carto::interface_internal::SetIterator< std::set< Object > >, carto::interface_internal::SetIterator< S >, carto::interface_internal::VectorIterator< V >, carto::TypedObject< T >, carto::TypedObject< SyntaxedInterfaceType< T > >, and carto::PropertySet::iterator.