#include <commodity.h>
Classes | |
class | base_t |
struct | compare_by_commodity |
Public Types | |
typedef uint_least16_t | flags_t |
Static Public Member Functions | |
static void | parse_symbol (char *&p, string &symbol) |
static string | parse_symbol (std::istream &in) |
static void | parse_symbol (std::istream &in, string &symbol) |
static bool | symbol_needs_quotes (const string &symbol) |
Static Public Attributes | |
static bool | decimal_comma_by_default |
static bool | time_colon_by_default |
Protected Member Functions | |
commodity_t (commodity_pool_t *_parent, const shared_ptr< base_t > &_base) | |
Protected Attributes | |
supports_flags< uint_least16_t > & | _flags |
bool | annotated |
shared_ptr< base_t > | base |
commodity_pool_t * | parent_ |
optional< string > | qualified_symbol |
Friends | |
class | annotated_commodity_t |
class | commodity_pool_t |
Definition at line 72 of file commodity.h.
|
inherited |
|
inlineexplicitprotected |
Definition at line 136 of file commodity.h.
References TRACE_CTOR.
|
inlinevirtual |
Definition at line 147 of file commodity.h.
References TRACE_DTOR.
|
inlineinherited |
void ledger::commodity_t::add_price | ( | const datetime_t & | date, |
const amount_t & | price, | ||
const bool | reflexive = true ) |
|
inline |
Definition at line 184 of file commodity.h.
References base.
Referenced by operator==(), and symbol().
optional< price_point_t > ledger::commodity_t::check_for_updated_price | ( | const optional< price_point_t > & | point, |
const datetime_t & | moment, | ||
const commodity_t * | in_terms_of ) |
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented in ledger::annotated_commodity_t.
optional< price_point_t > ledger::commodity_t::find_price_from_expr | ( | expr_t & | expr, |
const commodity_t * | commodity, | ||
const datetime_t & | moment ) const |
|
inlineinherited |
|
inline |
Definition at line 191 of file commodity.h.
References base.
|
inline |
Definition at line 171 of file commodity.h.
References annotated.
|
inlineinherited |
Definition at line 226 of file commodity.h.
References base.
void ledger::commodity_t::map_prices | ( | function< void(datetime_t, const amount_t &)> | fn, |
const datetime_t & | moment = datetime_t(), | ||
const datetime_t & | _oldest = datetime_t(), | ||
bool | bidirectionally = false ) |
commodity_t & ledger::commodity_t::nail_down | ( | const expr_t & | expr | ) |
Definition at line 198 of file commodity.h.
References base.
Referenced by operator==().
Definition at line 205 of file commodity.h.
References base.
ledger::commodity_t::operator bool | ( | ) | const |
|
inlinevirtual |
Reimplemented in ledger::annotated_commodity_t.
Definition at line 153 of file commodity.h.
References base, and ledger::downcast().
Definition at line 158 of file commodity.h.
References base_symbol(), and name().
Definition at line 270 of file commodity.h.
References ledger::downcast(), and parse_symbol().
|
inline |
Definition at line 180 of file commodity.h.
References parent_.
|
inline |
Definition at line 212 of file commodity.h.
References base.
|
virtual |
Reimplemented in ledger::annotated_commodity_t.
Referenced by ledger::annotated_commodity_t::print().
|
inlinevirtual |
Reimplemented in ledger::annotated_commodity_t.
Definition at line 164 of file commodity.h.
|
inlinevirtual |
Reimplemented in ledger::annotated_commodity_t.
Definition at line 167 of file commodity.h.
void ledger::commodity_t::remove_price | ( | const datetime_t & | date, |
commodity_t & | commodity ) |
|
inlineinherited |
Definition at line 194 of file commodity.h.
References base, and ledger::downcast().
Definition at line 229 of file commodity.h.
References base, and ledger::downcast().
Definition at line 201 of file commodity.h.
References base, and ledger::downcast().
Definition at line 208 of file commodity.h.
References base, and ledger::downcast().
|
inline |
Definition at line 215 of file commodity.h.
References base, and ledger::downcast().
Definition at line 222 of file commodity.h.
References base, and ledger::downcast().
Definition at line 236 of file commodity.h.
References base.
Definition at line 219 of file commodity.h.
References base.
|
inlinevirtual |
Reimplemented in ledger::annotated_commodity_t.
Definition at line 175 of file commodity.h.
|
inline |
Definition at line 187 of file commodity.h.
References base_symbol(), and qualified_symbol.
bool ledger::commodity_t::valid | ( | ) | const |
Reimplemented in ledger::annotated_commodity_t.
Definition at line 233 of file commodity.h.
References base.
Referenced by ledger::annotated_commodity_t::value_expr().
Reimplemented in ledger::annotated_commodity_t.
Definition at line 178 of file commodity.h.
|
friend |
Definition at line 78 of file commodity.h.
|
friend |
Definition at line 77 of file commodity.h.
|
protectedinherited |
|
protected |
Definition at line 134 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), and has_annotation().
|
protected |
Definition at line 130 of file commodity.h.
Referenced by base_symbol(), graph_index(), larger(), name(), note(), operator==(), precision(), set_graph_index(), set_larger(), set_name(), set_note(), set_precision(), set_smaller(), set_value_expr(), smaller(), and value_expr().
|
static |
Definition at line 144 of file commodity.h.
|
protected |
Definition at line 132 of file commodity.h.
Referenced by pool().
Definition at line 133 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), and symbol().
|
static |
Definition at line 145 of file commodity.h.