Moved format_accounts::should_display out of line
This commit is contained in:
parent
db0689f547
commit
e3b44038b3
2 changed files with 10 additions and 7 deletions
|
|
@ -210,6 +210,15 @@ void format_entries::operator()(xact_t& xact)
|
||||||
last_entry = xact.entry;
|
last_entry = xact.entry;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
bool format_accounts::should_display(account_t& account)
|
||||||
|
{
|
||||||
|
if (! disp_pred.predicate && report.HANDLED(display_))
|
||||||
|
disp_pred.predicate.parse(report.HANDLER(display_).str());
|
||||||
|
|
||||||
|
bind_scope_t bound_scope(report, account);
|
||||||
|
return disp_pred(bound_scope);
|
||||||
|
}
|
||||||
|
|
||||||
void format_accounts::flush()
|
void format_accounts::flush()
|
||||||
{
|
{
|
||||||
std::ostream& out(report.output_stream);
|
std::ostream& out(report.output_stream);
|
||||||
|
|
|
||||||
|
|
@ -181,13 +181,7 @@ public:
|
||||||
TRACE_DTOR(format_accounts);
|
TRACE_DTOR(format_accounts);
|
||||||
}
|
}
|
||||||
|
|
||||||
bool should_display(account_t& account) {
|
bool should_display(account_t& account);
|
||||||
if (! disp_pred.predicate && report.HANDLED(display_))
|
|
||||||
disp_pred.predicate.parse(report.HANDLER(display_).str());
|
|
||||||
|
|
||||||
bind_scope_t bound_scope(report, account);
|
|
||||||
return disp_pred(bound_scope);
|
|
||||||
}
|
|
||||||
|
|
||||||
virtual void flush();
|
virtual void flush();
|
||||||
virtual void operator()(account_t& account);
|
virtual void operator()(account_t& account);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue