CatapultServer  v0.5.0.1 (Elephant)
MongoNamespaceCacheStorageUtils.h
Go to the documentation of this file.
1 
21 #pragma once
23 #include <vector>
24 
25 namespace catapult {
26  namespace mongo { namespace plugins { struct NamespaceDescriptor; } }
27  namespace state { class RootNamespaceHistory; }
28 }
29 
30 namespace catapult { namespace mongo { namespace plugins {
31 
33  std::vector<NamespaceDescriptor> NamespaceDescriptorsFromHistory(
34  const state::RootNamespaceHistory& history,
35  model::NetworkIdentifier networkIdentifier);
36 }}}
RootNamespaceHistory.h
catapult::utils::CheckedArray< NamespaceId, Namespace_Max_Depth >
NamespaceDescriptor.h
catapult::state::RootNamespaceHistory
A root namespace history.
Definition: RootNamespaceHistory.h:31
NetworkInfo.h
catapult::mongo::plugins::NamespaceDescriptorsFromHistory
std::vector< NamespaceDescriptor > NamespaceDescriptorsFromHistory(const state::RootNamespaceHistory &history, model::NetworkIdentifier networkIdentifier)
Converts the root namespace history into a vector of namespace descriptors using networkIdentifier fo...
Definition: MongoNamespaceCacheStorageUtils.cpp:28
Address.h
catapult::model::PublicKeyToAddress
Address PublicKeyToAddress(const Key &publicKey, NetworkIdentifier networkIdentifier)
Creates an address from a public key (publicKey) for the network identified by networkIdentifier.
Definition: Address.cpp:50
catapult::model::NetworkIdentifier
NetworkIdentifier
Possible network identifiers.
Definition: NetworkInfo.h:45
catapult::utils::CheckedArray::push_back
void push_back(T val)
Definition: CheckedArray.h:51
MongoNamespaceCacheStorageUtils.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::state::RootNamespaceHistory::id
NamespaceId id() const
Gets the id of the root namespace history.
Definition: RootNamespaceHistory.cpp:59