brainrat-private  5.1.2
carto::Array< T >::interfaced_iterator Class Reference

#include <brainrat/object/array.h>

Inheritance diagram for carto::Array< T >::interfaced_iterator:
Collaboration diagram for carto::Array< T >::interfaced_iterator:

Public Member Functions

 interfaced_iterator ()
 
 interfaced_iterator (const ArrayIterator &begin, const ArrayIterator &end)
 
virtual bool isValid () const
 true if the iterator points to a valid value, false when the end of the iterable container has been reached More...
 
virtual Object currentValue () const
 Access the value of the element pointed to by the iterator. More...
 
virtual void next ()
 Point to the next element of the iterable container. More...
 

Friends

interfaced_iterator Array::getIterator () const
 

Detailed Description

template<typename T>
class carto::Array< T >::interfaced_iterator

Definition at line 77 of file array.h.

Constructor & Destructor Documentation

◆ interfaced_iterator() [1/2]

template<typename T >
carto::Array< T >::interfaced_iterator::interfaced_iterator ( )
inline

Definition at line 81 of file array.h.

◆ interfaced_iterator() [2/2]

template<typename T >
carto::Array< T >::interfaced_iterator::interfaced_iterator ( const ArrayIterator &  begin,
const ArrayIterator &  end 
)
inline

Definition at line 87 of file array.h.

Member Function Documentation

◆ currentValue()

template<typename T >
virtual Object carto::Array< T >::interfaced_iterator::currentValue ( ) const
inlinevirtual

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

Definition at line 101 of file array.h.

◆ isValid()

template<typename T >
virtual bool carto::Array< T >::interfaced_iterator::isValid ( ) const
inlinevirtual

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

Definition at line 95 of file array.h.

◆ next()

template<typename T >
virtual void carto::Array< T >::interfaced_iterator::next ( )
inlinevirtual

Point to the next element of the iterable container.

Definition at line 108 of file array.h.

Friends And Related Function Documentation

◆ Array::getIterator

template<typename T >
interfaced_iterator Array::getIterator ( ) const
friend

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