cartobase  5.0.5
carto::interface_internal::VectorIterator< V > Class Template Reference

#include <cartobase/object/object_d.h>

Inheritance diagram for carto::interface_internal::VectorIterator< V >:
Collaboration diagram for carto::interface_internal::VectorIterator< V >:

Public Member Functions

 VectorIterator ()
 
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...
 
 VectorIterator (const typename V::const_iterator &begin, const typename V::const_iterator &end)
 
template<>
Object currentValue () const
 Access the value of the element pointed to by the iterator. 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

V::const_iterator _iterator
 
V::const_iterator _end
 

Detailed Description

template<typename V>
class carto::interface_internal::VectorIterator< V >

Definition at line 1634 of file object_d.h.

Constructor & Destructor Documentation

◆ VectorIterator() [1/2]

template<typename V >
carto::interface_internal::VectorIterator< V >::VectorIterator ( )
inline

Definition at line 1637 of file object_d.h.

◆ VectorIterator() [2/2]

template<typename V >
carto::interface_internal::VectorIterator< V >::VectorIterator ( const typename V::const_iterator &  begin,
const typename V::const_iterator &  end 
)
inline

Definition at line 1644 of file object_d.h.

Member Function Documentation

◆ currentValue() [1/2]

template<typename V >
Object carto::interface_internal::VectorIterator< V >::currentValue ( ) const
virtual

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

Implements carto::IteratorInterface.

Definition at line 1671 of file object_d.h.

◆ currentValue() [2/2]

template<>
Object carto::interface_internal::VectorIterator< std::vector< Object > >::currentValue ( ) const
inlinevirtual

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

Implements carto::IteratorInterface.

Definition at line 1678 of file object_d.h.

◆ isValid()

template<typename V >
bool carto::interface_internal::VectorIterator< V >::isValid ( ) const
virtual

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 1665 of file object_d.h.

◆ next()

template<typename V >
void carto::interface_internal::VectorIterator< V >::next ( )
inlinevirtual

Point to the next element of the iterable container.

Implements carto::IteratorInterface.

Definition at line 1684 of file object_d.h.

Member Data Documentation

◆ _end

template<typename V >
V::const_iterator carto::interface_internal::VectorIterator< V >::_end

Definition at line 1650 of file object_d.h.

◆ _iterator

template<typename V >
V::const_iterator carto::interface_internal::VectorIterator< V >::_iterator

Definition at line 1649 of file object_d.h.


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