CatapultServer  v0.5.0.1 (Elephant)
AccountStateMapper.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "MapperInclude.h"
23 
24 namespace catapult { namespace state { struct AccountState; } }
25 
26 namespace catapult { namespace mongo { namespace mappers {
27 
29  bsoncxx::document::value ToDbModel(const state::AccountState& accountState);
30 }}}
MapperUtils.h
catapult::state::AccountState::PublicKey
Key PublicKey
Public key of an account. Present if PublicKeyHeight > 0.
Definition: AccountState.h:64
catapult::mongo::mappers::StreamMosaic
bson_stream::array_context & StreamMosaic(bson_stream::array_context &context, MosaicId id, Amount amount)
Streams a mosaic composed of id and amount to context.
Definition: MapperUtils.cpp:102
catapult::state::AccountBalances
Container holding information about account.
Definition: AccountBalances.h:31
catapult::state::AccountState
Account state data.
Definition: AccountState.h:44
catapult::state::AccountActivityBuckets
Stack of account activity buckets.
Definition: AccountActivityBuckets.h:29
catapult::state::AccountState::PublicKeyHeight
Height PublicKeyHeight
Height at which public key has been obtained.
Definition: AccountState.h:67
catapult::state::AccountState::AccountType
state::AccountType AccountType
Type of account.
Definition: AccountState.h:70
catapult::state::AccountState::ActivityBuckets
AccountActivityBuckets ActivityBuckets
Activity buckets of the account.
Definition: AccountState.h:79
catapult::utils::to_underlying_type
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
catapult::mongo::mappers::ToInt64
int64_t ToInt64(TBaseValue value)
Converts base value to int64_t.
Definition: MapperUtils.h:75
catapult::utils::BaseValue< Height::ValueType, ImportanceHeight_tag >
catapult::state::AccountState::Address
catapult::Address Address
Address of an account.
Definition: AccountState.h:58
AccountStateMapper.h
catapult::state::AccountState::LinkedAccountKey
Key LinkedAccountKey
Public key of linked account.
Definition: AccountState.h:73
catapult::state::AccountImportanceSnapshots
Stack of account importance snapshots.
Definition: AccountImportanceSnapshots.h:28
catapult::cache::CacheId::AccountState
AccountState.h
catapult::state::AccountState::Balances
AccountBalances Balances
Balances of an account.
Definition: AccountState.h:82
Casting.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::mongo::mappers::ToBinary
bsoncxx::types::b_binary ToBinary(const uint8_t *pData, size_t size)
Converts raw array (pData) of size elements into bson binary type.
Definition: MapperUtils.cpp:30
catapult::mongo::mappers::ToDbModel
bsoncxx::document::value ToDbModel(const state::AccountState &accountState)
Maps an account state (accountState) to the corresponding db model value.
Definition: AccountStateMapper.cpp:81
catapult::state::AccountState::AddressHeight
Height AddressHeight
Height at which address has been obtained.
Definition: AccountState.h:61
catapult::state::AccountState::ImportanceSnapshots
AccountImportanceSnapshots ImportanceSnapshots
Importance snapshots of the account.
Definition: AccountState.h:76
MapperInclude.h