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

#include <filters.h>

+ Inheritance diagram for ledger::posts_as_equity:
+ Collaboration diagram for ledger::posts_as_equity:

Public Member Functions

virtual void clear ()
 
void create_accounts ()
 
virtual void flush ()
 
virtual void operator() (post_t &post)
 
 posts_as_equity (post_handler_ptr _handler, report_t &_report, expr_t &amount_expr, bool _unround)
 
void report_subtotal ()
 
void report_subtotal (const char *spec_fmt=NULL, const optional< date_interval_t > &interval=none)
 
virtual void title (const string &str)
 
virtual ~posts_as_equity () 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 791 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

◆ posts_as_equity()

ledger::posts_as_equity::posts_as_equity ( post_handler_ptr _handler,
report_t & _report,
expr_t & amount_expr,
bool _unround )
inline

Definition at line 802 of file filters.h.

References create_accounts(), and TRACE_CTOR.

+ Here is the call graph for this function:

◆ ~posts_as_equity()

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

Definition at line 808 of file filters.h.

References TRACE_DTOR.

Member Function Documentation

◆ clear()

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

Reimplemented from ledger::subtotal_posts.

Definition at line 824 of file filters.h.

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

+ Here is the call graph for this function:

◆ create_accounts()

void ledger::posts_as_equity::create_accounts ( )
inline

Definition at line 812 of file filters.h.

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

Referenced by clear(), and posts_as_equity().

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

◆ flush()

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

Reimplemented from ledger::subtotal_posts.

Definition at line 819 of file filters.h.

References ledger::subtotal_posts::flush(), and report_subtotal().

+ Here is the call graph for this function:

◆ operator()()

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

◆ report_subtotal() [1/2]

void ledger::posts_as_equity::report_subtotal ( )

Referenced by flush().

+ Here is the caller graph for this function:

◆ report_subtotal() [2/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:

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