|
Util--
1.1
|
set with hashing access More...
#include <utilmm/hash/hash_set.hh>
Public Types | |
| typedef container_type::value_type | value_type |
| Value type for cells. More... | |
| typedef container_type::iterator | iterator |
| iterator type More... | |
| typedef container_type::const_iterator | const_iterator |
| const iterator type More... | |
Public Member Functions | |
| void | swap (hash_set &other) |
| swapping function More... | |
| size_t | size () const |
| element count More... | |
| size_t | max_size () const |
| max element number More... | |
| bool | empty () const |
| Emptyness test. More... | |
| iterator | begin () |
| beginning of table More... | |
| iterator | end () |
| end of table More... | |
| const_iterator | begin () const |
| beginning of table More... | |
| const_iterator | end () const |
| end of table More... | |
| iterator | find (key_arg key) |
| Search for element. More... | |
| const_iterator | find (key_arg key) const |
| Search key. More... | |
| iterator | insert (key_arg key) |
| Cell insertion. More... | |
| void | erase (iterator const &first, iterator const &last) |
| Remove range. More... | |
| void | erase (iterator const &i) |
| Remove element. More... | |
| void | erase (key_arg key) |
| remove element More... | |
| void | clear () |
| Remove all elements. More... | |
set with hashing access
This is an unsorted set where elements are accessed using a hash function
| Key | the element type |
| Hash | hashing functor fo Key |
| Eqaul | equality functor for Key |
| typedef container_type::const_iterator utilmm::hash_set< Key, Hash, Equal >::const_iterator |
const iterator type
const iterator type The type used to iterate through this class without any modification
| typedef container_type::iterator utilmm::hash_set< Key, Hash, Equal >::iterator |
iterator type
iterator type The type used to iterate through and manipulate this class
| typedef container_type::value_type utilmm::hash_set< Key, Hash, Equal >::value_type |
|
inline |
beginning of table
Beginning of table.
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::begin().
|
inline |
beginning of table
Beginning of table.
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::begin().
|
inline |
Remove all elements.
remove all elements This function is strictly equivelent to erase(begin(), end())
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::clear().
|
inline |
Emptyness test.
Emptyness test.
| true | if this instance has no element |
| false | else |
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::empty().
|
inline |
end of table
End of table.
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::end().
Referenced by utilmm::hash_set< Key, Hash, Equal >::erase().
|
inline |
end of table
End of table.
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::end().
|
inline |
Remove range.
Remove elements.
| first | an iterator |
| last | an iterator |
removes all the element of the table in the range [first, last [
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::erase().
Referenced by utilmm::hash_set< Key, Hash, Equal >::erase().
|
inline |
Remove element.
| i | The lement to remove |
This function removes the element pointed by i form the table
References utilmm::hash_set< Key, Hash, Equal >::end(), and utilmm::hash_set< Key, Hash, Equal >::erase().
|
inline |
remove element
| key | the element to remove |
This function erase, if any, the element whose value is key
References utilmm::hash_set< Key, Hash, Equal >::erase(), and utilmm::hash_set< Key, Hash, Equal >::find().
|
inline |
Search for element.
| key | the element to find. |
This function tries to search in table an element equal to key
end() if not found. References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::equal_range().
Referenced by utilmm::hash_set< Key, Hash, Equal >::erase().
|
inline |
Search key.
Search for element.
| key | the element to find. |
This function tries to search in table an element equal to key
end() if not found. References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::equal_range().
|
inline |
Cell insertion.
| key | The value to insert |
This function tries to insert key in current instance. It will not insert it if there's already a cell equals to key
iterator pointing to cell with value key. References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::insert_unique().
|
inline |
max element number
max elmement number
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::max_size().
|
inline |
element count
element count
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::size().
|
inline |
swapping function
swapping values function This function exchange the value of current instance with the value of another instance.
| other | The other instance |
References utilmm::hash_toolbox::table< Key, Value, Extract, Hash, Equal >::swap().
1.8.6