#include <history.h>
Inherits boost::noncopyable.
Public Member Functions | |
void | add_commodity (commodity_t &comm) |
void | add_price (const commodity_t &source, const datetime_t &when, const amount_t &price) |
commodity_history_t () | |
boost::optional< price_point_t > | find_price (const commodity_t &source, const commodity_t &target, const datetime_t &moment, const datetime_t &oldest=datetime_t()) |
boost::optional< price_point_t > | find_price (const commodity_t &source, const datetime_t &moment, const datetime_t &oldest=datetime_t()) |
void | map_prices (function< void(datetime_t, const amount_t &)> fn, const commodity_t &source, const datetime_t &moment, const datetime_t &_oldest=datetime_t(), bool bidirectionally=false) |
void | print_map (std::ostream &out, const datetime_t &moment=datetime_t()) |
void | remove_price (const commodity_t &source, const commodity_t &target, const datetime_t &date) |
~commodity_history_t () | |
ledger::commodity_history_t::commodity_history_t | ( | ) |
ledger::commodity_history_t::~commodity_history_t | ( | ) |
void ledger::commodity_history_t::add_commodity | ( | commodity_t & | comm | ) |
void ledger::commodity_history_t::add_price | ( | const commodity_t & | source, |
const datetime_t & | when, | ||
const amount_t & | price ) |
boost::optional< price_point_t > ledger::commodity_history_t::find_price | ( | const commodity_t & | source, |
const commodity_t & | target, | ||
const datetime_t & | moment, | ||
const datetime_t & | oldest = datetime_t() ) |
boost::optional< price_point_t > ledger::commodity_history_t::find_price | ( | const commodity_t & | source, |
const datetime_t & | moment, | ||
const datetime_t & | oldest = datetime_t() ) |
void ledger::commodity_history_t::map_prices | ( | function< void(datetime_t, const amount_t &)> | fn, |
const commodity_t & | source, | ||
const datetime_t & | moment, | ||
const datetime_t & | _oldest = datetime_t(), | ||
bool | bidirectionally = false ) |
void ledger::commodity_history_t::print_map | ( | std::ostream & | out, |
const datetime_t & | moment = datetime_t() ) |
void ledger::commodity_history_t::remove_price | ( | const commodity_t & | source, |
const commodity_t & | target, | ||
const datetime_t & | date ) |