29 #include <boost/multi_index_container.hpp> 30 #include <boost/multi_index/member.hpp> 31 #include <boost/multi_index/ordered_index.hpp> 32 #include <boost/multi_index/hashed_index.hpp> 33 #include <boost/multi_index/mem_fun.hpp> 35 namespace graphene {
namespace chain {
37 using boost::multi_index_container;
45 implementation_ids, impl_transaction_history_object_type>
56 typedef multi_index_container<
59 ordered_unique< tag<by_id>, member< object, object_id_type, &object::id > >,
60 hashed_unique< tag<by_trx_id>, BOOST_MULTI_INDEX_MEMBER(transaction_history_object,
transaction_id_type, trx_id),
61 std::hash<transaction_id_type> >,
62 ordered_non_unique< tag<by_expiration>, const_mem_fun< transaction_history_object,
time_point_sec,
fc::time_point_sec expiration
#define MAP_OBJECT_ID_TO_TYPE(OBJECT)
transaction_id_type trx_id
generic_index< transaction_history_object, transaction_multi_index_type > transaction_index
FC_REFLECT_TYPENAME(fc::log_message)
multi_index_container< transaction_history_object, indexed_by< ordered_unique< tag< by_id >, member< object, object_id_type, &object::id > >, hashed_unique< tag< by_trx_id >, BOOST_MULTI_INDEX_MEMBER(transaction_history_object, transaction_id_type, trx_id), std::hash< transaction_id_type > >, ordered_non_unique< tag< by_expiration >, const_mem_fun< transaction_history_object, time_point_sec, &transaction_history_object::get_expiration > > > > transaction_multi_index_type
#define GRAPHENE_DECLARE_EXTERNAL_SERIALIZATION(type)
adds a signature to a transaction
time_point_sec get_expiration() const