CatapultServer
v0.5.0.1 (Elephant)
AccountRestrictionBaseSets.h
Go to the documentation of this file.
1
21
#pragma once
22
#include "
AccountRestrictionCacheSerializers.h
"
23
#include "
AccountRestrictionCacheTypes.h
"
24
#include "
catapult/cache/CachePatriciaTree.h
"
25
#include "
catapult/cache/PatriciaTreeEncoderAdapters.h
"
26
#include "
catapult/cache/SingleSetCacheTypesAdapter.h
"
27
#include "
catapult/tree/BasePatriciaTree.h
"
28
29
namespace
catapult
{
namespace
cache {
30
31
using
BasicAccountRestrictionPatriciaTree
= tree::BasePatriciaTree<
32
SerializerHashedKeyEncoder<AccountRestrictionCacheDescriptor::Serializer>,
33
PatriciaTreeRdbDataSource,
34
utils::ArrayHasher<Address>
>;
35
36
class
AccountRestrictionPatriciaTree
:
public
BasicAccountRestrictionPatriciaTree
{
37
public
:
38
using
BasicAccountRestrictionPatriciaTree::BasicAccountRestrictionPatriciaTree
;
39
using
Serializer
=
AccountRestrictionCacheDescriptor::Serializer
;
40
};
41
42
using
AccountRestrictionSingleSetCacheTypesAdapter
=
43
SingleSetAndPatriciaTreeCacheTypesAdapter<AccountRestrictionCacheTypes::PrimaryTypes, AccountRestrictionPatriciaTree>
;
44
45
struct
AccountRestrictionBaseSetDeltaPointers
:
public
AccountRestrictionSingleSetCacheTypesAdapter::BaseSetDeltaPointers
{};
46
47
struct
AccountRestrictionBaseSets
48
:
public
AccountRestrictionSingleSetCacheTypesAdapter::BaseSets
<AccountRestrictionBaseSetDeltaPointers> {
49
using
AccountRestrictionSingleSetCacheTypesAdapter::BaseSets<AccountRestrictionBaseSetDeltaPointers>::BaseSets
;
50
};
51
}}
CachePatriciaTree.h
catapult::cache::AccountRestrictionsPrimarySerializer
Primary serializer for account restriction cache.
Definition:
AccountRestrictionCacheSerializers.h:29
catapult::cache::AccountRestrictionPatriciaTree
Definition:
AccountRestrictionBaseSets.h:36
catapult::tree::BasePatriciaTree
A base patricia tree.
Definition:
BasePatriciaTree.h:30
AccountRestrictionCacheTypes.h
catapult::cache::BasicAccountRestrictionPatriciaTree
tree::BasePatriciaTree< SerializerHashedKeyEncoder< AccountRestrictionCacheDescriptor::Serializer >, PatriciaTreeRdbDataSource, utils::ArrayHasher< Address > > BasicAccountRestrictionPatriciaTree
Definition:
AccountRestrictionBaseSets.h:34
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter
A cache types adapter for a cache composed of a single set and a patricia tree.
Definition:
SingleSetCacheTypesAdapter.h:84
SingleSetCacheTypesAdapter.h
BasePatriciaTree.h
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter::BaseSetDeltaPointers
Wrapper around single delta set and patricia tree.
Definition:
SingleSetCacheTypesAdapter.h:87
catapult::cache::AccountRestrictionCacheDescriptor::Serializer
AccountRestrictionsPrimarySerializer Serializer
Definition:
AccountRestrictionCacheTypes.h:61
catapult::cache::SingleSetAndPatriciaTreeCacheTypesAdapter::BaseSets
Wrapper around single set and patricia tree.
Definition:
SingleSetCacheTypesAdapter.h:94
PatriciaTreeEncoderAdapters.h
AccountRestrictionCacheSerializers.h
catapult
Definition:
AddressExtractionExtension.cpp:28
catapult::cache::AccountRestrictionBaseSetDeltaPointers
Definition:
AccountRestrictionBaseSets.h:45
catapult::utils::ArrayHasher
Definition:
Hashers.h:32
catapult::cache::AccountRestrictionBaseSets
Definition:
AccountRestrictionBaseSets.h:47
catapult-server
plugins
txes
restriction_account
src
cache
AccountRestrictionBaseSets.h
Generated by
1.8.16