|
CatapultServer
v0.5.0.1 (Elephant)
|
Typed container adapter that wraps column. More...


Classes | |
| class | const_iterator |
| Typed container iterator that adds descriptor-based deserialization. More... | |
Public Types | |
| using | KeyType = typename TDescriptor::KeyType |
| using | ValueType = typename TDescriptor::ValueType |
| using | StorageType = typename TDescriptor::StorageType |
Public Member Functions | |
| template<typename TDatabase = RocksDatabase> | |
| RdbTypedColumnContainer (TDatabase &database, size_t columnId) | |
| Creates a container around database and columnId. More... | |
| bool | empty () const |
Returns true if container is empty. More... | |
| void | insert (const StorageType &element) |
| Inserts element into container. More... | |
| const_iterator | find (const KeyType &key) const |
| Finds element with key. Returns cend() if key has not been found. More... | |
| size_t | prune (const KeyType &key) |
| Prunes elements with keys smaller than key. Returns number of pruned elements. More... | |
| void | remove (const KeyType &key) |
| Removes element with key. More... | |
| const_iterator | cend () const |
| Returns iterator that represents non-existing element. More... | |
Typed container adapter that wraps column.
| using catapult::cache::RdbTypedColumnContainer< TDescriptor, TContainer >::KeyType = typename TDescriptor::KeyType |
| using catapult::cache::RdbTypedColumnContainer< TDescriptor, TContainer >::StorageType = typename TDescriptor::StorageType |
| using catapult::cache::RdbTypedColumnContainer< TDescriptor, TContainer >::ValueType = typename TDescriptor::ValueType |
|
inline |
Creates a container around database and columnId.
|
inline |
Returns iterator that represents non-existing element.

|
inline |
Returns true if container is empty.
|
inline |
Finds element with key. Returns cend() if key has not been found.

|
inline |
Inserts element into container.

|
inline |
Prunes elements with keys smaller than key. Returns number of pruned elements.

|
inline |
Removes element with key.
