#include <pool.h>
Inherits boost::noncopyable.
|
commodity_t * | alias (const string &name, commodity_t &referent) |
| commodity_pool_t () |
annotated_commodity_t * | create (commodity_t &comm, const annotation_t &details) |
commodity_t * | create (const string &symbol) |
commodity_t * | create (const string &symbol, const annotation_t &details) |
void | exchange (commodity_t &commodity, const amount_t &per_unit_cost, const datetime_t &moment) |
cost_breakdown_t | exchange (const amount_t &amount, const amount_t &cost, const bool is_per_unit=false, const bool add_price=true, const optional< datetime_t > &moment=none, const optional< string > &tag=none) |
commodity_t * | find (const string &name) |
commodity_t * | find (const string &symbol, const annotation_t &details) |
commodity_t * | find_or_create (commodity_t &comm, const annotation_t &details) |
commodity_t * | find_or_create (const string &symbol) |
commodity_t * | find_or_create (const string &symbol, const annotation_t &details) |
optional< std::pair< commodity_t *, price_point_t > > | parse_price_directive (char *line, bool do_not_add_price=false, bool no_date=false) |
commodity_t * | parse_price_expression (const std::string &str, const bool add_prices=true, const optional< datetime_t > &moment=none) |
virtual | ~commodity_pool_t () |
Definition at line 60 of file pool.h.
◆ annotated_commodities_map
◆ commodities_map
The commodities collection in commodity_pool_t maintains pointers to all the commodities which have ever been created by the user, whether explicitly by calling the create methods of commodity_pool_t, or implicitly by parsing a commoditized amount.
Definition at line 69 of file pool.h.
◆ commodity_pool_t()
ledger::commodity_pool_t::commodity_pool_t |
( |
| ) |
|
|
explicit |
◆ ~commodity_pool_t()
virtual ledger::commodity_pool_t::~commodity_pool_t |
( |
| ) |
|
|
inlinevirtual |
◆ alias()
◆ create() [1/3]
◆ create() [2/3]
◆ create() [3/3]
◆ exchange() [1/2]
◆ exchange() [2/2]
cost_breakdown_t ledger::commodity_pool_t::exchange |
( |
const amount_t & | amount, |
|
|
const amount_t & | cost, |
|
|
const bool | is_per_unit = false, |
|
|
const bool | add_price = true, |
|
|
const optional< datetime_t > & | moment = none, |
|
|
const optional< string > & | tag = none ) |
◆ find() [1/2]
◆ find() [2/2]
◆ find_or_create() [1/3]
◆ find_or_create() [2/3]
◆ find_or_create() [3/3]
◆ parse_price_directive()
optional< std::pair< commodity_t *, price_point_t > > ledger::commodity_pool_t::parse_price_directive |
( |
char * | line, |
|
|
bool | do_not_add_price = false, |
|
|
bool | no_date = false ) |
◆ parse_price_expression()
commodity_t * ledger::commodity_pool_t::parse_price_expression |
( |
const std::string & | str, |
|
|
const bool | add_prices = true, |
|
|
const optional< datetime_t > & | moment = none ) |
◆ annotated_commodities
◆ commodities
◆ commodity_price_history
◆ current_pool
◆ default_commodity
commodity_t* ledger::commodity_pool_t::default_commodity |
◆ get_commodity_quote
◆ get_quotes
bool ledger::commodity_pool_t::get_quotes |
◆ keep_base
bool ledger::commodity_pool_t::keep_base |
◆ null_commodity
◆ price_db
optional<path> ledger::commodity_pool_t::price_db |
◆ quote_leeway
long ledger::commodity_pool_t::quote_leeway |
The documentation for this class was generated from the following file: