#include <commodity.h>
Public Types | |
typedef uint_least16_t | flags_t |
typedef tuple< datetime_t, datetime_t, const commodity_t * > | memoized_price_entry |
typedef std::map< memoized_price_entry, optional< price_point_t > > | memoized_price_map |
Public Member Functions | |
void | add_flags (const flags_t arg) |
base_t (const string &_symbol) | |
void | clear_flags () |
void | drop_flags (const flags_t arg) |
flags_t | flags () const |
bool | has_flags (const flags_t arg) const |
void | set_flags (const flags_t arg) |
virtual | ~base_t () |
Public Attributes | |
optional< std::size_t > | graph_index |
optional< amount_t > | larger |
optional< string > | name |
optional< string > | note |
amount_t::precision_t | precision |
memoized_price_map | price_map |
optional< amount_t > | smaller |
string | symbol |
optional< expr_t > | value_expr |
Static Public Attributes | |
static const std::size_t | max_price_map_size = 8 |
Protected Attributes | |
flags_t | _flags |
Definition at line 80 of file commodity.h.
|
inherited |
typedef tuple<datetime_t, datetime_t, const commodity_t *> ledger::commodity_t::base_t::memoized_price_entry |
Definition at line 109 of file commodity.h.
typedef std::map<memoized_price_entry, optional<price_point_t> > ledger::commodity_t::base_t::memoized_price_map |
Definition at line 111 of file commodity.h.
Definition at line 117 of file commodity.h.
References TRACE_CTOR.
|
inlinevirtual |
Definition at line 125 of file commodity.h.
References TRACE_DTOR.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |
optional<std::size_t> ledger::commodity_t::base_t::graph_index |
Definition at line 100 of file commodity.h.
Definition at line 105 of file commodity.h.
|
static |
Definition at line 113 of file commodity.h.
Definition at line 102 of file commodity.h.
Definition at line 103 of file commodity.h.
amount_t::precision_t ledger::commodity_t::base_t::precision |
Definition at line 101 of file commodity.h.
|
mutable |
Definition at line 114 of file commodity.h.
Definition at line 104 of file commodity.h.
string ledger::commodity_t::base_t::symbol |
Definition at line 99 of file commodity.h.
Definition at line 106 of file commodity.h.