#include <annotate.h>
Public Types | |
typedef T | flags_t |
Public Member Functions | |
void | add_flags (const flags_t arg) |
annotation_t (const annotation_t &other) | |
annotation_t (const optional< amount_t > &_price=none, const optional< date_t > &_date=none, const optional< string > &_tag=none, const optional< expr_t > &_value_expr=none) | |
void | clear_flags () |
void | drop_flags (const flags_t arg) |
flags_t | flags () const |
bool | has_flags (const flags_t arg) const |
operator bool () const | |
bool | operator< (const annotation_t &rhs) const |
bool | operator== (const annotation_t &rhs) const |
void | parse (std::istream &in) |
void | print (std::ostream &out, bool keep_base=false, bool no_computed_annotations=false) const |
void | set_flags (const flags_t arg) |
bool | valid () const |
~annotation_t () |
Public Attributes | |
optional< date_t > | date |
optional< amount_t > | price |
optional< string > | tag |
optional< expr_t > | value_expr |
Protected Attributes | |
flags_t | _flags |
Definition at line 52 of file annotate.h.
|
inherited |
|
inlineexplicit |
Definition at line 67 of file annotate.h.
References annotation_t(), date, price, ledger::flags::supports_flags< T, U >::supports_flags(), tag, TRACE_CTOR, and value_expr.
Referenced by annotation_t(), annotation_t(), operator<(), operator==(), and ~annotation_t().
|
inline |
Definition at line 76 of file annotate.h.
References annotation_t(), date, ledger::flags::supports_flags< T, U >::flags(), price, ledger::flags::supports_flags< T, U >::supports_flags(), tag, TRACE_CTOR, and value_expr.
|
inline |
Definition at line 83 of file annotate.h.
References annotation_t(), and TRACE_DTOR.
|
inlineinherited |
Definition at line 87 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::plus_flags().
|
inlineinherited |
|
inlineinherited |
Definition at line 90 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::minus_flags().
|
inlineinherited |
Definition at line 74 of file flags.h.
References _flags.
Referenced by ledger::account_t::account_t(), ledger::annotation_t::annotation_t(), ledger::account_t::children_with_flags(), ledger::item_t::copy_details(), ledger::account_t::has_xflags(), ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::operator parse_flags_enum_t(), ledger::flags::basic_t< T, U >::operator U(), ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::operator=(), and ledger::account_t::xdata_t::xdata_t().
|
inlineinherited |
|
inline |
Definition at line 87 of file annotate.h.
References date, price, tag, and value_expr.
bool ledger::annotation_t::operator< | ( | const annotation_t & | rhs | ) | const |
|
inline |
Definition at line 92 of file annotate.h.
References annotation_t(), date, price, tag, and value_expr.
void ledger::annotation_t::parse | ( | std::istream & | in | ) |
void ledger::annotation_t::print | ( | std::ostream & | out, |
bool | keep_base = false, | ||
bool | no_computed_annotations = false ) const |
|
inlineinherited |
Definition at line 81 of file flags.h.
References _flags.
Referenced by ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::basic_t(), and ledger::flags::basic_t< parse_flags_enum_t, uint_least8_t >::basic_t().
|
inline |
Definition at line 105 of file annotate.h.
References assert.
|
protectedinherited |
Definition at line 53 of file flags.h.
Referenced by add_flags(), clear_flags(), drop_flags(), flags(), has_flags(), operator=(), set_flags(), supports_flags(), supports_flags(), and supports_flags().
optional<date_t> ledger::annotation_t::date |
Definition at line 63 of file annotate.h.
Referenced by annotation_t(), annotation_t(), operator bool(), and operator==().
optional<amount_t> ledger::annotation_t::price |
Definition at line 62 of file annotate.h.
Referenced by annotation_t(), annotation_t(), operator bool(), and operator==().
optional<string> ledger::annotation_t::tag |
Definition at line 64 of file annotate.h.
Referenced by annotation_t(), annotation_t(), operator bool(), and operator==().
optional<expr_t> ledger::annotation_t::value_expr |
Definition at line 65 of file annotate.h.
Referenced by annotation_t(), annotation_t(), operator bool(), and operator==().