|
BioDynaMo
v1.05.125-2619fe54
|
#include <flatmap.h>
Public Types | |
| using | value_type = TValue |
| using | Pair = std::pair< TKey, TValue > |
| using | Iterator = Pair * |
| using | ConstIterator = const Pair * |
Public Member Functions | |
| UnorderedFlatmap ()=default | |
| void | reserve (uint64_t new_capacity) |
| size_t | size () const |
| size_t | Capacity () const |
| void | clear () |
| const TValue & | at (const TKey &key) const |
| void | insert (Pair &&pair) |
| TValue & | operator[] (const TKey &key) |
| const TValue & | operator[] (const TKey &key) const |
| Iterator | find (const TKey &key) |
| ConstIterator | find (const TKey &key) const |
| Iterator | begin () |
| ConstIterator | begin () const |
| Iterator | end () |
| ConstIterator | end () const |
Private Member Functions | |
| uint64_t | FindIndex (const TKey &key) |
| uint64_t | FindIndexConst (const TKey &key) const |
Private Attributes | |
| std::vector< Pair > | data_ |
| std::size_t | size_ = 0 |
| using bdm::UnorderedFlatmap< TKey, TValue >::ConstIterator = const Pair* |
| using bdm::UnorderedFlatmap< TKey, TValue >::Iterator = Pair* |
| using bdm::UnorderedFlatmap< TKey, TValue >::Pair = std::pair<TKey, TValue> |
| using bdm::UnorderedFlatmap< TKey, TValue >::value_type = TValue |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlineprivate |
|
inlineprivate |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |
1.8.17