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(), ledger::item_handler< post_t >::handler, ledger::item_handler< post_t >::item_handler(), 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(), and create_accounts().

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.

Referenced by clear(), and collapse_posts().

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::format_posts, and ledger::print_xacts.

Definition at line 68 of file chain.h.

Member Data Documentation

◆ handler


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