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

#include <filters.h>

+ Inheritance diagram for ledger::interval_posts:
+ Collaboration diagram for ledger::interval_posts:

Public Member Functions

virtual void clear ()
 
void create_accounts ()
 
virtual void flush ()
 
 interval_posts (post_handler_ptr _handler, expr_t &amount_expr, const date_interval_t &_interval, bool _exact_periods=false, bool _generate_empty_posts=false, bool _align_intervals=false)
 
virtual void operator() (post_t &post)
 
void report_subtotal (const char *spec_fmt=NULL, const optional< date_interval_t > &interval=none)
 
void report_subtotal (const date_interval_t &ival)
 
virtual void title (const string &str)
 
virtual ~interval_posts () throw ()
 

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 727 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

◆ interval_posts()

ledger::interval_posts::interval_posts ( post_handler_ptr _handler,
expr_t & amount_expr,
const date_interval_t & _interval,
bool _exact_periods = false,
bool _generate_empty_posts = false,
bool _align_intervals = false )
inline

Definition at line 742 of file filters.h.

References create_accounts(), and TRACE_CTOR.

+ Here is the call graph for this function:

◆ ~interval_posts()

virtual ledger::interval_posts::~interval_posts ( )
throw ( )
inlinevirtual

Definition at line 756 of file filters.h.

References TRACE_DTOR.

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::subtotal_posts.

Definition at line 783 of file filters.h.

References ledger::subtotal_posts::clear(), and create_accounts().

+ Here is the call graph for this function:

◆ create_accounts()

void ledger::interval_posts::create_accounts ( )
inline

Definition at line 760 of file filters.h.

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

Referenced by clear(), and interval_posts().

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

◆ flush()

virtual void ledger::interval_posts::flush ( )
virtual

Reimplemented from ledger::subtotal_posts.

◆ operator()()

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

Reimplemented from ledger::subtotal_posts.

◆ report_subtotal() [1/2]

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

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

+ Here is the caller graph for this function:

◆ report_subtotal() [2/2]

void ledger::interval_posts::report_subtotal ( const date_interval_t & ival)

◆ 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
protectedinherited

Definition at line 688 of file filters.h.

Referenced by ledger::subtotal_posts::clear().

◆ component_posts

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

Definition at line 692 of file filters.h.

Referenced by ledger::subtotal_posts::clear().

◆ date_format

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

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
protectedinherited

◆ values

values_map ledger::subtotal_posts::values
protectedinherited

Definition at line 689 of file filters.h.

Referenced by ledger::subtotal_posts::clear(), and ledger::subtotal_posts::flush().


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