#include <exprbase.h>
Public Types | |
typedef function< result_type(call_scope_t &) | func_t) |
typedef ResultType | result_type |
Protected Member Functions | |
virtual result_type | real_calc (scope_t &scope)=0 |
Protected Attributes | |
bool | compiled |
scope_t * | context |
string | str |
Definition at line 70 of file exprbase.h.
typedef function<result_type (call_scope_t&) ledger::expr_base_t< ResultType >::func_t) |
Definition at line 75 of file exprbase.h.
typedef ResultType ledger::expr_base_t< ResultType >::result_type |
Definition at line 73 of file exprbase.h.
|
inline |
Definition at line 85 of file exprbase.h.
References TRACE_CTOR.
|
inline |
Definition at line 89 of file exprbase.h.
References TRACE_CTOR.
|
inlinevirtual |
Definition at line 94 of file exprbase.h.
References TRACE_DTOR.
|
inline |
Definition at line 180 of file exprbase.h.
References assert, ledger::expr_base_t< ResultType >::calc(), and ledger::expr_base_t< ResultType >::context.
Referenced by ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::operator()(), and ledger::expr_base_t< ResultType >::preview().
|
inline |
Definition at line 155 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compile(), ledger::expr_base_t< ResultType >::compiled, DEBUG, ledger::downcast(), ledger::expr_base_t< ResultType >::dump(), ledger::expr_base_t< ResultType >::real_calc(), SHOW_DEBUG, and ledger::expr_base_t< ResultType >::str.
|
inlinevirtual |
Reimplemented in ledger::expr_t, and ledger::merged_expr_t.
Definition at line 143 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compiled, and ledger::expr_base_t< ResultType >::context.
Referenced by ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::preview(), and ledger::expr_base_t< ResultType >::recompile().
|
inlinevirtual |
Reimplemented in ledger::expr_t.
Definition at line 192 of file exprbase.h.
References ledger::empty_string.
|
inlinevirtual |
Reimplemented in ledger::draft_t, ledger::expr_t, and ledger::format_t.
Definition at line 213 of file exprbase.h.
Referenced by ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::dump_to_str(), and ledger::expr_base_t< ResultType >::preview().
|
inline |
Definition at line 201 of file exprbase.h.
References ledger::expr_base_t< ResultType >::dump().
|
inline |
Definition at line 185 of file exprbase.h.
References ledger::expr_base_t< ResultType >::context.
|
inlinevirtual |
Reimplemented in ledger::format_t.
Definition at line 134 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compiled.
Referenced by ledger::sort_posts::clear(), ledger::filter_posts::clear(), ledger::calc_posts::clear(), ledger::collapse_posts::clear(), ledger::display_filter_posts::clear(), ledger::changed_value_posts::clear(), ledger::subtotal_posts::clear(), ledger::by_payee_posts::clear(), ledger::transfer_details::clear(), ledger::forecast_posts::clear(), ledger::format_accounts::clear(), and ledger::format_t::mark_uncompiled().
|
inlinevirtual |
Reimplemented in ledger::expr_t.
Definition at line 111 of file exprbase.h.
References ledger::expr_base_t< ResultType >::str.
|
inline |
Definition at line 151 of file exprbase.h.
References ledger::expr_base_t< ResultType >::calc().
|
inline |
Definition at line 98 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compiled, ledger::expr_base_t< ResultType >::context, ledger::downcast(), and ledger::expr_base_t< ResultType >::str.
|
inline |
Definition at line 106 of file exprbase.h.
References ledger::downcast(), and ledger::expr_base_t< ResultType >::parse().
|
inline |
Definition at line 123 of file exprbase.h.
References ledger::downcast(), and ledger::expr_base_t< ResultType >::parse().
Referenced by ledger::expr_base_t< ResultType >::operator=(), and ledger::expr_base_t< ResultType >::parse().
|
inlinevirtual |
Reimplemented in ledger::expr_t.
Definition at line 128 of file exprbase.h.
References ledger::downcast(), and ledger::expr_base_t< ResultType >::set_text().
|
inline |
Definition at line 215 of file exprbase.h.
References ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::compile(), ledger::downcast(), ledger::expr_base_t< ResultType >::dump(), ledger::expr_base_t< ResultType >::print(), and ledger::expr_base_t< ResultType >::text().
Referenced by ledger::expr_base_t< ResultType >::preview_to_str().
|
inline |
Definition at line 206 of file exprbase.h.
References ledger::expr_base_t< ResultType >::preview().
|
inlinevirtual |
Reimplemented in ledger::expr_t.
Definition at line 212 of file exprbase.h.
Referenced by ledger::operator<<(), ledger::expr_base_t< ResultType >::preview(), and ledger::expr_base_t< ResultType >::print_to_str().
|
inline |
Definition at line 196 of file exprbase.h.
References ledger::expr_base_t< ResultType >::print().
|
protectedpure virtual |
Implemented in ledger::draft_t, ledger::expr_t, ledger::format_t, and ledger::predicate_t.
Referenced by ledger::expr_base_t< ResultType >::calc().
|
inline |
Definition at line 138 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compile(), and ledger::expr_base_t< ResultType >::compiled.
|
inline |
Definition at line 188 of file exprbase.h.
References ledger::expr_base_t< ResultType >::context.
|
inline |
Definition at line 118 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compiled, ledger::downcast(), and ledger::expr_base_t< ResultType >::str.
Referenced by ledger::expr_base_t< ResultType >::parse().
|
inlinevirtual |
Definition at line 115 of file exprbase.h.
References ledger::expr_base_t< ResultType >::str.
Referenced by ledger::expr_base_t< ResultType >::preview().
|
protected |
Definition at line 80 of file exprbase.h.
Referenced by ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::compile(), ledger::expr_base_t< ResultType >::mark_uncompiled(), ledger::expr_base_t< ResultType >::operator=(), ledger::expr_base_t< ResultType >::recompile(), and ledger::expr_base_t< ResultType >::set_text().
|
protected |
|
protected |