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

#include <filters.h>

+ Inheritance diagram for ledger::subtotal_posts:
+ Collaboration diagram for ledger::subtotal_posts:

Classes

class  acct_value_t
 

Public Member Functions

virtual void clear ()
 
virtual void flush ()
 
virtual void operator() (post_t &post)
 
void report_subtotal (const char *spec_fmt=NULL, const optional< date_interval_t > &interval=none)
 
 subtotal_posts (post_handler_ptr handler, expr_t &_amount_expr, const optional< string > &_date_format=none)
 
virtual void title (const string &str)
 
virtual ~subtotal_posts ()
 

Protected Types

typedef std::map< string, acct_value_tvalues_map
 
typedef std::pair< string, acct_value_tvalues_pair
 

Protected Attributes

expr_tamount_expr
 
std::deque< post_t * > component_posts
 
optional< stringdate_format
 
shared_ptr< item_handlerhandler
 
temporaries_t temps
 
values_map values
 

Detailed Description

Definition at line 648 of file filters.h.

Member Typedef Documentation

◆ values_map

Definition at line 684 of file filters.h.

◆ values_pair

Definition at line 685 of file filters.h.

Constructor & Destructor Documentation

◆ subtotal_posts()

ledger::subtotal_posts::subtotal_posts ( post_handler_ptr handler,
expr_t & _amount_expr,
const optional< string > & _date_format = none )
inline

Definition at line 695 of file filters.h.

References TRACE_CTOR.

◆ ~subtotal_posts()

virtual ledger::subtotal_posts::~subtotal_posts ( )
inlinevirtual

Definition at line 702 of file filters.h.

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

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::item_handler< post_t >.

Reimplemented in ledger::interval_posts, ledger::posts_as_equity, and ledger::day_of_week_posts.

Definition at line 717 of file filters.h.

References amount_expr, ledger::item_handler< T >::clear(), ledger::temporaries_t::clear(), component_posts, ledger::expr_base_t< ResultType >::mark_uncompiled(), temps, and values.

Referenced by ledger::interval_posts::clear(), ledger::posts_as_equity::clear(), and ledger::day_of_week_posts::clear().

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

◆ flush()

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

Reimplemented from ledger::item_handler< post_t >.

Reimplemented in ledger::interval_posts, ledger::posts_as_equity, and ledger::day_of_week_posts.

Definition at line 710 of file filters.h.

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

Referenced by ledger::posts_as_equity::flush().

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

◆ operator()()

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

◆ report_subtotal()

void ledger::subtotal_posts::report_subtotal ( const char * spec_fmt = NULL,
const optional< date_interval_t > & interval = none )

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

◆ amount_expr

expr_t& ledger::subtotal_posts::amount_expr
protected

Definition at line 688 of file filters.h.

Referenced by clear().

◆ component_posts

std::deque<post_t *> ledger::subtotal_posts::component_posts
protected

Definition at line 692 of file filters.h.

Referenced by clear().

◆ date_format

optional<string> ledger::subtotal_posts::date_format
protected

Definition at line 690 of file filters.h.

◆ handler

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

Definition at line 55 of file chain.h.

◆ temps

temporaries_t ledger::subtotal_posts::temps
protected

◆ values

values_map ledger::subtotal_posts::values
protected

Definition at line 689 of file filters.h.

Referenced by clear(), and flush().


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