claw::it_index< T > Class Template Reference

A class to manage an index and an iterator easily. More...

`#include <it_index.hpp>`

## Public Types

typedef std::iterator_traits< T >::value_type | value_type
typedef std::iterator_traits< T >::difference_type | difference_type
typedef std::iterator_traits< T >::pointer | pointer
typedef std::iterator_traits< T >::reference | reference

## Public Member Functions

| it_index ()
| Constructor.
| it_index (const T &it, int index=0)
| Constructor. More...
| it_index (const it_index< T > &that)
| Copy constructor. More...
void | set (const T &it, int index)
| Change the current pair. More...
bool | operator< (const it_index< T > &that) const
bool | operator< (const T &it) const
bool | operator< (int index) const
bool | operator<= (const it_index< T > &that) const
bool | operator<= (const T &it) const
bool | operator<= (int index) const
bool | operator> (const it_index< T > &that) const
bool | operator> (const T &it) const
bool | operator> (int index) const
bool | operator>= (const it_index< T > &that) const
bool | operator>= (const T &it) const
bool | operator>= (int index) const
bool | operator== (const it_index< T > &that) const
bool | operator== (const T &it) const
bool | operator== (int index) const
bool | operator!= (const it_index< T > &that) const
bool | operator!= (const T &it) const
bool | operator!= (int index) const
it_index< T > | operator+ (int index) const
it_index< T > | operator- (int index) const
it_index< T > | operator* (int index) const
it_index< T > | operator/ (int index) const
reference | operator* () const
pointer | operator-> () const
it_index< T > & | operator++ ()
it_index< T > | operator++ (int)
it_index< T > & | operator-- ()
it_index< T > | operator-- (int)
it_index< T > & | operator+= (int index)
it_index< T > & | operator-= (int index)
it_index< T > & | operator*= (int index)
it_index< T > & | operator/= (int index)
| operator int () const
| operator T () const

## Detailed Description

### template<class T>
class claw::it_index< T >

A class to manage an index and an iterator easily.

Parameters

  T | Type of the iterator.

Author
  Julien Jorge

Definition at line 42 of file it_index.hpp.

## Constructor & Destructor Documentation

## it_index() [1/2]

template<class T>

claw::it_index< T >::it_index | ( | const T & | it,
|  | int | index = `0`
| ) |  |

inline

Constructor.

Parameters

  it | The iterator.
  index | Iterator's position.

Definition at line 68 of file it_index.hpp.

## it_index() [2/2]

template<class T>

claw::it_index< T >::it_index | ( | const it_index< T > & | that | ) |

inline

Copy constructor.

Parameters

  that | it_index to copy from.

Definition at line 76 of file it_index.hpp.

## Member Function Documentation

## set()

template<class T>

void claw::it_index< T >::set | ( | const T & | it,
|  | int | index
| ) |  |

inline

Change the current pair.

Parameters

  it | The new iterator.
  index | New iterator's position.

Definition at line 85 of file it_index.hpp.

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

- it_index.hpp