hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
range_types.hpp
Go to the documentation of this file.
1 
6 #ifndef IROHA_SHARED_MODEL_RANGE_TYPES_HPP
7 #define IROHA_SHARED_MODEL_RANGE_TYPES_HPP
8 
9 #include <boost/range/any_range.hpp>
11 
12 namespace shared_model {
13  namespace interface {
14 
15  class Signature;
16  class Transaction;
17  class AccountAsset;
18 
19  namespace types {
20 
22  using SignatureRangeType = boost::any_range<interface::Signature,
23  boost::forward_traversal_tag,
24  const Signature &>;
27  boost::any_range<Transaction,
28  boost::random_access_traversal_tag,
29  const Transaction &>;
31  boost::any_range<AccountAsset,
32  boost::random_access_traversal_tag,
33  const AccountAsset &>;
35  using HashCollectionType = boost::
36  any_range<HashType, boost::forward_traversal_tag, const HashType &>;
37 
38  } // namespace types
39  } // namespace interface
40 } // namespace shared_model
41 
42 #endif // IROHA_SHARED_MODEL_RANGE_TYPES_HPP
Definition: signature.hpp:25
boost::any_range< AccountAsset, boost::random_access_traversal_tag, const AccountAsset & > AccountAssetCollectionType
Definition: range_types.hpp:33
boost::any_range< interface::Signature, boost::forward_traversal_tag, const Signature & > SignatureRangeType
Type of signature range, which returns when signatures are invoked.
Definition: range_types.hpp:24
Definition: range_types.hpp:19
boost::any_range< HashType, boost::forward_traversal_tag, const HashType & > HashCollectionType
Type of hash collection.
Definition: range_types.hpp:36
Definition: command_executor.hpp:12
Definition: account_asset.hpp:20
Definition: transaction.hpp:23
boost::any_range< Transaction, boost::random_access_traversal_tag, const Transaction & > TransactionsCollectionType
Type of transactions&#39; collection.
Definition: range_types.hpp:29