- Main Page
- Modules
- Namespaces
- Classes
- Files
- Related Pages

- File List
- File Members

# FUtils/FUParameterizable.h File Reference

This file contains the FUParameterizable class. More...

`#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.

## Detailed Description

This file contains the FUParameterizable class.

## Define Documentation

#define DeclareFlag | ( | flag_name,
|  | local_position |  | ) |

| 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; }
  Use the following macros to declare flags. This will create functions to get, set and clear the flag, and a public static variable: FLAG_(flag_name) to represent the flag mask. Parameters:
  | flag_name | The unique name of the flag.
  | local_position | The local offset for this flag.

#define DeclareFlagCount | ( | count |  | ) |

| Value:
    protected: \
        static const uint32 nextAvailableBit = Parent::nextAvailableBit + count;
  Use the following macro to set the number of local flags declared by this class. Parameters:
  | count | The number of local flags declared by this class.