#include "FUtils/FUTracker.h"
Go to the source code of this file.
Classes | |
class | FUParameterizable |
A trackable object which contains parameters. More... | |
Defines | |
#define | DeclareFlag(flag_name, local_position) |
Use the following macros to declare flags. | |
#define | DeclareFlagCount(count) |
Use the following macro to set the number of local flags declared by this class. |
|
Value: static const uint32 FLAG_##flag_name = (1 << (Parent::nextAvailableBit + local_position)); \ inline void Set##flag_name##Flag(bool value) { flags &= ~FLAG_##flag_name; flags |= FLAG_##flag_name * value; } \ inline void Set##flag_name##Flag() { flags |= FLAG_##flag_name; } \ inline void Reset##flag_name##Flag() { flags &= ~FLAG_##flag_name; } \ inline bool Get##flag_name##Flag() const { return (flags & FLAG_##flag_name) != 0; } This will create functions to get, set and clear the flag, and a public static variable: FLAG_(flag_name) to represent the flag mask.
|
|
Value: protected: \ static const uint32 nextAvailableBit = Parent::nextAvailableBit + count;
|