Loading...
Searching...
No Matches
ledger::flags::basic_t< T, U > Class Template Reference

#include <flags.h>

+ Inheritance diagram for ledger::flags::basic_t< T, U >:
+ Collaboration diagram for ledger::flags::basic_t< T, U >:

Public Types

typedefflags_t
 

Public Member Functions

void add_flags (const flags_t arg)
 
 basic_t ()
 
 basic_t (const basic_t &other)
 
 basic_t (const T &bits)
 
 basic_t (const U &bits)
 
void clear_flags ()
 
void drop_flags (const flags_t arg)
 
flags_t flags () const
 
bool has_flags (const flags_t arg) const
 
basic_t minus_flags (const T &arg) const
 
 operator T () const
 
 operator U () const
 
basic_toperator= (const basic_t &other)
 
basic_toperator= (const T &bits)
 
basic_t plus_flags (const T &arg) const
 
void set_flags (const flags_t arg)
 
 ~basic_t () throw ()
 

Protected Attributes

flags_t _flags
 

Detailed Description

template<typename T = boost::uint_least8_t, typename U = T>
class ledger::flags::basic_t< T, U >

Definition at line 96 of file flags.h.

Member Typedef Documentation

◆ flags_t

template<typename T = boost::uint_least8_t, typename U = T>
typedef T ledger::flags::supports_flags< T, U >::flags_t
inherited

Definition at line 50 of file flags.h.

Constructor & Destructor Documentation

◆ basic_t() [1/4]

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::basic_t ( )
inline

Definition at line 99 of file flags.h.

References TRACE_CTOR.

◆ basic_t() [2/4]

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::basic_t ( const T & bits)
inline

Definition at line 102 of file flags.h.

References ledger::downcast(), ledger::flags::supports_flags< T, U >::set_flags(), and TRACE_CTOR.

+ Here is the call graph for this function:

◆ basic_t() [3/4]

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::basic_t ( const U & bits)
inline

Definition at line 106 of file flags.h.

References ledger::downcast(), ledger::flags::supports_flags< T, U >::set_flags(), and TRACE_CTOR.

+ Here is the call graph for this function:

◆ ~basic_t()

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::~basic_t ( )
throw ( )
inline

Definition at line 110 of file flags.h.

References TRACE_DTOR.

◆ basic_t() [4/4]

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::basic_t ( const basic_t< T, U > & other)
inline

Definition at line 114 of file flags.h.

References TRACE_CTOR.

Member Function Documentation

◆ add_flags()

template<typename T = boost::uint_least8_t, typename U = T>
void ledger::flags::supports_flags< T, U >::add_flags ( const flags_t arg)
inlineinherited

Definition at line 87 of file flags.h.

References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().

+ Here is the call graph for this function:

◆ clear_flags()

template<typename T = boost::uint_least8_t, typename U = T>
void ledger::flags::supports_flags< T, U >::clear_flags ( )
inlineinherited

Definition at line 84 of file flags.h.

References ledger::flags::supports_flags< T, U >::_flags.

◆ drop_flags()

template<typename T = boost::uint_least8_t, typename U = T>
void ledger::flags::supports_flags< T, U >::drop_flags ( const flags_t arg)
inlineinherited

Definition at line 90 of file flags.h.

References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().

+ Here is the call graph for this function:

◆ flags()

template<typename T = boost::uint_least8_t, typename U = T>
flags_t ledger::flags::supports_flags< T, U >::flags ( ) const
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().

+ Here is the caller graph for this function:

◆ has_flags()

template<typename T = boost::uint_least8_t, typename U = T>
bool ledger::flags::supports_flags< T, U >::has_flags ( const flags_t arg) const
inlineinherited

Definition at line 77 of file flags.h.

References ledger::flags::supports_flags< T, U >::_flags, and ledger::downcast().

+ Here is the call graph for this function:

◆ minus_flags()

template<typename T = boost::uint_least8_t, typename U = T>
basic_t ledger::flags::basic_t< T, U >::minus_flags ( const T & arg) const
inline

Definition at line 139 of file flags.h.

References ledger::downcast().

+ Here is the call graph for this function:

◆ operator T()

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::operator T ( ) const
inline

Definition at line 127 of file flags.h.

References ledger::flags::supports_flags< T, U >::flags().

+ Here is the call graph for this function:

◆ operator U()

template<typename T = boost::uint_least8_t, typename U = T>
ledger::flags::basic_t< T, U >::operator U ( ) const
inline

Definition at line 130 of file flags.h.

References ledger::flags::supports_flags< T, U >::flags().

+ Here is the call graph for this function:

◆ operator=() [1/2]

template<typename T = boost::uint_least8_t, typename U = T>
basic_t & ledger::flags::basic_t< T, U >::operator= ( const basic_t< T, U > & other)
inline

Definition at line 118 of file flags.h.

References ledger::downcast(), and ledger::flags::supports_flags< T, U >::set_flags().

+ Here is the call graph for this function:

◆ operator=() [2/2]

template<typename T = boost::uint_least8_t, typename U = T>
basic_t & ledger::flags::basic_t< T, U >::operator= ( const T & bits)
inline

Definition at line 122 of file flags.h.

References ledger::downcast(), and ledger::flags::supports_flags< T, U >::set_flags().

+ Here is the call graph for this function:

◆ plus_flags()

template<typename T = boost::uint_least8_t, typename U = T>
basic_t ledger::flags::basic_t< T, U >::plus_flags ( const T & arg) const
inline

Definition at line 134 of file flags.h.

References ledger::downcast().

+ Here is the call graph for this function:

◆ set_flags()

template<typename T = boost::uint_least8_t, typename U = T>
void ledger::flags::supports_flags< T, U >::set_flags ( const flags_t arg)
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=().

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

Member Data Documentation

◆ _flags


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