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

#include <output.h>

+ Inheritance diagram for ledger::format_accounts:
+ Collaboration diagram for ledger::format_accounts:

Public Member Functions

virtual void clear ()
 
virtual void flush ()
 
 format_accounts (report_t &_report, const string &_format, const optional< string > &_prepend_format=none, std::size_t _prepend_width=0)
 
std::pair< std::size_t, std::size_t > mark_accounts (account_t &account, const bool flat)
 
virtual void operator() (account_t &account)
 
virtual std::size_t post_account (account_t &account, const bool flat)
 
virtual void title (const string &str)
 
virtual ~format_accounts ()
 

Protected Attributes

format_t account_line_format
 
predicate_t disp_pred
 
bool first_report_title
 
shared_ptr< item_handlerhandler
 
std::list< account_t * > posted_accounts
 
format_t prepend_format
 
std::size_t prepend_width
 
report_treport
 
string report_title
 
format_t separator_format
 
format_t total_line_format
 

Detailed Description

Definition at line 95 of file output.h.

Constructor & Destructor Documentation

◆ format_accounts()

ledger::format_accounts::format_accounts ( report_t & _report,
const string & _format,
const optional< string > & _prepend_format = none,
std::size_t _prepend_width = 0 )

◆ ~format_accounts()

virtual ledger::format_accounts::~format_accounts ( )
inlinevirtual

Definition at line 114 of file output.h.

References TRACE_DTOR.

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::item_handler< account_t >.

Definition at line 130 of file output.h.

References ledger::item_handler< T >::clear(), disp_pred, ledger::expr_base_t< ResultType >::mark_uncompiled(), posted_accounts, and report_title.

+ Here is the call graph for this function:

◆ flush()

virtual void ledger::format_accounts::flush ( )
virtual

Reimplemented from ledger::item_handler< account_t >.

◆ mark_accounts()

std::pair< std::size_t, std::size_t > ledger::format_accounts::mark_accounts ( account_t & account,
const bool flat )

◆ operator()()

virtual void ledger::format_accounts::operator() ( account_t & account)
virtual

Reimplemented from ledger::item_handler< account_t >.

◆ post_account()

virtual std::size_t ledger::format_accounts::post_account ( account_t & account,
const bool flat )
virtual

◆ title()

virtual void ledger::format_accounts::title ( const string & str)
inlinevirtual

Reimplemented from ledger::item_handler< account_t >.

Definition at line 121 of file output.h.

References report_title.

Member Data Documentation

◆ account_line_format

format_t ledger::format_accounts::account_line_format
protected

Definition at line 99 of file output.h.

◆ disp_pred

predicate_t ledger::format_accounts::disp_pred
protected

Definition at line 104 of file output.h.

Referenced by clear().

◆ first_report_title

bool ledger::format_accounts::first_report_title
protected

Definition at line 105 of file output.h.

◆ handler

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

Definition at line 55 of file chain.h.

◆ posted_accounts

std::list<account_t *> ledger::format_accounts::posted_accounts
protected

Definition at line 108 of file output.h.

Referenced by clear().

◆ prepend_format

format_t ledger::format_accounts::prepend_format
protected

Definition at line 102 of file output.h.

◆ prepend_width

std::size_t ledger::format_accounts::prepend_width
protected

Definition at line 103 of file output.h.

◆ report

report_t& ledger::format_accounts::report
protected

Definition at line 98 of file output.h.

◆ report_title

string ledger::format_accounts::report_title
protected

Definition at line 106 of file output.h.

Referenced by clear(), and title().

◆ separator_format

format_t ledger::format_accounts::separator_format
protected

Definition at line 101 of file output.h.

◆ total_line_format

format_t ledger::format_accounts::total_line_format
protected

Definition at line 100 of file output.h.


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