A set that assigns each element an unique index, and protects its internal terms en masse.
More...
|
| indexed_set () |
| Constructor of an empty indexed set. Starts with a hashtable of size 128.
|
|
| indexed_set (std::size_t number_of_threads) |
| Constructor of an empty indexed set. Starts with a hashtable of size 128.
|
|
| indexed_set (std::size_t number_of_threads, std::size_t initial_hashtable_size, const typename super::hasher &hash=typename super::hasher(), const typename super::key_equal &equals=typename super::key_equal()) |
| Constructor of an empty index set. Starts with a hashtable of the indicated size.
|
|
void | clear (std::size_t thread_index=0) |
|
std::pair< size_type, bool > | insert (const Key &key, std::size_t thread_index=0) |
|
| indexed_set () |
| Constructor of an empty indexed set. Starts with a hashtable of size 128 and assumes one single thread.
|
|
| indexed_set (std::size_t number_of_threads) |
| Constructor of an empty indexed set.
|
|
| indexed_set (std::size_t number_of_threads, std::size_t initial_hashtable_size, const hasher &hash=hasher(), const key_equal &equals=key_equal()) |
| Constructor of an empty index set. Starts with a hashtable of the indicated size.
|
|
size_type | index (const key_type &key, std::size_t thread_index=0) const |
| Returns a reference to the mapped value.
|
|
const key_type & | at (const size_type index) const |
| Returns a reference to the mapped value.
|
|
const key_type & | operator[] (const size_type index) const |
| Operator that provides a const reference at the position indicated by index.
|
|
iterator | begin (std::size_t thread_index=0) |
| Forward iterator which runs through the elements from the lowest to the largest number.
|
|
iterator | end (std::size_t thread_index=0) |
| End of the forward iterator.
|
|
const_iterator | begin (std::size_t thread_index=0) const |
| Forward iterator which runs through the elements from the lowest to the largest number.
|
|
const_iterator | end (std::size_t thread_index=0) const |
| End of the forward iterator.
|
|
const_iterator | cbegin (std::size_t thread_index=0) const |
| const_iterator going through the elements in the set numbered from zero upwards.
|
|
const_iterator | cend (std::size_t thread_index=0) const |
| End of the forward const_iterator.
|
|
reverse_iterator | rbegin (std::size_t thread_index=0) |
| Reverse iterator going through the elements in the set from the largest to the smallest index.
|
|
reverse_iterator | rend (std::size_t thread_index=0) |
| End of the reverse iterator.
|
|
const_reverse_iterator | crbegin (std::size_t thread_index=0) const |
| Reverse const_iterator going through the elements from the highest to the lowest numbered element.
|
|
const_reverse_iterator | crend (std::size_t thread_index=0) const |
| End of the reverse const_iterator.
|
|
void | clear (std::size_t thread_index=0) |
| Clears the indexed set by removing all its elements. It is not guaranteed that the memory is released too.
|
|
std::pair< size_type, bool > | insert (const key_type &key, std::size_t thread_index=0) |
| Insert a key in the indexed set and return its index.
|
|
const_iterator | find (const key_type &key, std::size_t thread_index=0) const |
| Provides an iterator to the stored key in the indexed set.
|
|
size_type | size (std::size_t thread_index=0) const |
| The number of elements in the indexed set.
|
|
template<typename Key, bool ThreadSafe = false, typename Hash = std::hash<Key>, typename Equals = std::equal_to<Key>, typename Allocator = std::allocator<Key>, typename KeyTable = atermpp::deque<Key >>
class atermpp::indexed_set< Key, ThreadSafe, Hash, Equals, Allocator, KeyTable >
A set that assigns each element an unique index, and protects its internal terms en masse.
Definition at line 29 of file indexed_set.h.