CatapultServer
v0.5.0.1 (Elephant)
|
Patricia tree column descriptor. More...
Public Types | |
using | KeyType = Hash256 |
using | ValueType = tree::TreeNode |
using | StorageType = std::pair< const KeyType, ValueType > |
using | Serializer = tree::PatriciaTreeSerializer |
Static Public Member Functions | |
static const auto & | GetKeyFromValue (const ValueType &treeNode) |
Gets the key corresponding to treeNode. More... | |
static auto | ToStorage (const ValueType &treeNode) |
Converts a value type (treeNode) to a storage type. More... | |
static const auto & | ToKey (const StorageType &element) |
Converts a storage type (element) to a key type. More... | |
static const auto & | ToValue (const StorageType &element) |
Converts a storage type (element) to a value type. More... | |
Patricia tree column descriptor.
using catapult::cache::PatriciaTreeColumnDescriptor::StorageType = std::pair<const KeyType, ValueType> |
|
inlinestatic |
Gets the key corresponding to treeNode.
|
inlinestatic |
Converts a storage type (element) to a key type.
|
inlinestatic |
Converts a value type (treeNode) to a storage type.
|
inlinestatic |
Converts a storage type (element) to a value type.