|
pstore2
|


Public Types | |
| using | key_type = KeyType |
| using | value_type = key_type |
| using | key_equal = KeyEqual |
| using | hasher = Hash |
| using | reference = value_type & |
| using | const_reference = value_type const & |
| using | const_iterator = set_iterator< typename hamt_map< value_type, details::empty_class, hasher, key_equal >::const_iterator > |
| using | iterator = const_iterator |
Public Member Functions | |
| hamt_set (database const &db, typed_address< header_block > ip=typed_address< header_block >::null(), hasher const &hash=hasher()) | |
| template<typename OtherKeyType , typename = typename std::enable_if< serialize::is_compatible<KeyType, OtherKeyType>::value>::type> | |
| std::pair< iterator, bool > | insert (transaction_base &transaction, OtherKeyType const &key) |
| Inserts an element into the container, if the container doesn't already contain an element with an equivalent key. More... | |
| template<typename OtherKeyType , typename = typename std::enable_if< serialize::is_compatible<KeyType, OtherKeyType>::value>::type> | |
| const_iterator | find (database const &db, OtherKeyType const &key) const |
| Find the element with a specific key. More... | |
| typed_address< header_block > | flush (transaction_base &transaction, unsigned generation) |
| Flush any modified index nodes to the store. More... | |
Iterators | |
| range< database, hamt_set, iterator > | make_range (database &db) |
| range< database const, hamt_set const, const_iterator > | make_range (database const &db) const |
| iterator | begin (database &db) |
| const_iterator | begin (database const &db) const |
| const_iterator | cbegin (database const &db) const |
| iterator | end (database &db) |
| const_iterator | end (database const &db) const |
| const_iterator | cend (database const &db) const |
Capacity | |
| bool | empty () const |
| Checks whether the container is empty. | |
| std::size_t | size () const |
| Returns the number of elements in the container. | |
Accessors | |
Provide access to index internals. | |
| value_type | load_leaf_node (database const &db, address const addr) const |
| Read a leaf node from a store. | |
| index_pointer | root () const |
|
inline |
Find the element with a specific key.
Finds an element with key equivalent to key.
| OtherKeyType | A type whose serialized representation is compatible with KeyType. |
| db | A database to which the index belongs. |
| key | The key value of the element to search for. |
key. If no such element is found, the past-the-end iterator is returned.
|
inline |
Flush any modified index nodes to the store.
| transaction | The transaction to which the set will be written. |
| generation | The generation number to which the set will be written. |
|
inline |
Inserts an element into the container, if the container doesn't already contain an element with an equivalent key.
| OtherKeyType | A type whose serialized representation is compatible with KeyType. |
| transaction | The transaction into which the new value element will be inserted. |
| key | Element value to insert. |
1.8.13