#include <xact.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 |
journal_t * | journal |
optional< string_map > | metadata |
optional< string > | note |
optional< position_t > | pos |
posts_list | posts |
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 |
|
inherited |
|
inherited |
|
inherited |
|
inline |
Definition at line 61 of file xact.h.
References TRACE_CTOR.
ledger::xact_base_t::xact_base_t | ( | const xact_base_t & | e | ) |
|
virtual |
|
inlineinherited |
Reimplemented in ledger::xact_t.
|
virtualinherited |
Reimplemented in ledger::post_t.
Definition at line 191 of file item.h.
References ledger::item_t::_date_aux.
Referenced by ledger::item_t::date().
|
inlineinherited |
void ledger::xact_base_t::clear_xdata | ( | ) |
Reimplemented in ledger::post_t.
Definition at line 118 of file item.h.
References ledger::item_t::_date, ledger::item_t::_date_aux, ledger::downcast(), ledger::item_t::metadata, ledger::item_t::note, ledger::item_t::pos, ledger::flags::supports_flags< uint_least16_t >::set_flags(), and ledger::item_t::set_state().
Referenced by ledger::post_t::copy_details(), and ledger::item_t::item_t().
Reimplemented in ledger::post_t.
Definition at line 180 of file item.h.
References ledger::item_t::_date, assert, ledger::item_t::aux_date(), ledger::downcast(), and ledger::item_t::use_aux_date.
|
virtualinherited |
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 |
bool ledger::xact_base_t::finalize | ( | ) |
|
inlineinherited |
|
virtualinherited |
Reimplemented in ledger::post_t.
|
virtualinherited |
Reimplemented in ledger::post_t.
Referenced by ledger::item_t::id().
Definition at line 176 of file item.h.
References ledger::item_t::_date.
|
inlineinherited |
|
virtualinherited |
Reimplemented in ledger::post_t.
|
virtualinherited |
Reimplemented in ledger::post_t.
bool ledger::xact_base_t::has_xdata | ( | ) |
|
inlineinherited |
Definition at line 137 of file item.h.
References ledger::downcast(), ledger::item_t::get_tag(), and ledger::item_t::seq().
|
virtualinherited |
Implements ledger::scope_t.
Reimplemented in ledger::post_t, and ledger::xact_t.
value_t ledger::xact_base_t::magnitude | ( | ) | const |
|
virtualinherited |
Reimplemented in ledger::auto_xact_t.
|
inline |
|
inline |
Reimplemented in ledger::post_t.
Definition at line 187 of file item.h.
References ledger::item_t::_date, and assert.
|
inlineinherited |
Definition at line 146 of file item.h.
References ledger::downcast(), and ledger::item_t::pos.
Referenced by ledger::item_t::id().
|
inlineinherited |
Definition at line 195 of file item.h.
References ledger::item_t::_state, and ledger::downcast().
Referenced by ledger::item_t::copy_details().
|
virtualinherited |
Definition at line 198 of file item.h.
References ledger::item_t::_state.
|
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.
Reimplemented in ledger::xact_t.
bool ledger::xact_base_t::verify | ( | ) |
Definition at line 98 of file item.h.
Referenced by ledger::item_t::copy_details(), ledger::item_t::date(), ledger::item_t::has_date(), and ledger::item_t::primary_date().
Definition at line 99 of file item.h.
Referenced by ledger::item_t::aux_date(), and ledger::item_t::copy_details().
|
protectedinherited |
|
inherited |
Definition at line 97 of file item.h.
Referenced by ledger::item_t::set_state(), and ledger::item_t::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 |
|
inherited |
Definition at line 102 of file item.h.
Referenced by ledger::item_t::copy_details().
Definition at line 100 of file item.h.
Referenced by ledger::item_t::copy_details().
|
inherited |
Definition at line 101 of file item.h.
Referenced by ledger::item_t::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 ledger::item_t::seq().
posts_list ledger::xact_base_t::posts |
Definition at line 59 of file xact.h.
Referenced by posts_begin(), posts_end(), and ledger::xact_posts_iterator::reset().
|
staticinherited |
Definition at line 174 of file item.h.
Referenced by ledger::item_t::date().