hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
transaction_sequence.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_TRANSACTION_SEQUENCE_HPP
7 #define IROHA_TRANSACTION_SEQUENCE_HPP
8 
9 #include <boost/optional.hpp>
11 
12 namespace shared_model {
13  namespace interface {
14 
22  public:
23  TransactionSequence() = delete;
24  TransactionSequence(const TransactionSequence &) = default;
26 
28 
34 
42 
43  std::string toString() const;
44 
45  private:
47  mutable boost::optional<types::SharedTxsCollectionType> transactions_;
48  };
49 
50  } // namespace interface
51 } // namespace shared_model
52 
53 #endif // IROHA_TRANSACTION_SEQUENCE_HPP
Definition: transaction_sequence.hpp:21
const types::BatchesCollectionType & batches() const
Definition: transaction_sequence.cpp:38
const types::SharedTxsCollectionType & transactions() const
Definition: transaction_sequence.cpp:15
std::string toString() const
Definition: transaction_sequence.cpp:42
std::vector< std::shared_ptr< TransactionBatch >> BatchesCollectionType
Definition: transaction_sequence_common.hpp:30
Definition: command_executor.hpp:12
std::vector< std::shared_ptr< Transaction >> SharedTxsCollectionType
Definition: transaction_sequence_common.hpp:27