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

#include <filters.h>

Inheritance diagram for ledger::post_splitter:
Collaboration diagram for ledger::post_splitter:

Public Types

typedef function< void(const value_t &)> custom_flusher_t
typedef std::map< value_t, posts_listvalue_to_posts_map

Public Member Functions

virtual void clear ()
virtual void flush ()
virtual void operator() (post_t &post)
 post_splitter (post_handler_ptr _post_chain, report_t &_report, expr_t &_group_by_expr)
virtual void print_title (const value_t &val)
void set_postflush_func (custom_flusher_t functor)
void set_preflush_func (custom_flusher_t functor)
virtual void title (const string &str)
virtual ~post_splitter ()

Protected Attributes

expr_tgroup_by_expr
shared_ptr< item_handlerhandler
post_handler_ptr post_chain
optional< custom_flusher_tpostflush_func
value_to_posts_map posts_map
custom_flusher_t preflush_func
report_treport

Detailed Description

Definition at line 59 of file filters.h.

Member Typedef Documentation

◆ custom_flusher_t

typedef function<void (const value_t&)> ledger::post_splitter::custom_flusher_t

Definition at line 63 of file filters.h.

◆ value_to_posts_map

Definition at line 62 of file filters.h.

Constructor & Destructor Documentation

◆ post_splitter()

ledger::post_splitter::post_splitter ( post_handler_ptr _post_chain,
report_t & _report,
expr_t & _group_by_expr )
inline

Definition at line 74 of file filters.h.

References group_by_expr, post_chain, post_splitter(), preflush_func, print_title(), report, and TRACE_CTOR.

Referenced by post_splitter(), and ~post_splitter().

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

◆ ~post_splitter()

virtual ledger::post_splitter::~post_splitter ( )
inlinevirtual

Definition at line 82 of file filters.h.

References post_splitter(), and TRACE_DTOR.

Here is the call graph for this function:

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::item_handler< post_t >.

Definition at line 98 of file filters.h.

References ledger::item_handler< T >::clear(), post_chain, and posts_map.

Here is the call graph for this function:

◆ flush()

virtual void ledger::post_splitter::flush ( )
virtual

Reimplemented from ledger::item_handler< post_t >.

◆ operator()()

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

Reimplemented from ledger::item_handler< post_t >.

◆ print_title()

virtual void ledger::post_splitter::print_title ( const value_t & val)
virtual

Referenced by post_splitter().

Here is the caller graph for this function:

◆ set_postflush_func()

void ledger::post_splitter::set_postflush_func ( custom_flusher_t functor)
inline

Definition at line 89 of file filters.h.

References postflush_func.

◆ set_preflush_func()

void ledger::post_splitter::set_preflush_func ( custom_flusher_t functor)
inline

Definition at line 86 of file filters.h.

References preflush_func.

◆ 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

◆ group_by_expr

expr_t& ledger::post_splitter::group_by_expr
protected

Definition at line 69 of file filters.h.

Referenced by post_splitter().

◆ handler

◆ post_chain

post_handler_ptr ledger::post_splitter::post_chain
protected

Definition at line 67 of file filters.h.

Referenced by clear(), and post_splitter().

◆ postflush_func

optional<custom_flusher_t> ledger::post_splitter::postflush_func
protected

Definition at line 71 of file filters.h.

Referenced by set_postflush_func().

◆ posts_map

value_to_posts_map ledger::post_splitter::posts_map
protected

Definition at line 66 of file filters.h.

Referenced by clear().

◆ preflush_func

custom_flusher_t ledger::post_splitter::preflush_func
protected

Definition at line 70 of file filters.h.

Referenced by post_splitter(), and set_preflush_func().

◆ report

report_t& ledger::post_splitter::report
protected

Definition at line 68 of file filters.h.

Referenced by post_splitter().


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