CatapultServer  v0.5.0.1 (Elephant)
catapult::cache::PatriciaTreeColumnDescriptor Struct Reference

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...
 

Detailed Description

Patricia tree column descriptor.

Member Typedef Documentation

◆ KeyType

◆ Serializer

◆ StorageType

◆ ValueType

Member Function Documentation

◆ GetKeyFromValue()

static const auto& catapult::cache::PatriciaTreeColumnDescriptor::GetKeyFromValue ( const ValueType treeNode)
inlinestatic

Gets the key corresponding to treeNode.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ToKey()

static const auto& catapult::cache::PatriciaTreeColumnDescriptor::ToKey ( const StorageType element)
inlinestatic

Converts a storage type (element) to a key type.

◆ ToStorage()

static auto catapult::cache::PatriciaTreeColumnDescriptor::ToStorage ( const ValueType treeNode)
inlinestatic

Converts a value type (treeNode) to a storage type.

Here is the call graph for this function:

◆ ToValue()

static const auto& catapult::cache::PatriciaTreeColumnDescriptor::ToValue ( const StorageType element)
inlinestatic

Converts a storage type (element) to a value type.


The documentation for this struct was generated from the following file: