#include <item.h>
Public Types | |
typedef uint_least16_t | flags_t |
enum | state_t { UNCLEARED = 0 , CLEARED , PENDING } |
typedef std::map< string, tag_data_t, std::function< bool(string, string)> > | string_map |
typedef std::pair< optional< value_t >, bool > | tag_data_t |
Public Attributes | |
optional< date_t > | _date |
optional< date_t > | _date_aux |
state_t | _state |
optional< string_map > | metadata |
optional< string > | note |
optional< position_t > | pos |
Static Public Attributes | |
static scope_t * | default_scope |
static empty_scope_t * | empty_scope |
static bool | use_aux_date |
Protected Attributes | |
flags_t | _flags |
|
inherited |
typedef std::map<string, tag_data_t, std::function<bool(string, string)> > ledger::item_t::string_map |
typedef std::pair<optional<value_t>, bool> ledger::item_t::tag_data_t |
Definition at line 104 of file item.h.
References TRACE_CTOR.
Definition at line 109 of file item.h.
References copy_details(), ledger::downcast(), and TRACE_CTOR.
|
inlinevirtual |
Definition at line 114 of file item.h.
References TRACE_DTOR.
|
inlineinherited |
|
virtual |
Reimplemented in ledger::post_t.
Definition at line 191 of file item.h.
References _date_aux.
Referenced by date().
|
inlineinherited |
Reimplemented in ledger::post_t.
Definition at line 118 of file item.h.
References _date, _date_aux, ledger::downcast(), metadata, note, pos, ledger::flags::supports_flags< uint_least16_t >::set_flags(), and set_state().
Referenced by ledger::post_t::copy_details(), and item_t().
Reimplemented in ledger::post_t.
Definition at line 180 of file item.h.
References _date, assert, aux_date(), ledger::downcast(), and use_aux_date.
|
virtual |
Reimplemented from ledger::scope_t.
Implemented in ledger::account_t, ledger::global_scope_t, ledger::post_t, ledger::report_t, ledger::empty_scope_t, ledger::bind_scope_t, ledger::symbol_scope_t, ledger::context_scope_t, ledger::value_scope_t, ledger::session_t, ledger::xact_t, ledger::auto_xact_t, and ledger::period_xact_t.
Referenced by ledger::bind_scope_t::description(), ledger::symbol_scope_t::description(), ledger::context_scope_t::description(), ledger::value_scope_t::description(), and ledger::search_scope().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented in ledger::post_t.
|
inlineinherited |
|
virtual |
Reimplemented in ledger::post_t.
Reimplemented in ledger::post_t.
|
inline |
Definition at line 137 of file item.h.
References ledger::downcast(), get_tag(), and seq().
|
virtual |
Implements ledger::scope_t.
Reimplemented in ledger::post_t, and ledger::xact_t.
|
virtual |
Reimplemented in ledger::auto_xact_t.
Reimplemented in ledger::post_t.
|
inline |
Definition at line 146 of file item.h.
References ledger::downcast(), and pos.
Referenced by id().
|
inlineinherited |
Definition at line 195 of file item.h.
References _state, and ledger::downcast().
Referenced by copy_details().
|
virtual |
|
inlinevirtualinherited |
Reimplemented in ledger::context_scope_t.
Definition at line 109 of file scope.h.
References ledger::value_t::VOID.
Reimplemented in ledger::context_scope_t.
bool ledger::item_t::valid | ( | ) | const |
Definition at line 98 of file item.h.
Referenced by copy_details(), date(), has_date(), and primary_date().
Definition at line 99 of file item.h.
Referenced by aux_date(), and copy_details().
|
protectedinherited |
state_t ledger::item_t::_state |
Definition at line 97 of file item.h.
Referenced by set_state(), and state().
|
staticinherited |
Definition at line 92 of file scope.h.
Referenced by ledger::global_scope_t::pop_report(), and ledger::global_scope_t::push_report().
|
staticinherited |
optional<string_map> ledger::item_t::metadata |
Definition at line 102 of file item.h.
Referenced by copy_details().
Definition at line 100 of file item.h.
Referenced by copy_details().
optional<position_t> ledger::item_t::pos |
Definition at line 101 of file item.h.
Referenced by copy_details(), ledger::post_t::description(), ledger::xact_t::description(), ledger::auto_xact_t::description(), ledger::period_xact_t::description(), ledger::post_t::compare_by_date_and_sequence::operator()(), and seq().
|
static |