Lolly 1.4.28
Loading...
Searching...
No Matches
Public Member Functions | List of all members
iterator< T > Class Template Reference

A template class for iterators. More...

#include <iterator.hpp>

Public Member Functions

 ABSTRACT_TEMPLATE (iterator, T)
 
iterator< T > begin ()
 
std::nullptr_t end ()
 
void operator++ ()
 
operator* ()
 Returns the current element of the iterator, then move the iterator to the next element.
 
bool operator!= (std::nullptr_t)
 

Detailed Description

template<class T>
class iterator< T >

A template class for iterators.

Template Parameters
TThe type for the iterator's return value.

Definition at line 69 of file iterator.hpp.

Member Function Documentation

◆ ABSTRACT_TEMPLATE()

template<class T >
iterator< T >::ABSTRACT_TEMPLATE ( iterator< T > ,
T  )

◆ begin()

template<class T >
iterator< T > iterator< T >::begin ( )
inline

Definition at line 71 of file iterator.hpp.

71{ return *this; };

◆ end()

template<class T >
std::nullptr_t iterator< T >::end ( )
inline

Definition at line 72 of file iterator.hpp.

72{ return nullptr; };

◆ operator++()

template<class T >
void iterator< T >::operator++ ( )
inline

Definition at line 73 of file iterator.hpp.

73{ this->rep->increase (); };
base class of resources
Definition resource.hpp:23

◆ operator*()

template<class T >
T iterator< T >::operator* ( )
inline

Returns the current element of the iterator, then move the iterator to the next element.

Definition at line 78 of file iterator.hpp.

78{ return this->rep->current (); };

◆ operator!=()

template<class T >
bool iterator< T >::operator!= ( std::nullptr_t )
inline

Definition at line 79 of file iterator.hpp.

79{ return this->rep->busy (); }

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