#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 TRACE_CTOR.
|
inline |
Definition at line 76 of file annotate.h.
References TRACE_CTOR.
|
inline |
Definition at line 83 of file annotate.h.
References TRACE_DTOR.
|
inlineinherited |
Definition at line 87 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().
|
inlineinherited |
Definition at line 84 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags.
|
inlineinherited |
Definition at line 90 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().
|
inlineinherited |
Definition at line 74 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags.
Referenced by ledger::account_t::has_xflags(), ledger::flags::basic_t< T, U >::operator T(), and ledger::flags::basic_t< T, U >::operator U().
|
inlineinherited |
Definition at line 77 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().
|
inline |
Definition at line 87 of file annotate.h.
References 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 date, price, tag, and value_expr.
void ledger::annotation_t::parse | ( | std::istream & | in | ) |
|
inlineinherited |
Definition at line 81 of file flags.h.
References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().
Referenced by ledger::flags::basic_t< T, U >::basic_t(), ledger::flags::basic_t< T, U >::basic_t(), ledger::flags::basic_t< T, U >::operator=(), and ledger::flags::basic_t< T, U >::operator=().
|
inline |
Definition at line 105 of file annotate.h.
References assert.
|
protectedinherited |
Definition at line 53 of file flags.h.
Referenced by ledger::flags::supports_flags< T, U >::add_flags(), ledger::flags::supports_flags< T, U >::clear_flags(), ledger::flags::supports_flags< T, U >::drop_flags(), ledger::flags::supports_flags< T, U >::flags(), ledger::flags::supports_flags< T, U >::has_flags(), ledger::flags::supports_flags< T, U >::operator=(), and ledger::flags::supports_flags< T, U >::set_flags().
Definition at line 63 of file annotate.h.
Referenced by operator==().
Definition at line 62 of file annotate.h.
Referenced by operator bool(), and operator==().
Definition at line 64 of file annotate.h.
Referenced by operator bool(), and operator==().
Definition at line 65 of file annotate.h.
Referenced by operator bool(), operator==(), and ledger::annotated_commodity_t::value_expr().