#include <format.h>
Public Types | |
| enum | elision_style_t { TRUNCATE_TRAILING , TRUNCATE_MIDDLE , TRUNCATE_LEADING , ABBREVIATE } | 
| typedef function< result_type(call_scope_t &)> | func_t | 
| typedef string | 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 | 
| virtual void | dump (std::ostream &out) const | 
| string | dump_to_str () const | 
| format_t () | |
| format_t (const string &_str, scope_t *context=NULL) | |
| scope_t * | get_context () | 
| 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_format (const string &_format, const optional< format_t & > &tmpl=none) | 
| 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 &scope) | 
| void | recompile (scope_t &scope) | 
| void | set_context (scope_t *scope) | 
| void | set_text (const string &txt) | 
| virtual string | text () const throw () | 
| virtual | ~format_t () | 
Static Public Member Functions | |
| static string | truncate (const unistring &str, const std::size_t width, const std::size_t account_abbrev_length=0) | 
Static Public Attributes | |
| static enum ledger::format_t::elision_style_t | default_style | 
| static bool | default_style_changed | 
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 124 of file format.h.
References format_t(), and TRACE_CTOR.
Referenced by format_t(), format_t(), and ~format_t().
Definition at line 127 of file format.h.
References ledger::expr_base_t< string >::context, format_t(), parse_format(), and TRACE_CTOR.
      
  | 
  inlinevirtual | 
Definition at line 133 of file format.h.
References format_t(), and TRACE_DTOR.
      
  | 
  inlineinherited | 
Definition at line 180 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 155 of file exprbase.h.
      
  | 
  inlinevirtualinherited | 
Definition at line 143 of file exprbase.h.
      
  | 
  inlinevirtualinherited | 
Definition at line 192 of file exprbase.h.
      
  | 
  inlinevirtual | 
Reimplemented from ledger::expr_base_t< string >.
      
  | 
  inlineinherited | 
Definition at line 201 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 185 of file exprbase.h.
      
  | 
  inlinevirtual | 
Reimplemented from ledger::expr_base_t< string >.
Definition at line 143 of file format.h.
References ledger::expr_base_t< ResultType >::mark_uncompiled().
      
  | 
  inlinevirtualinherited | ||||||||||||
Definition at line 111 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 151 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 123 of file exprbase.h.
      
  | 
  inlinevirtualinherited | 
Definition at line 128 of file exprbase.h.
      
  | 
  inline | 
Definition at line 137 of file format.h.
References ledger::expr_base_t< string >::set_text().
Referenced by format_t().
      
  | 
  inlineinherited | 
Definition at line 215 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 206 of file exprbase.h.
      
  | 
  inlinevirtualinherited | 
Definition at line 212 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 196 of file exprbase.h.
      
  | 
  virtual | 
Implements ledger::expr_base_t< string >.
      
  | 
  inlineinherited | 
Definition at line 138 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 188 of file exprbase.h.
      
  | 
  inlineinherited | 
Definition at line 118 of file exprbase.h.
Referenced by ledger::format_t::parse_format().
      
  | 
  inlinevirtualinherited | ||||||||||||
Definition at line 115 of file exprbase.h.
      
  | 
  static | 
References ledger::expr_base_t< string >::str.
      
  | 
  protectedinherited | 
Definition at line 80 of file exprbase.h.
      
  | 
  protectedinherited | 
Definition at line 78 of file exprbase.h.
Referenced by ledger::format_t::format_t().
      
  | 
  static | 
      
  | 
  protectedinherited | 
Definition at line 79 of file exprbase.h.
Referenced by ledger::format_t::truncate().