#include <draft.h>
Public Types | |
| typedef function< result_type(call_scope_t &)> | func_t | 
| typedef value_t | result_type | 
Public Member Functions | |
| result_type | calc () | 
| result_type | calc (scope_t &scope) | 
| virtual void | compile (scope_t &scope) | 
| virtual string | context_to_str () const | 
| draft_t (const value_t &args) | |
| virtual void | dump (std::ostream &out) const | 
| string | dump_to_str () const | 
| scope_t * | get_context () | 
| xact_t * | insert (journal_t &journal) | 
| virtual void | mark_uncompiled () | 
| virtual | operator bool () const throw () | 
| result_type | operator() (scope_t &scope) | 
| void | parse (const string &expr_str, const parse_flags_t &flags=PARSE_DEFAULT) | 
| virtual void | parse (std::istream &, const parse_flags_t &=PARSE_DEFAULT, const optional< string > &original_string=none) | 
| void | parse_args (const value_t &args) | 
| result_type | preview (std::ostream &out, scope_t &scope) const | 
| string | preview_to_str (scope_t &) const | 
| virtual void | print (std::ostream &) const | 
| string | print_to_str () const | 
| virtual result_type | real_calc (scope_t &) | 
| void | recompile (scope_t &scope) | 
| void | set_context (scope_t *scope) | 
| void | set_text (const string &txt) | 
| virtual string | text () const throw () | 
| virtual | ~draft_t () throw () | 
Protected Attributes | |
| bool | compiled | 
| scope_t * | context | 
| string | str | 
      
  | 
  inherited | 
Definition at line 75 of file exprbase.h.
      
  | 
  inherited | 
Definition at line 73 of file exprbase.h.
      
  | 
  inline | 
Definition at line 104 of file draft.h.
References draft_t(), ledger::value_t::empty(), parse_args(), and TRACE_CTOR.
Referenced by draft_t(), and ~draft_t().
      
  | 
  inlinevirtual | ||||||||||||
Definition at line 109 of file draft.h.
References draft_t(), and TRACE_DTOR.
      
  | 
  inlineinherited | 
Definition at line 180 of file exprbase.h.
References assert, ledger::expr_base_t< ResultType >::calc(), and context.
      
  | 
  inlineinherited | 
Definition at line 155 of file exprbase.h.
References ledger::_log_stream, ledger::expr_base_t< ResultType >::compile(), compiled, DEBUG, ledger::expr_base_t< ResultType >::dump(), ledger::expr_base_t< ResultType >::real_calc(), SHOW_DEBUG, and str.
      
  | 
  inlinevirtualinherited | 
Reimplemented in ledger::expr_t, and ledger::merged_expr_t.
Definition at line 143 of file exprbase.h.
      
  | 
  inlinevirtualinherited | 
Reimplemented in ledger::expr_t.
Definition at line 192 of file exprbase.h.
References ledger::empty_string.
      
  | 
  inlinevirtual | 
Reimplemented from ledger::expr_base_t< value_t >.
      
  | 
  inlineinherited | 
Definition at line 201 of file exprbase.h.
References ledger::expr_base_t< ResultType >::dump().
      
  | 
  inlineinherited | 
Definition at line 185 of file exprbase.h.
References context.
      
  | 
  inlinevirtualinherited | 
Definition at line 134 of file exprbase.h.
References compiled.
      
  | 
  inlinevirtualinherited | ||||||||||||
      
  | 
  inlineinherited | 
Definition at line 151 of file exprbase.h.
References ledger::expr_base_t< ResultType >::calc().
      
  | 
  inlineinherited | 
Definition at line 123 of file exprbase.h.
References ledger::expr_base_t< ResultType >::parse(), and ledger::PARSE_DEFAULT.
      
  | 
  inlinevirtualinherited | 
Reimplemented in ledger::expr_t.
Definition at line 128 of file exprbase.h.
References ledger::PARSE_DEFAULT, and ledger::expr_base_t< ResultType >::set_text().
| void ledger::draft_t::parse_args | ( | const value_t & | args | ) | 
      
  | 
  inlineinherited | 
Definition at line 215 of file exprbase.h.
References ledger::expr_base_t< ResultType >::calc(), ledger::expr_base_t< ResultType >::compile(), ledger::expr_base_t< ResultType >::dump(), ledger::expr_base_t< ResultType >::print(), and ledger::expr_base_t< ResultType >::text().
      
  | 
  inlineinherited | 
Definition at line 206 of file exprbase.h.
References ledger::expr_base_t< ResultType >::preview().
      
  | 
  inlinevirtualinherited | 
Reimplemented in ledger::expr_t.
Definition at line 212 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 196 of file exprbase.h.
References ledger::expr_base_t< ResultType >::print().
      
  | 
  inlinevirtual | 
Implements ledger::expr_base_t< value_t >.
Definition at line 115 of file draft.h.
References assert.
      
  | 
  inlineinherited | 
Definition at line 138 of file exprbase.h.
References ledger::expr_base_t< ResultType >::compile(), and compiled.
      
  | 
  inlineinherited | 
Definition at line 188 of file exprbase.h.
References context.
      
  | 
  inlineinherited | 
Definition at line 118 of file exprbase.h.
      
  | 
  inlinevirtualinherited | ||||||||||||
Definition at line 115 of file exprbase.h.
References str.
      
  | 
  protectedinherited | 
Definition at line 80 of file exprbase.h.
Referenced by calc(), compile(), expr_base_t(), expr_base_t(), mark_uncompiled(), operator=(), recompile(), and set_text().
      
  | 
  protectedinherited | 
Definition at line 78 of file exprbase.h.
Referenced by calc(), compile(), expr_base_t(), expr_base_t(), get_context(), operator=(), ledger::expr_t::op_t::print(), and set_context().
      
  | 
  protectedinherited | 
Definition at line 79 of file exprbase.h.
Referenced by calc(), expr_base_t(), operator bool(), operator=(), ledger::expr_t::parse(), ledger::predicate_t::predicate_t(), set_text(), and text().