table
More...
#include <utilmm/hash/bits/iter.hh>
Public Types | |
| typedef Value | value_type |
| Type of the pointed elements. | |
| typedef value_type const * | pointer |
| Pointer type. | |
| typedef value_type const & | reference |
| Reference type. | |
| typedef size_t | size_type |
| Size type. | |
Public Member Functions | |
| const_iter () | |
| default crontructor | |
| const_iter (iter< Key, Value, Extract, Hash, Equal > const &other) | |
| Convertion constructor. | |
| bool | operator== (const_iter const &other) const |
| Equality test. | |
| bool | operator!= (const_iter const &other) const |
| Difference test. | |
| const_iter & | operator+= (size_type delta) |
| Advance operation. | |
| const_iter | operator+ (size_type delta) const |
| Addition operation. | |
| const_iter & | operator++ () |
| Pre-incremant operation. | |
| const_iter | operator++ (int) |
| Post-increment operation. | |
| pointer | operator-> () const |
| access operator | |
| reference | operator * () const |
| dereference operator | |
Friends | |
| class | table |
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.
| 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
| 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
| 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
| 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.
| 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 |
| 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 |
Difference test.
| other | The instance to compare |
| true | if *this is not equal to other | |
| false | else |
| const_iter& utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+= | ( | size_type | delta | ) |
Advance operation.
| delta | distance to advance |
*this after operation | const_iter utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator+ | ( | size_type | delta | ) | const |
Addition operation.
| delta | distance to add |
| 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
| 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.
| reference utilmm::hash_toolbox::const_iter< Key, Value, Extract, Hash, Equal >::operator * | ( | ) | const |
dereference operator
friend class table [friend] |
1.5.3