#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.
|
inlineexplicit |
Definition at line 117 of file commodity.h.
References COMMODITY_STYLE_DECIMAL_COMMA, COMMODITY_STYLE_DEFAULTS, ledger::commodity_t::commodity_t(), ledger::commodity_t::decimal_comma_by_default, precision, ledger::flags::supports_flags< uint_least16_t >::supports_flags(), symbol, and TRACE_CTOR.
|
inlinevirtual |
Definition at line 125 of file commodity.h.
References TRACE_DTOR.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 77 of file flags.h.
Referenced by ledger::post_t::must_balance().
|
inlineinherited |
Definition at line 81 of file flags.h.
Referenced by ledger::item_t::copy_details().
|
protectedinherited |
Definition at line 53 of file flags.h.
Referenced by ledger::item_t::item_t(), ledger::post_t::post_t(), and ledger::post_t::post_t().
optional<std::size_t> ledger::commodity_t::base_t::graph_index |
Definition at line 100 of file commodity.h.
optional<amount_t> ledger::commodity_t::base_t::larger |
Definition at line 105 of file commodity.h.
|
static |
Definition at line 113 of file commodity.h.
optional<string> ledger::commodity_t::base_t::name |
Definition at line 102 of file commodity.h.
optional<string> ledger::commodity_t::base_t::note |
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.
Referenced by base_t().
|
mutable |
Definition at line 114 of file commodity.h.
optional<amount_t> ledger::commodity_t::base_t::smaller |
Definition at line 104 of file commodity.h.
string ledger::commodity_t::base_t::symbol |
Definition at line 99 of file commodity.h.
Referenced by base_t().
optional<expr_t> ledger::commodity_t::base_t::value_expr |
Definition at line 106 of file commodity.h.