CatapultServer  v0.5.0.1 (Elephant)
InputUtils.h
Go to the documentation of this file.
1 
21 #pragma once
26 #include <unordered_set>
27 
28 namespace catapult { namespace consumers {
29 
30  using disruptor::ConsumerResult;
33 
36 
38  std::vector<const model::Block*> ExtractBlocks(const BlockElements& elements);
39 
42  void ExtractEntityInfos(
43  const TransactionElements& elements,
44  model::WeakEntityInfos& entityInfos,
45  std::vector<size_t>& entityInfoElementIndexes);
46 
48  using TransactionInfos = std::vector<model::TransactionInfo>;
49 
53  const utils::HashPointerSet& addedTransactionHashes,
54  TransactionInfos&& removedTransactionInfos);
55 }}
InputUtils.h
WeakEntityInfo.h
catapult::consumers::ExtractEntityInfos
void ExtractEntityInfos(const TransactionElements &elements, model::WeakEntityInfos &entityInfos, std::vector< size_t > &entityInfoElementIndexes)
Definition: InputUtils.cpp:45
catapult::consumers::ExtractTransactionHashes
utils::HashPointerSet ExtractTransactionHashes(const BlockElements &elements)
Extracts all transaction hashes from elements.
Definition: InputUtils.cpp:35
catapult::consumers::TransactionInfos
std::vector< model::TransactionInfo > TransactionInfos
Container for transactions infos.
Definition: InputUtils.h:48
EntityInfo.h
catapult::disruptor::TransactionElements
std::vector< FreeTransactionElement > TransactionElements
A container of FreeTransactionElement.
Definition: DisruptorTypes.h:135
catapult::disruptor::BlockElements
std::vector< model::BlockElement > BlockElements
A container of BlockElement.
Definition: DisruptorTypes.h:132
ArraySet.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::consumers::ExtractBlocks
std::vector< const model::Block * > ExtractBlocks(const BlockElements &elements)
Extracts all blocks from elements.
Definition: InputUtils.cpp:25
catapult::utils::HashPointerSet
ArrayPointerSet< Hash256 > HashPointerSet
A hash pointer set.
Definition: ArraySet.h:70
catapult::consumers::CollectRevertedTransactionInfos
TransactionInfos CollectRevertedTransactionInfos(const utils::HashPointerSet &addedTransactionHashes, TransactionInfos &&removedTransactionInfos)
Definition: InputUtils.cpp:60
catapult::disruptor::ConsumerResultSeverity::Success
Success result.
DisruptorElement.h
catapult::model::WeakEntityInfos
std::vector< WeakEntityInfo > WeakEntityInfos
A container of weak entity infos.
Definition: WeakEntityInfo.h:144