aimstil  5.0.5
til::basic_iterator< T > Class Template Reference

A simple wrapper around T*. More...

#include <til/basic_iterator.h>

Inheritance diagram for til::basic_iterator< T >:
Collaboration diagram for til::basic_iterator< T >:

Public Types

typedef std::iterator< std::random_access_iterator_tag, T > Base
 
typedef boost::remove_const< typename Base::value_type >::type value_type
 

Public Member Functions

 basic_iterator ()
 
 basic_iterator (T *p)
 
template<typename X >
 basic_iterator (basic_iterator< X > i)
 
void operator++ ()
 
T & operator* ()
 
 operator T* ()
 
T * operator-> ()
 

Friends

template<typename T1 , typename T2 >
bool operator== (const basic_iterator< T1 > &i1, const basic_iterator< T2 > &i2)
 
template<typename T1 , typename T2 >
bool operator!= (const basic_iterator< T1 > &i1, const basic_iterator< T2 > &i2)
 

Detailed Description

template<typename T>
class til::basic_iterator< T >

A simple wrapper around T*.

This class is just there to encapsulate a T* iterator in a class... Nothing to be proud of :/ Not fully compliant because other features not needed yet.

Definition at line 22 of file basic_iterator.h.

Member Typedef Documentation

◆ Base

template<typename T>
typedef std::iterator<std::random_access_iterator_tag, T> til::basic_iterator< T >::Base

Definition at line 25 of file basic_iterator.h.

◆ value_type

template<typename T>
typedef boost::remove_const<typename Base::value_type>::type til::basic_iterator< T >::value_type

Definition at line 29 of file basic_iterator.h.

Constructor & Destructor Documentation

◆ basic_iterator() [1/3]

template<typename T>
til::basic_iterator< T >::basic_iterator ( )
inline

Definition at line 31 of file basic_iterator.h.

◆ basic_iterator() [2/3]

template<typename T>
til::basic_iterator< T >::basic_iterator ( T *  p)
inline

Definition at line 32 of file basic_iterator.h.

◆ basic_iterator() [3/3]

template<typename T>
template<typename X >
til::basic_iterator< T >::basic_iterator ( basic_iterator< X >  i)
inline

Definition at line 34 of file basic_iterator.h.

Member Function Documentation

◆ operator T*()

template<typename T>
til::basic_iterator< T >::operator T* ( )
inline

Definition at line 41 of file basic_iterator.h.

◆ operator*()

template<typename T>
T& til::basic_iterator< T >::operator* ( )
inline

Definition at line 40 of file basic_iterator.h.

◆ operator++()

template<typename T>
void til::basic_iterator< T >::operator++ ( )
inline

Definition at line 36 of file basic_iterator.h.

◆ operator->()

template<typename T>
T* til::basic_iterator< T >::operator-> ( )
inline

Definition at line 42 of file basic_iterator.h.

Friends And Related Function Documentation

◆ operator!=

template<typename T>
template<typename T1 , typename T2 >
bool operator!= ( const basic_iterator< T1 > &  i1,
const basic_iterator< T2 > &  i2 
)
friend

Definition at line 65 of file basic_iterator.h.

Referenced by til::basic_iterator< const T >::operator->().

◆ operator==

template<typename T>
template<typename T1 , typename T2 >
bool operator== ( const basic_iterator< T1 > &  i1,
const basic_iterator< T2 > &  i2 
)
friend

Definition at line 57 of file basic_iterator.h.

Referenced by til::basic_iterator< const T >::operator->().


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