const iterator for table
More...
#include <iter.hh>
Public Types | |
| typedef value_type const * | pointer |
| Pointer type. | |
| typedef value_type const * | pointer |
| Pointer type. | |
| typedef value_type const & | reference |
| Reference type. | |
| typedef value_type const & | reference |
| Reference type. | |
| typedef size_t | size_type |
| Size type. | |
| typedef size_t | size_type |
| Size type. | |
| typedef Value | value_type |
| Type of the pointed elements. | |
| typedef Value | value_type |
| Type of the pointed elements. | |
Public Member Functions | |
| const_iter (iter< Key, Value, Extract, Hash, Equal > const &other) | |
| Convertion constructor. | |
| const_iter () | |
| default crontructor | |
| const_iter (iter< Key, Value, Extract, Hash, Equal > const &other) | |
| Convertion constructor. | |
| const_iter () | |
| default crontructor | |
| bool | operator!= (const_iter const &other) const |
| Difference test. | |
| bool | operator!= (const_iter const &other) const |
| Difference test. | |
| reference | operator* () const |
| dereference operator | |
| reference | operator* () const |
| dereference operator | |
| const_iter | operator+ (size_type delta) const |
| Addition operation. | |
| const_iter | operator+ (size_type delta) const |
| Addition operation. | |
| const_iter | operator++ (int) |
| Post-increment operation. | |
| const_iter & | operator++ () |
| Pre-incremant operation. | |
| const_iter | operator++ (int) |
| Post-increment operation. | |
| const_iter & | operator++ () |
| Pre-incremant operation. | |
| const_iter & | operator+= (size_type delta) |
| Advance operation. | |
| const_iter & | operator+= (size_type delta) |
| Advance operation. | |
| pointer | operator-> () const |
| access operator | |
| pointer | operator-> () const |
| access operator | |
| bool | operator== (const_iter const &other) const |
| Equality test. | |
| bool | operator== (const_iter const &other) const |
| Equality test. | |
Private Types | |
| typedef table< Key, Value, Extract, Hash, Equal > | container_type |
| typedef table< Key, Value, Extract, Hash, Equal > | container_type |
| typedef container_type::node_type | node_type |
| typedef container_type::node_type | node_type |
Private Member Functions | |
| const_iter (node_type const *, container_type const *) | |
| const_iter (node_type const *, container_type const *) | |
Private Attributes | |
| node_type const * | current |
| container_type const * | owner |
Friends | |
| class | table |
const iterator for table
This class implements a const iterator for utilmm::hash_toolbox::table. A const iterator is an iterator with guarantees that it will never modify the container it points to.
Definition at line 38 of file install/include/utilmm/hash/bits/iter.hh.
typedef table<Key, Value, Extract, Hash, Equal> utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::container_type [private] |
Definition at line 146 of file utilmm/hash/bits/iter.hh.
typedef table<Key, Value, Extract, Hash, Equal> utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::container_type [private] |
Definition at line 146 of file install/include/utilmm/hash/bits/iter.hh.
typedef container_type::node_type utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::node_type [private] |
Definition at line 147 of file utilmm/hash/bits/iter.hh.
typedef container_type::node_type utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::node_type [private] |
Definition at line 147 of file install/include/utilmm/hash/bits/iter.hh.
| typedef value_type const* utilmm::hash_toolbox::const_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
Definition at line 50 of file utilmm/hash/bits/iter.hh.
| typedef value_type const* utilmm::hash_toolbox::const_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
Definition at line 50 of file install/include/utilmm/hash/bits/iter.hh.
| typedef value_type const& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::reference |
Reference type.
This is the type of the reference used to access to Value. For cont iterator it is a const reference
Definition at line 56 of file utilmm/hash/bits/iter.hh.
| typedef value_type const& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::reference |
Reference type.
This is the type of the reference used to access to Value. For cont iterator it is a const reference
Definition at line 56 of file install/include/utilmm/hash/bits/iter.hh.
| typedef size_t utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::size_type |
Size type.
This is the type used to advance the iterator or other things like that.
Definition at line 62 of file utilmm/hash/bits/iter.hh.
| typedef size_t utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::size_type |
Size type.
This is the type used to advance the iterator or other things like that.
Definition at line 62 of file install/include/utilmm/hash/bits/iter.hh.
| typedef Value utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::value_type |
Type of the pointed elements.
This the type of the elements in the container
Definition at line 44 of file utilmm/hash/bits/iter.hh.
| typedef Value utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::value_type |
Type of the pointed elements.
This the type of the elements in the container
Definition at line 44 of file install/include/utilmm/hash/bits/iter.hh.
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | ) |
default crontructor
Create an iterator not attached to any table
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | iter< Key, Value, Extract, Hash, Equal > const & | other | ) |
Convertion constructor.
This constructor is used to make implicit conversion from non cont iterator to const iterator when needed.
| other | the instance to copy |
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | node_type const * | , | |
| container_type const * | ||||
| ) | [private] |
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | ) |
default crontructor
Create an iterator not attached to any table
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | iter< Key, Value, Extract, Hash, Equal > const & | other | ) |
Convertion constructor.
This constructor is used to make implicit conversion from non cont iterator to const iterator when needed.
| other | the instance to copy |
| utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::const_iter | ( | node_type const * | , | |
| container_type const * | ||||
| ) | [private] |
| bool utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator!= | ( | const_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 |
| bool utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator!= | ( | const_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::const_iter< Key, Value, Extract, Hash, Equal >::operator* | ( | ) | const |
dereference operator
| reference utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator* | ( | ) | const |
dereference operator
| const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+ | ( | size_type | delta | ) | const |
Addition operation.
| delta | distance to add |
This function returns an iterator delta cells after current instance
| const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+ | ( | size_type | delta | ) | const |
Addition operation.
| delta | distance to add |
This function returns an iterator delta cells after current instance
| const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | int | ) |
Post-increment operation.
Advance iterator of one cell
| const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | ) |
Pre-incremant operation.
Advance iterator of one cell
| const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | int | ) |
Post-increment operation.
Advance iterator of one cell
| const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator++ | ( | ) |
Pre-incremant operation.
Advance iterator of one cell
| const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+= | ( | size_type | delta | ) |
Advance operation.
| delta | distance to advance |
This function increments the iterator position of the given distance delta .
*this after operation | const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+= | ( | size_type | delta | ) |
Advance operation.
| delta | distance to advance |
This function increments the iterator position of the given distance delta .
*this after operation | pointer utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator-> | ( | ) | const |
access operator
This operator allow user to acces directly to attributes of pointed cell.
| pointer utilmm::hash_toolbox::const_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::const_iter< Key, Value, Extract, Hash, Equal >::operator== | ( | const_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 |
| bool utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator== | ( | const_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 |
table [friend] |
Definition at line 155 of file install/include/utilmm/hash/bits/iter.hh.
node_type const * utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::current [private] |
Definition at line 150 of file install/include/utilmm/hash/bits/iter.hh.
container_type const * utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::owner [private] |
Definition at line 149 of file install/include/utilmm/hash/bits/iter.hh.