|
Util--
1.1
|
iterator for table
More...
#include <utilmm/hash/bits/iter.hh>
Public Types | |
| typedef Value | value_type |
| Type of the pointed elements. More... | |
| typedef value_type * | pointer |
| Pointer type. More... | |
| typedef value_type & | reference |
| Reference type. More... | |
| typedef size_t | size_type |
| Size type. More... | |
Public Member Functions | |
| iter () | |
| default crontructor More... | |
| bool | operator== (iter const &other) const |
| Equality test. More... | |
| bool | operator!= (iter const &other) const |
| Difference test. More... | |
| iter & | operator+= (size_type pos) |
| Advance operation. More... | |
| iter | operator+ (size_type pos) const |
| Addition operation. More... | |
| iter & | operator++ () |
| Pre-incremant operation. More... | |
| iter | operator++ (int) |
| Post-increment operation. More... | |
| pointer | operator-> () const |
| access operator More... | |
| reference | operator* () const |
| dereference operator More... | |
Friends | |
| template<typename K , typename V , class Ex , class H , class Eq > | |
| class | const_iter |
| template<typename K , typename V , class Ex , class H , class Eq > | |
| class | table |
iterator for table
This class implements a iterator for utilmm::hash_toolbox::table.
| typedef value_type* utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::pointer |
Pointer type.
This is the type of the pointer used to access to Value. For cont iterator it is a const pointer
| typedef value_type& utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::reference |
Reference type.
This is the type of the reference used to access to Value.
| typedef size_t utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::size_type |
Size type.
This is the type used to advance the iterator or other things like that.
| typedef Value utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::value_type |
Type of the pointed elements.
This the type of the elements in the container
| utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::iter | ( | ) |
default crontructor
Create an iterator not attached to any table
| bool utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator!= | ( | iter< Key, Value, Extract, Hash, Equal > const & | other | ) | const |
Difference test.
| other | The instance to compare |
| true | if *this is not equal to other |
| false | else |
| reference utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator* | ( | ) | const |
dereference operator
| iter utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator+ | ( | size_type | pos | ) | const |
Addition operation.
| pos | distance to add |
This function returns an iterator pos cells after current instance
| iter& utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | ) |
Pre-incremant operation.
Advance iterator of one cell
| iter utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | int | ) |
Post-increment operation.
Advance iterator of one cell
| iter& utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator+= | ( | size_type | pos | ) |
Advance operation.
| pos | distance to advance |
This function increments the iterator position of the given distance pos .
*this after operation | pointer utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator-> | ( | ) | const |
access operator
This operator allow user to acces directly to attributes of pointed cell.
| bool utilmm::hash_toolbox::iter< Key, Value, Extract, Hash, Equal >::operator== | ( | iter< Key, Value, Extract, Hash, Equal > const & | other | ) | const |
Equality test.
| other | The instance to compare |
| true | if *this is equal to other |
| false | else |
|
friend |
|
friend |
1.8.13