Loading...
Searching...
No Matches
ledger::commodity_t::base_t Class Reference

#include <commodity.h>

+ Inheritance diagram for ledger::commodity_t::base_t:
+ Collaboration diagram for ledger::commodity_t::base_t:

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_tlarger
 
optional< stringname
 
optional< stringnote
 
amount_t::precision_t precision
 
memoized_price_map price_map
 
optional< amount_tsmaller
 
string symbol
 
optional< expr_tvalue_expr
 

Static Public Attributes

static const std::size_t max_price_map_size = 8
 

Protected Attributes

flags_t _flags
 

Detailed Description

Definition at line 80 of file commodity.h.

Member Typedef Documentation

◆ flags_t

Definition at line 50 of file flags.h.

◆ memoized_price_entry

◆ memoized_price_map

Constructor & Destructor Documentation

◆ base_t()

ledger::commodity_t::base_t::base_t ( const string & _symbol)
inlineexplicit

Definition at line 117 of file commodity.h.

References TRACE_CTOR.

◆ ~base_t()

virtual ledger::commodity_t::base_t::~base_t ( )
inlinevirtual

Definition at line 125 of file commodity.h.

References TRACE_DTOR.

Member Function Documentation

◆ add_flags()

void ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::add_flags ( const flags_t arg)
inlineinherited

Definition at line 87 of file flags.h.

◆ clear_flags()

void ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::clear_flags ( )
inlineinherited

Definition at line 84 of file flags.h.

◆ drop_flags()

void ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::drop_flags ( const flags_t arg)
inlineinherited

Definition at line 90 of file flags.h.

◆ flags()

flags_t ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::flags ( ) const
inlineinherited

Definition at line 74 of file flags.h.

◆ has_flags()

bool ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::has_flags ( const flags_t arg) const
inlineinherited

Definition at line 77 of file flags.h.

◆ set_flags()

void ledger::flags::supports_flags< uint_least16_t , uint_least16_t >::set_flags ( const flags_t arg)
inlineinherited

Definition at line 81 of file flags.h.

Member Data Documentation

◆ _flags

Definition at line 53 of file flags.h.

◆ graph_index

optional<std::size_t> ledger::commodity_t::base_t::graph_index

Definition at line 100 of file commodity.h.

◆ larger

optional<amount_t> ledger::commodity_t::base_t::larger

Definition at line 105 of file commodity.h.

◆ max_price_map_size

const std::size_t ledger::commodity_t::base_t::max_price_map_size = 8
static

Definition at line 113 of file commodity.h.

◆ name

optional<string> ledger::commodity_t::base_t::name

Definition at line 102 of file commodity.h.

◆ note

optional<string> ledger::commodity_t::base_t::note

Definition at line 103 of file commodity.h.

◆ precision

amount_t::precision_t ledger::commodity_t::base_t::precision

Definition at line 101 of file commodity.h.

◆ price_map

memoized_price_map ledger::commodity_t::base_t::price_map
mutable

Definition at line 114 of file commodity.h.

◆ smaller

optional<amount_t> ledger::commodity_t::base_t::smaller

Definition at line 104 of file commodity.h.

◆ symbol

string ledger::commodity_t::base_t::symbol

Definition at line 99 of file commodity.h.

◆ value_expr

optional<expr_t> ledger::commodity_t::base_t::value_expr

Definition at line 106 of file commodity.h.


The documentation for this class was generated from the following file: