#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 Member Functions | |
| void | add_flags (const flags_t arg) |
| virtual void | append_note (const char *p, scope_t &scope, bool overwrite_existing=true) |
| virtual optional< date_t > | aux_date () const |
| void | clear_flags () |
| virtual void | copy_details (const item_t &item) |
| virtual date_t | date () const |
| virtual void | define (const symbol_t::kind_t, const string &, expr_t::ptr_op_t) |
| virtual string | description ()=0 |
| void | drop_flags (const flags_t arg) |
| flags_t | flags () const |
| virtual optional< value_t > | get_tag (const mask_t &tag_mask, const optional< mask_t > &value_mask=none, bool inherit=true) const |
| virtual optional< value_t > | get_tag (const string &tag, bool inherit=true) const |
| virtual bool | has_date () const |
| bool | has_flags (const flags_t arg) const |
| virtual bool | has_tag (const mask_t &tag_mask, const optional< mask_t > &value_mask=none, bool inherit=true) const |
| virtual bool | has_tag (const string &tag, bool inherit=true) const |
| string | id () const |
| item_t (const item_t &item) | |
| item_t (flags_t _flags=0x00, const optional< string > &_note=none) | |
| virtual expr_t::ptr_op_t | lookup (const symbol_t::kind_t kind, const string &name) |
| virtual bool | operator!= (const item_t &xact) |
| virtual bool | operator== (const item_t &xact) |
| virtual void | parse_tags (const char *p, scope_t &scope, bool overwrite_existing=true) |
| virtual date_t | primary_date () const |
| std::size_t | seq () const |
| void | set_flags (const flags_t arg) |
| void | set_state (state_t new_state) |
| virtual string_map::iterator | set_tag (const string &tag, const optional< value_t > &value=none, const bool overwrite_existing=true) |
| virtual state_t | state () const |
| virtual value_t::type_t | type_context () const |
| virtual bool | type_required () const |
| bool | valid () const |
| virtual | ~item_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 ledger::flags::supports_flags< uint_least16_t >::_flags, _state, ITEM_NORMAL, item_t(), note, ledger::flags::supports_flags< uint_least16_t >::supports_flags(), TRACE_CTOR, and UNCLEARED.
Referenced by copy_details(), ledger::post_t::copy_details(), item_t(), item_t(), operator!=(), operator==(), ledger::post_t::post_t(), ledger::post_t::post_t(), ledger::post_t::post_t(), ledger::xact_base_t::xact_base_t(), and ~item_t().
|
inline |
Definition at line 109 of file item.h.
References copy_details(), item_t(), ledger::scope_t::scope_t(), ledger::flags::supports_flags< uint_least16_t >::supports_flags(), and TRACE_CTOR.
|
inlinevirtual |
Definition at line 114 of file item.h.
References item_t(), and TRACE_DTOR.
|
inlineinherited |
|
virtual |
|
inlinevirtual |
Reimplemented in ledger::post_t.
Definition at line 191 of file item.h.
References _date_aux.
Referenced by date().
|
inlineinherited |
|
inlinevirtual |
Reimplemented in ledger::post_t.
Definition at line 118 of file item.h.
References _date, _date_aux, ledger::flags::supports_flags< T, U >::flags(), item_t(), metadata, note, pos, ledger::flags::supports_flags< uint_least16_t >::set_flags(), set_state(), and state().
Referenced by ledger::post_t::copy_details(), and item_t().
|
inlinevirtual |
Reimplemented in ledger::post_t.
Definition at line 180 of file item.h.
References _date, assert, aux_date(), and use_aux_date.
|
virtual |
Reimplemented from ledger::scope_t.
|
pure virtualinherited |
Implemented in ledger::account_t, ledger::auto_xact_t, ledger::bind_scope_t, ledger::context_scope_t, ledger::empty_scope_t, ledger::global_scope_t, ledger::period_xact_t, ledger::post_t, ledger::report_t, ledger::session_t, ledger::symbol_scope_t, ledger::value_scope_t, and ledger::xact_t.
Referenced by ledger::search_scope().
|
inlineinherited |
|
inlineinherited |
|
virtual |
Reimplemented in ledger::post_t.
|
inlinevirtual |
|
inlineinherited |
Definition at line 77 of file flags.h.
Referenced by ledger::post_t::must_balance().
|
virtual |
Reimplemented in ledger::post_t.
|
virtual |
Reimplemented in ledger::post_t.
|
inline |
|
virtual |
Implements ledger::scope_t.
Reimplemented in ledger::post_t, and ledger::xact_t.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Reimplemented in ledger::auto_xact_t.
References ledger::scope_t::scope_t().
|
inlinevirtual |
Reimplemented in ledger::post_t.
|
inline |
|
inlineinherited |
Definition at line 81 of file flags.h.
Referenced by ledger::item_t::copy_details().
|
inline |
Definition at line 195 of file item.h.
References _state.
Referenced by copy_details().
|
virtual |
|
inlinevirtual |
Definition at line 198 of file item.h.
References _state.
Referenced by copy_details().
|
inlinevirtualinherited |
Reimplemented in ledger::context_scope_t.
Definition at line 109 of file scope.h.
References ledger::value_t::VOID.
|
inlinevirtualinherited |
Reimplemented in ledger::context_scope_t.
| bool ledger::item_t::valid | ( | ) | const |
| optional<date_t> ledger::item_t::_date |
Definition at line 98 of file item.h.
Referenced by copy_details(), date(), has_date(), and primary_date().
| optional<date_t> ledger::item_t::_date_aux |
Definition at line 99 of file item.h.
Referenced by aux_date(), and copy_details().
|
protectedinherited |
Definition at line 53 of file flags.h.
Referenced by ledger::item_t::item_t(), ledger::post_t::post_t(), and ledger::post_t::post_t().
| state_t ledger::item_t::_state |
Definition at line 97 of file item.h.
Referenced by item_t(), 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().
| optional<string> ledger::item_t::note |
Definition at line 100 of file item.h.
Referenced by copy_details(), and item_t().
| optional<position_t> ledger::item_t::pos |
Definition at line 101 of file item.h.
Referenced by copy_details(), ledger::auto_xact_t::description(), ledger::period_xact_t::description(), ledger::post_t::description(), ledger::xact_t::description(), ledger::post_t::compare_by_date_and_sequence::operator()(), and seq().
|
static |