CFlagSet< EnumT > Class Template Reference

Enum dependent bit flags. More...

#include <flagSet.h>

List of all members.

Public Member Functions

Set/Reset methods
void set (EnumT eFlag)
 
Parameters:
eFlag Bit flag to be set

void reset (EnumT eFlag)
 
Parameters:
eFlag Bit flag to be reset

void clear ()
 Clear all flags.
Check methods
bool check (EnumT eFlag) const
 
Returns:
true if the flag given is set, otherwise false

bool check (const CFlagSet< EnumT > &flagSet) const
 
Returns:
true if the all the flags in the set passed in are set in this flagset, otherwise false

bool is_any () const
 
Returns:
true if any flag is set

int get_int () const
 
Returns:
An INT with the flag values (used for debugging)


Detailed Description

template<class EnumT>
class CFlagSet< EnumT >

Enum dependent bit flags.

Note:
Limited to 32 flags (for size and speed)
(c) 2007-2008 oP group Germany GbR. All rights reserved.
This source code is provided "as is" with no warranty and must not be distributed without written permission.
Author:
Doug Poston
Version:
1.3
Date:
12/28/2007

The documentation for this class was generated from the following file:
Generated on Fri Dec 28 12:55:07 2007 for template7 by  doxygen 1.5.4