cartobase  5.0.5
carto::interface_internal::SetIterator< S > Class Template Reference

#include <cartobase/object/object_d.h>

Inheritance diagram for carto::interface_internal::SetIterator< S >:
Collaboration diagram for carto::interface_internal::SetIterator< S >:

Public Member Functions

 SetIterator ()
 
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...
 
 SetIterator (const typename S::const_iterator &begin, const typename S::const_iterator &end)
 
- 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

S::const_iterator _iterator
 
S::const_iterator _end
 

Detailed Description

template<typename S>
class carto::interface_internal::SetIterator< S >

Definition at line 1763 of file object_d.h.

Constructor & Destructor Documentation

◆ SetIterator() [1/2]

template<typename S >
carto::interface_internal::SetIterator< S >::SetIterator ( )
inline

Definition at line 1766 of file object_d.h.

◆ SetIterator() [2/2]

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

Definition at line 1781 of file object_d.h.

Member Function Documentation

◆ currentValue()

template<typename S >
Object carto::interface_internal::SetIterator< S >::currentValue ( ) const
inlinevirtual

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

Implements carto::IteratorInterface.

Definition at line 1771 of file object_d.h.

◆ isValid()

template<typename S >
bool carto::interface_internal::SetIterator< S >::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 1767 of file object_d.h.

◆ next()

template<typename S >
void carto::interface_internal::SetIterator< S >::next ( )
inlinevirtual

Point to the next element of the iterable container.

Implements carto::IteratorInterface.

Definition at line 1775 of file object_d.h.

Member Data Documentation

◆ _end

template<typename S >
S::const_iterator carto::interface_internal::SetIterator< S >::_end

Definition at line 1787 of file object_d.h.

◆ _iterator

template<typename S >
S::const_iterator carto::interface_internal::SetIterator< S >::_iterator

Definition at line 1786 of file object_d.h.


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