Flexible and extensible mechanisms for holding flags. More...
#include <shark/Core/Flags.h>
Public Member Functions | |
TypedFlags () | |
TypedFlags (TypedFlags const &other) | |
virtual | ~TypedFlags () |
TypedFlags< Flag > & | operator= (TypedFlags< Flag > const &rhs) |
void | set (Flag f) |
void | setAll () |
void | reset () |
void | reset (Flag f) |
bool | test (Flag f) const |
bool | operator & (Flag f) const |
TypedFlags< Flag > & | operator|= (Flag f) |
TypedFlags< Flag > & | operator|= (const TypedFlags< Flag > &flags) |
TypedFlags< Flag > | operator| (Flag f) const |
TypedFlags< Flag > | operator| (const TypedFlags< Flag > &flags) const |
virtual void | read (InArchive &archive) |
Read the component from the supplied archive. More... | |
virtual void | write (OutArchive &archive) const |
Write the component to the supplied archive. More... | |
Public Member Functions inherited from shark::ISerializable | |
virtual | ~ISerializable () |
Virtual d'tor. More... | |
void | load (InArchive &archive, unsigned int version) |
Versioned loading of components, calls read(...). More... | |
void | save (OutArchive &archive, unsigned int version) const |
Versioned storing of components, calls write(...). More... | |
BOOST_SERIALIZATION_SPLIT_MEMBER () | |
Protected Attributes | |
unsigned int | m_flags |
Flexible and extensible mechanisms for holding flags.
|
inline |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Read the component from the supplied archive.
[in,out] | archive | The archive to read from. |
Reimplemented from shark::ISerializable.
Definition at line 115 of file Flags.h.
Referenced by shark::AbstractModel< InputT, unsigned int >::read().
|
inline |
Definition at line 78 of file Flags.h.
Referenced by shark::CombinedObjectiveFunction< SearchSpaceType, ResultT >::add(), shark::ProductKernel< MultiTaskSample< InputTypeT > >::addKernel(), shark::ContrastiveDivergence< Operator >::ContrastiveDivergence(), shark::ConcatenatedModel< VectorType >::enableModelOptimization(), shark::MultiChainApproximator< MarkovChainType >::MultiChainApproximator(), and shark::SingleChainApproximator< MarkovChainType >::SingleChainApproximator().
|
inline |
|
inline |
Definition at line 70 of file Flags.h.
Referenced by shark::CombinedObjectiveFunction< SearchSpaceType, ResultT >::add().
|
inline |
|
inline |
Definition at line 86 of file Flags.h.
Referenced by shark::CombinedObjectiveFunction< SearchSpaceType, ResultT >::add(), and shark::CombinedObjectiveFunction< SearchSpaceType, ResultT >::evalDerivative().
|
inlinevirtual |
Write the component to the supplied archive.
[in,out] | archive | The archive to write to. |
Reimplemented from shark::ISerializable.
Definition at line 118 of file Flags.h.
Referenced by shark::AbstractModel< InputT, unsigned int >::write().
|
protected |
Definition at line 122 of file Flags.h.
Referenced by shark::TypedFlags< Feature >::operator&(), shark::TypedFlags< Feature >::operator=(), shark::TypedFlags< Feature >::operator|=(), shark::TypedFlags< Feature >::read(), shark::TypedFlags< Feature >::reset(), shark::TypedFlags< Feature >::set(), shark::TypedFlags< Feature >::setAll(), shark::TypedFlags< Feature >::test(), and shark::TypedFlags< Feature >::write().