#include <account.h>
Classes | |
struct | xdata_t |
Public Types | |
typedef transform_iterator< function< account_t *(accounts_map::value_type &)>, accounts_map::iterator > | accounts_map_seconds_iterator |
typedef T | flags_t |
Public Member Functions | |
account_t (account_t *_parent=NULL, const string &_name="", const optional< string > &_note=none) | |
account_t (const account_t &other) | |
accounts_map_seconds_iterator | accounts_begin () |
accounts_map_seconds_iterator | accounts_end () |
void | add_account (account_t *acct) |
void | add_deferred_post (const string &uuid, post_t *post) |
void | add_flags (const flags_t arg) |
void | add_post (post_t *post) |
value_t | amount (const optional< bool > real_only=false, const optional< expr_t & > &expr=none) const |
void | apply_deferred_posts () |
std::size_t | children_with_flags (xdata_t::flags_t flags) const |
bool | children_with_xdata () const |
void | clear_flags () |
void | clear_xdata () |
virtual void | define (const symbol_t::kind_t, const string &, expr_t::ptr_op_t) |
virtual string | description () |
void | drop_flags (const flags_t arg) |
const xdata_t::details_t & | family_details (bool gather_all=true) const |
account_t * | find_account (const string &name, bool auto_create=true) |
account_t * | find_account_re (const string ®exp) |
flags_t | flags () const |
string | fullname () const |
bool | has_flags (const flags_t arg) const |
bool | has_xdata () const |
bool | has_xflags (xdata_t::flags_t flags) const |
virtual expr_t::ptr_op_t | lookup (const symbol_t::kind_t kind, const string &name) |
operator string () const | |
string | partial_name (bool flat=false) const |
posts_list::iterator | posts_begin () |
posts_list::iterator | posts_end () |
bool | remove_account (account_t *acct) |
bool | remove_post (post_t *post) |
const xdata_t::details_t & | self_details (bool gather_all=true) const |
void | set_flags (const flags_t arg) |
value_t | total (const optional< expr_t & > &expr=none) const |
virtual value_t::type_t | type_context () const |
virtual bool | type_required () const |
bool | valid () const |
xdata_t & | xdata () |
const xdata_t & | xdata () const |
virtual | ~account_t () |
Public Attributes | |
string | _fullname |
accounts_map | accounts |
optional< deferred_posts_map_t > | deferred_posts |
unsigned short | depth |
string | name |
optional< string > | note |
account_t * | parent |
posts_list | posts |
optional< expr_t > | value_expr |
optional< xdata_t > | xdata_ |
Static Public Attributes | |
static scope_t * | default_scope |
static empty_scope_t * | empty_scope |
Protected Attributes | |
flags_t | _flags |
Friends | |
class | journal_t |
typedef transform_iterator<function<account_t *(accounts_map::value_type&)>, accounts_map::iterator> ledger::account_t::accounts_map_seconds_iterator |
|
inherited |
|
inline |
Definition at line 77 of file account.h.
References account_t(), depth, name, note, parent, ledger::scope_t::scope_t(), ledger::flags::supports_flags< T, U >::supports_flags(), and TRACE_CTOR.
Referenced by account_t(), account_t(), add_account(), find_account(), find_account_re(), and remove_account().
|
inline |
Definition at line 86 of file account.h.
References account_t(), accounts, depth, ledger::flags::supports_flags< T, U >::flags(), name, note, parent, ledger::scope_t::scope_t(), ledger::flags::supports_flags< T, U >::supports_flags(), and TRACE_CTOR.
|
virtual |
|
inline |
|
inline |
|
inline |
Definition at line 108 of file account.h.
References account_t(), accounts, and name.
|
inlineinherited |
Definition at line 87 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::plus_flags().
void ledger::account_t::add_post | ( | post_t * | post | ) |
value_t ledger::account_t::amount | ( | const optional< bool > | real_only = false, |
const optional< expr_t & > & | expr = none ) const |
void ledger::account_t::apply_deferred_posts | ( | ) |
std::size_t ledger::account_t::children_with_flags | ( | xdata_t::flags_t | flags | ) | const |
References ledger::flags::supports_flags< T, U >::flags().
bool ledger::account_t::children_with_xdata | ( | ) | const |
|
inlineinherited |
void ledger::account_t::clear_xdata | ( | ) |
|
inlinevirtualinherited |
Reimplemented in ledger::bind_scope_t, ledger::child_scope_t, ledger::item_t, ledger::report_t, and ledger::symbol_scope_t.
|
inlinevirtual |
Implements ledger::scope_t.
Definition at line 98 of file account.h.
References fullname().
|
inlineinherited |
Definition at line 90 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::minus_flags().
const xdata_t::details_t & ledger::account_t::family_details | ( | bool | gather_all = true | ) | const |
|
inlineinherited |
Definition at line 74 of file flags.h.
References _flags.
Referenced by ledger::account_t::account_t(), ledger::annotation_t::annotation_t(), ledger::account_t::children_with_flags(), ledger::item_t::copy_details(), ledger::account_t::has_xflags(), ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::operator parse_flags_enum_t(), ledger::flags::basic_t< T, U >::operator U(), ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::operator=(), and ledger::account_t::xdata_t::xdata_t().
string ledger::account_t::fullname | ( | ) | const |
Referenced by description(), operator string(), and ledger::account_compare::operator()().
|
inlineinherited |
|
inline |
|
inline |
Definition at line 279 of file account.h.
References ledger::flags::supports_flags< T, U >::flags(), and xdata_.
|
virtual |
Implements ledger::scope_t.
References name.
|
inline |
Definition at line 102 of file account.h.
References fullname().
string ledger::account_t::partial_name | ( | bool | flat = false | ) | const |
|
inline |
|
inline |
|
inline |
Definition at line 111 of file account.h.
References account_t(), accounts, and name.
bool ledger::account_t::remove_post | ( | post_t * | post | ) |
const xdata_t::details_t & ledger::account_t::self_details | ( | bool | gather_all = true | ) | const |
|
inlineinherited |
Definition at line 81 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::basic_t(), and ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::basic_t().
|
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::account_t::valid | ( | ) | const |
|
inline |
|
inline |
|
friend |
|
protectedinherited |
Definition at line 53 of file flags.h.
Referenced by add_flags(), clear_flags(), drop_flags(), flags(), has_flags(), operator=(), set_flags(), supports_flags(), supports_flags(), and supports_flags().
accounts_map ledger::account_t::accounts |
Definition at line 70 of file account.h.
Referenced by account_t(), accounts_begin(), accounts_end(), add_account(), and remove_account().
|
staticinherited |
Definition at line 92 of file scope.h.
Referenced by ledger::global_scope_t::pop_report(), and ledger::global_scope_t::push_report().
optional<deferred_posts_map_t> ledger::account_t::deferred_posts |
unsigned short ledger::account_t::depth |
Definition at line 69 of file account.h.
Referenced by account_t(), and account_t().
|
staticinherited |
string ledger::account_t::name |
Definition at line 67 of file account.h.
Referenced by account_t(), account_t(), add_account(), find_account(), lookup(), and remove_account().
optional<string> ledger::account_t::note |
Definition at line 68 of file account.h.
Referenced by account_t(), and account_t().
account_t* ledger::account_t::parent |
Definition at line 66 of file account.h.
Referenced by account_t(), and account_t().
posts_list ledger::account_t::posts |
Definition at line 71 of file account.h.
Referenced by posts_begin(), and posts_end().
|
mutable |
Definition at line 257 of file account.h.
Referenced by has_xdata(), has_xflags(), xdata(), and xdata().