Flagged< Type > Class Template Reference
[Kernel Module]

#include <flagged.h>

Inheritance diagram for Flagged< Type >:

Flagged16 Flagged32 Flagged64 Flagged8 Unit BuildingUnit ForceUnit

List of all members.


Detailed Description

template<typename Type>
class Flagged< Type >

Helps with setting flags.

Can be used together with basic unsigned types like byte_t, uint_t...

Public Member Functions

 Flagged ()
void ResetFlags ()
void SetFlags (Type flags)
void ClearFlags (Type flags)
void ToggleFlags (Type flags)
bool IsFlags (Type flags) const
bool IsAnyFlag (Type flags) const

Private Attributes

Type flags

Static Private Attributes

static Type all_flags = 0


Constructor & Destructor Documentation

template<class Type>
Flagged< Type >::Flagged (  )  [inline]


Member Function Documentation

template<class Type>
void Flagged< Type >::ResetFlags (  )  [inline]

template<class Type>
void Flagged< Type >::SetFlags ( Type  flags  )  [inline]

template<class Type>
void Flagged< Type >::ClearFlags ( Type  flags  )  [inline]

template<class Type>
void Flagged< Type >::ToggleFlags ( Type  flags  )  [inline]

template<class Type>
bool Flagged< Type >::IsFlags ( Type  flags  )  const [inline]

template<class Type>
bool Flagged< Type >::IsAnyFlag ( Type  flags  )  const [inline]


Member Data Documentation

template<typename Type>
Type Flagged< Type >::flags [private]

template<typename Type>
Type Flagged< Type >::all_flags = 0 [inline, static, private]


The documentation for this class was generated from the following file:
Generated on Sat Oct 20 14:47:31 2007 for Dark Oberon by  doxygen 1.5.3