The Pedigree Project
0.1
|
IteratorAdapter reinterpret_casts an Iterators element to another type. More...
#include <IteratorAdapter.h>
Public Member Functions | |
IteratorAdapter () | |
IteratorAdapter (const Iterator &x) | |
template<typename T2 , class Iterator2 > | |
IteratorAdapter (const IteratorAdapter< T2, Iterator2 > &x) | |
IteratorAdapter (const IteratorAdapter &x) | |
~IteratorAdapter () | |
IteratorAdapter & | operator= (const IteratorAdapter &x) |
template<typename T2 , class Iterator2 > | |
IteratorAdapter & | operator= (const IteratorAdapter< T2, Iterator2 > &x) |
bool | operator== (const IteratorAdapter &x) const |
IteratorAdapter & | operator++ () |
IteratorAdapter & | operator-- () |
T & | operator* () |
T & | operator-> () |
const Iterator & | __getIterator () const |
Iterator & | __getIterator () |
Private Attributes | |
Iterator | m_Iterator |
IteratorAdapter reinterpret_casts an Iterators element to another type.
Adapter for an iterator with a different element type. The element type is reinterpret_cast'ed from the original iterator
[in] | T | the new element type |
[in] | Iterator | the type of the original iterator |
Definition at line 32 of file IteratorAdapter.h.
|
inline |
Default constructor
Definition at line 36 of file IteratorAdapter.h.
|
inline |
Construct form an Iterator
[in] | x | the Iterator reference object |
Definition at line 41 of file IteratorAdapter.h.
|
inline |
Construct from another iterator compatible with Iterator
[in] | x | the reference object |
Definition at line 47 of file IteratorAdapter.h.
|
inline |
|
inline |
The destructor
Definition at line 57 of file IteratorAdapter.h.
|
inline |
Get a reference to the iterator
Definition at line 114 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
Referenced by IteratorAdapter< T, Iterator >::operator=().
|
inline |
Get a reference to the iterator
Definition at line 120 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
|
inline |
Dereference the iterator, aka get the element
Definition at line 102 of file IteratorAdapter.h.
|
inline |
Go to the next element in the List
Definition at line 88 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
|
inline |
Go to the previous element in the List
Definition at line 95 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
|
inline |
Dereference operator yields the element value
Definition at line 107 of file IteratorAdapter.h.
|
inline |
Assignment operator
[in] | x | reference object |
Definition at line 63 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
|
inline |
Assign from another iterator compatible with Iterator
[in] | x | the reference object |
Definition at line 71 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::__getIterator(), and IteratorAdapter< T, Iterator >::m_Iterator.
|
inline |
Comparison operator
[in] | x | reference object |
Definition at line 80 of file IteratorAdapter.h.
References IteratorAdapter< T, Iterator >::m_Iterator.
|
private |
The adapted iterator
Definition at line 127 of file IteratorAdapter.h.
Referenced by IteratorAdapter< T, Iterator >::__getIterator(), IteratorAdapter< T, Iterator >::operator++(), IteratorAdapter< T, Iterator >::operator--(), IteratorAdapter< T, Iterator >::operator=(), and IteratorAdapter< T, Iterator >::operator==().