#include <post.h>
Classes | |
struct | compare_by_date_and_sequence |
struct | xdata_t |
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 |
account_t * | account |
amount_t | amount |
optional< expr_t > | amount_expr |
optional< amount_t > | assigned_amount |
optional< datetime_t > | checkin |
optional< datetime_t > | checkout |
optional< amount_t > | cost |
optional< amount_t > | given_cost |
optional< string_map > | metadata |
optional< string > | note |
optional< position_t > | pos |
xact_t * | xact |
optional< xdata_t > | xdata_ |
Static Public Attributes | |
static scope_t * | default_scope |
static empty_scope_t * | empty_scope |
static bool | use_aux_date |
Protected Attributes | |
flags_t | _flags |
Friends | |
class | xact_t |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 81 of file post.h.
References TRACE_CTOR.
|
inline |
Definition at line 87 of file post.h.
References TRACE_CTOR.
Definition at line 95 of file post.h.
References copy_details(), ledger::downcast(), and TRACE_CTOR.
|
inlinevirtual |
Definition at line 109 of file post.h.
References TRACE_DTOR.
std::size_t ledger::post_t::account_id | ( | ) | const |
|
inlineinherited |
void ledger::post_t::add_to_value | ( | value_t & | value, |
const optional< expr_t & > & | expr = none ) const |
|
virtualinherited |
Reimplemented from ledger::item_t.
|
inlineinherited |
|
inline |
Definition at line 219 of file post.h.
References ledger::downcast(), and xdata_.
Reimplemented from ledger::item_t.
Definition at line 158 of file post.h.
References ledger::item_t::copy_details(), ledger::downcast(), and xdata_.
Referenced by post_t().
Reimplemented from ledger::item_t.
|
virtualinherited |
Reimplemented from ledger::scope_t.
Implements ledger::scope_t.
Definition at line 113 of file post.h.
References ledger::downcast(), and ledger::item_t::pos.
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented from ledger::item_t.
|
virtual |
Reimplemented from ledger::item_t.
Definition at line 176 of file item.h.
References ledger::item_t::_date.
|
inlineinherited |
|
virtual |
Reimplemented from ledger::item_t.
Reimplemented from ledger::item_t.
|
inline |
|
inlineinherited |
Definition at line 137 of file item.h.
References ledger::downcast(), ledger::item_t::get_tag(), and ledger::item_t::seq().
|
virtual |
Reimplemented from ledger::item_t.
|
inline |
Definition at line 146 of file post.h.
References ledger::flags::supports_flags< uint_least16_t >::has_flags(), POST_MUST_BALANCE, and POST_VIRTUAL.
|
virtualinherited |
Reimplemented in ledger::auto_xact_t.
string ledger::post_t::payee | ( | ) | const |
string ledger::post_t::payee_from_tag | ( | ) | const |
Reimplemented from ledger::item_t.
Referenced by ledger::post_t::compare_by_date_and_sequence::operator()().
|
inline |
Definition at line 236 of file post.h.
References account, assert, ledger::downcast(), and xdata_.
Referenced by reported_account().
Definition at line 244 of file post.h.
References reported_account().
|
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.
bool ledger::post_t::valid | ( | ) | const |
std::size_t ledger::post_t::xact_id | ( | ) | const |
|
inline |
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().
account_t* ledger::post_t::account |
Definition at line 65 of file post.h.
Referenced by reported_account().
optional<datetime_t> ledger::post_t::checkin |
optional<datetime_t> ledger::post_t::checkout |
|
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(), 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().
|
staticinherited |
Definition at line 174 of file item.h.
Referenced by ledger::item_t::date().
Definition at line 214 of file post.h.
Referenced by clear_xdata(), copy_details(), has_xdata(), reported_account(), and xdata().