CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace model {
33 template<
typename TEntityHeader,
typename TComponentEntity>
49 return TEntityHeader::Size <=
sizeof(TEntityHeader)
51 : reinterpret_cast<TComponentEntity*>(reinterpret_cast<uint8_t*>(
this) +
sizeof(TEntityHeader));
56 return TEntityHeader::Size <=
sizeof(TEntityHeader)
58 : reinterpret_cast<const TComponentEntity*>(reinterpret_cast<const uint8_t*>(
this) +
sizeof(TEntityHeader));
auto Transactions(EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw)
Definition: TransactionContainer.h:37
constexpr BasicContiguousEntityContainer< TEntity > MakeContiguousEntityContainer(TEntity *pEntity, size_t size, EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw)
Definition: ContiguousEntityContainer.h:214
EntityContainerErrorPolicy
Polcies for handling iteration errors.
Definition: ContiguousEntityContainer.h:28
auto Transactions(EntityContainerErrorPolicy errorPolicy=EntityContainerErrorPolicy::Throw) const
Definition: TransactionContainer.h:43
Immediately throw when an iteration error is encounted.
size_t GetTransactionPayloadSize(const AggregateTransactionHeader &header)
Gets the number of bytes containing transaction data according to header.
Definition: AggregateTransaction.cpp:25
const TComponentEntity * TransactionsPtr() const
Returns a const pointer to transactions contained in this container.
Definition: TransactionContainer.h:55
Definition: TransactionContainer.h:34
TComponentEntity * TransactionsPtr()
Returns a pointer to transactions contained in this container.
Definition: TransactionContainer.h:48
Definition: AddressExtractionExtension.cpp:28