#include <annotate.h>
Public Types | |
typedef uint_least16_t | flags_t |
Public Member Functions | |
void | add_flags (const flags_t arg) |
void | add_price (const datetime_t &date, const amount_t &price, const bool reflexive=true) |
string | base_symbol () const |
optional< price_point_t > | check_for_updated_price (const optional< price_point_t > &point, const datetime_t &moment, const commodity_t *in_terms_of) |
void | clear_flags () |
void | drop_flags (const flags_t arg) |
virtual optional< price_point_t > | find_price (const commodity_t *commodity=NULL, const datetime_t &moment=datetime_t(), const datetime_t &oldest=datetime_t()) const |
optional< price_point_t > | find_price_from_expr (expr_t &expr, const commodity_t *commodity, const datetime_t &moment) const |
flags_t | flags () const |
optional< std::size_t > | graph_index () const |
bool | has_annotation () const |
bool | has_flags (const flags_t arg) const |
optional< amount_t > | larger () const |
void | 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 & | nail_down (const expr_t &expr) |
optional< string > | name () const |
optional< string > | note () const |
operator bool () const | |
virtual bool | operator== (const annotated_commodity_t &comm) const |
virtual bool | operator== (const commodity_t &comm) const |
bool | operator== (const string &name) const |
commodity_pool_t & | pool () const |
amount_t::precision_t | precision () const |
virtual void | print (std::ostream &out, bool elide_quotes=false, bool print_annotations=false) const |
virtual commodity_t & | referent () |
virtual const commodity_t & | referent () const |
void | remove_price (const datetime_t &date, commodity_t &commodity) |
void | set_flags (const flags_t arg) |
void | set_graph_index (const optional< std::size_t > &arg=none) |
void | set_larger (const optional< amount_t > &arg=none) |
void | set_name (const optional< string > &arg=none) |
void | set_note (const optional< string > &arg=none) |
void | set_precision (amount_t::precision_t arg) |
void | set_smaller (const optional< amount_t > &arg=none) |
void | set_value_expr (const optional< expr_t > &expr=none) |
optional< amount_t > | smaller () const |
virtual commodity_t & | strip_annotations (const keep_details_t &what_to_keep) |
string | symbol () const |
bool | valid () const |
virtual optional< expr_t > | value_expr () const |
virtual void | write_annotations (std::ostream &out, bool no_computed_annotations=false) const |
virtual | ~annotated_commodity_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) |
Public Attributes | |
annotation_t | details |
Static Public Attributes | |
static bool | decimal_comma_by_default |
static bool | time_colon_by_default |
Protected Member Functions | |
annotated_commodity_t (commodity_t *_ptr, const annotation_t &_details) |
Protected Attributes | |
supports_flags< uint_least16_t > & | _flags |
bool | annotated |
shared_ptr< base_t > | base |
commodity_pool_t * | parent_ |
commodity_t * | ptr |
optional< string > | qualified_symbol |
Friends | |
class | commodity_pool_t |
Definition at line 157 of file annotate.h.
|
inherited |
|
inlineexplicitprotected |
Definition at line 168 of file annotate.h.
References ledger::commodity_t::annotated, annotated_commodity_t(), ledger::commodity_t::base, ledger::commodity_t::commodity_t(), details, ledger::commodity_t::parent_, ptr, ledger::commodity_t::qualified_symbol, and TRACE_CTOR.
Referenced by annotated_commodity_t(), operator==(), and ~annotated_commodity_t().
|
inlinevirtual |
Definition at line 179 of file annotate.h.
References annotated_commodity_t(), and TRACE_DTOR.
|
inlineinherited |
|
inherited |
|
inlineinherited |
Definition at line 184 of file commodity.h.
References base.
Referenced by operator==(), and symbol().
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from ledger::commodity_t.
References ledger::commodity_t::commodity_t().
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 191 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 171 of file commodity.h.
References annotated.
|
inlineinherited |
|
inlineinherited |
Definition at line 226 of file commodity.h.
References base.
|
inherited |
|
inherited |
|
inlineinherited |
Definition at line 198 of file commodity.h.
References base.
Referenced by operator==().
|
inlineinherited |
Definition at line 205 of file commodity.h.
References base.
|
inherited |
|
inlinevirtual |
Definition at line 184 of file annotate.h.
References annotated_commodity_t(), and ledger::commodity_t::commodity_t().
|
virtual |
Reimplemented from ledger::commodity_t.
References ledger::commodity_t::commodity_t().
|
inlineinherited |
Definition at line 158 of file commodity.h.
References base_symbol(), and name().
|
staticinherited |
|
inlinestaticinherited |
Definition at line 270 of file commodity.h.
References parse_symbol().
|
staticinherited |
References symbol().
Referenced by parse_symbol().
|
inlineinherited |
Definition at line 180 of file commodity.h.
References commodity_pool_t, and parent_.
|
inlineinherited |
Definition at line 212 of file commodity.h.
References base.
|
inlinevirtual |
Reimplemented from ledger::commodity_t.
Definition at line 208 of file annotate.h.
References ledger::commodity_t::print(), and write_annotations().
|
inlinevirtual |
Reimplemented from ledger::commodity_t.
Definition at line 188 of file annotate.h.
References ledger::commodity_t::commodity_t(), and ptr.
|
inlinevirtual |
Reimplemented from ledger::commodity_t.
Definition at line 191 of file annotate.h.
References ledger::commodity_t::commodity_t(), and ptr.
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 194 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 229 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 201 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 208 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 215 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 222 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 236 of file commodity.h.
References base.
|
inlineinherited |
Definition at line 219 of file commodity.h.
References base.
|
virtual |
Reimplemented from ledger::commodity_t.
References ledger::commodity_t::commodity_t().
|
inlineinherited |
Definition at line 187 of file commodity.h.
References base_symbol(), and qualified_symbol.
Referenced by ledger::commodity_compare::operator()(), parse_symbol(), parse_symbol(), and symbol_needs_quotes().
|
staticinherited |
|
inherited |
|
inlinevirtual |
Reimplemented from ledger::commodity_t.
Definition at line 195 of file annotate.h.
References details, and ledger::commodity_t::value_expr().
|
virtual |
Reimplemented from ledger::commodity_t.
Referenced by print().
|
friend |
Definition at line 164 of file annotate.h.
References commodity_pool_t.
Referenced by commodity_pool_t.
|
protectedinherited |
|
protectedinherited |
Definition at line 134 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), commodity_t(), has_annotation(), and operator==().
|
protectedinherited |
Definition at line 130 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), base_symbol(), commodity_t(), 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().
|
staticinherited |
Definition at line 144 of file commodity.h.
Referenced by ledger::commodity_t::base_t::base_t().
annotation_t ledger::annotated_commodity_t::details |
Definition at line 177 of file annotate.h.
Referenced by annotated_commodity_t(), and value_expr().
|
protectedinherited |
Definition at line 132 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), commodity_t(), and pool().
|
protected |
Definition at line 166 of file annotate.h.
Referenced by annotated_commodity_t(), referent(), and referent().
|
protectedinherited |
Definition at line 133 of file commodity.h.
Referenced by ledger::annotated_commodity_t::annotated_commodity_t(), and symbol().
|
staticinherited |
Definition at line 145 of file commodity.h.