Algorithms Library Toolkit
A toolkit for algorithms, especially for algorithms on formal languages
|
Class wrapping an integral type, but with pointer iterface. More...
#include <foreach.hpp>
Public Types | |
typedef IntegralType | value_type |
typedef std::ptrdiff_t | difference_type |
typedef IntegralType * | pointer |
typedef IntegralType | reference |
typedef std::bidirectional_iterator_tag | iterator_category |
Public Member Functions | |
virtual_pointer_to_integer (IntegralType data) | |
Constructor of the virtual pointer class. More... | |
IntegralType | operator* () const |
Method to retrieve the integral value. More... | |
virtual_pointer_to_integer & | operator++ () |
Prefix increment operator to increment the hold value. More... | |
virtual_pointer_to_integer & | operator-- () |
Prefix decrement operator to decrement the hold value. More... | |
virtual_pointer_to_integer | operator++ (int) |
Postfix increment operator to increment the hold value. More... | |
virtual_pointer_to_integer | operator-- (int) |
Postfix decrement operator to decrement the hold value. More... | |
bool | operator== (const virtual_pointer_to_integer< IntegralType > &other) const |
Equality operator. Two classes are equal if the data they hold is the same. More... | |
bool | operator!= (const virtual_pointer_to_integer< IntegralType > &other) const |
Inequality operator. Two classes are not equal if the data they hold is different. More... | |
Class wrapping an integral type, but with pointer iterface.
IntegralType | the type of values the iterator provides |
typedef std::ptrdiff_t ext::virtual_pointer_to_integer< IntegralType >::difference_type |
typedef std::bidirectional_iterator_tag ext::virtual_pointer_to_integer< IntegralType >::iterator_category |
typedef IntegralType* ext::virtual_pointer_to_integer< IntegralType >::pointer |
typedef IntegralType ext::virtual_pointer_to_integer< IntegralType >::reference |
typedef IntegralType ext::virtual_pointer_to_integer< IntegralType >::value_type |
|
inline |
Constructor of the virtual pointer class.
data | the value to hold |
|
inline |
Inequality operator. Two classes are not equal if the data they hold is different.
other | the other instance to compare with |
|
inline |
Method to retrieve the integral value.
|
inline |
Prefix increment operator to increment the hold value.
|
inline |
Postfix increment operator to increment the hold value.
|
inline |
Prefix decrement operator to decrement the hold value.
|
inline |
Postfix decrement operator to decrement the hold value.
|
inline |
Equality operator. Two classes are equal if the data they hold is the same.
other | the other instance to compare with |