Loading...
Searching...
No Matches
ledger::collapse_posts Class Reference

#include <filters.h>

+ Inheritance diagram for ledger::collapse_posts:
+ Collaboration diagram for ledger::collapse_posts:

Public Member Functions

virtual void clear ()
 
 collapse_posts (post_handler_ptr handler, report_t &_report, expr_t &_amount_expr, predicate_t _display_predicate, predicate_t _only_predicate, bool _only_collapse_if_zero=false, unsigned short _collapse_depth=0)
 
void create_accounts ()
 
value_tfind_totals (account_t *account)
 
virtual void flush ()
 
virtual void operator() (post_t &post)
 
void report_subtotal ()
 
virtual void title (const string &str)
 
virtual ~collapse_posts ()
 

Protected Attributes

shared_ptr< item_handlerhandler
 

Detailed Description

Definition at line 428 of file filters.h.

Constructor & Destructor Documentation

◆ collapse_posts()

ledger::collapse_posts::collapse_posts ( post_handler_ptr handler,
report_t & _report,
expr_t & _amount_expr,
predicate_t _display_predicate,
predicate_t _only_predicate,
bool _only_collapse_if_zero = false,
unsigned short _collapse_depth = 0 )
inline

Definition at line 451 of file filters.h.

References create_accounts(), and TRACE_CTOR.

+ Here is the call graph for this function:

◆ ~collapse_posts()

virtual ledger::collapse_posts::~collapse_posts ( )
inlinevirtual

Definition at line 467 of file filters.h.

References ledger::item_handler< post_t >::handler, and TRACE_DTOR.

Member Function Documentation

◆ clear()

virtual void ledger::collapse_posts::clear ( )
inlinevirtual

Reimplemented from ledger::item_handler< post_t >.

Definition at line 487 of file filters.h.

References ledger::item_handler< T >::clear(), ledger::temporaries_t::clear(), create_accounts(), ledger::downcast(), and ledger::expr_base_t< ResultType >::mark_uncompiled().

+ Here is the call graph for this function:

◆ create_accounts()

void ledger::collapse_posts::create_accounts ( )
inline

Definition at line 472 of file filters.h.

References ledger::temporaries_t::create_account(), and ledger::downcast().

Referenced by clear(), and collapse_posts().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ find_totals()

value_t & ledger::collapse_posts::find_totals ( account_t * account)

◆ flush()

virtual void ledger::collapse_posts::flush ( )
inlinevirtual

Reimplemented from ledger::item_handler< post_t >.

Definition at line 478 of file filters.h.

References ledger::item_handler< T >::flush(), and report_subtotal().

+ Here is the call graph for this function:

◆ operator()()

virtual void ledger::collapse_posts::operator() ( post_t & post)
virtual

Reimplemented from ledger::item_handler< post_t >.

◆ report_subtotal()

void ledger::collapse_posts::report_subtotal ( )

Referenced by flush().

+ Here is the caller graph for this function:

◆ title()

virtual void ledger::item_handler< post_t >::title ( const string & str)
inlinevirtualinherited

Reimplemented in ledger::print_xacts, and ledger::format_posts.

Definition at line 68 of file chain.h.

Member Data Documentation

◆ handler

shared_ptr<item_handler> ledger::item_handler< post_t >::handler
protectedinherited

Definition at line 55 of file chain.h.


The documentation for this class was generated from the following file: