#include <math.h>
A container class that holds a boolean and a float value.
Can be used to to enable/disable the usage of the float value. Typically represented by a checkbox and a slider below that where the state of the checkbox enables or disables the slider.
Public Member Functions | |
CheckableFloat (void) | |
CheckableFloat (bool bState, float fValue) | |
void | SetValue (float f) |
Sets the associated float value. More... | |
float | Value (void) const |
Retrieves the associated float value. More... | |
void | SetState (bool b) |
Sets the associated boolean value. More... | |
bool | State (void) const |
Retrieves the associated boolean value. More... | |
bool | operator== (const CheckableFloat &cf) const throw () |
bool | operator!= (const CheckableFloat &cf) const throw () |
CheckableFloat & | operator= (const CheckableFloat &cf) |
void | Serialize (Stream &s) |
Protected Attributes | |
bool | m_bState |
float | m_fValue |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
Definition at line 1640 of file math.h.
|
inline |
Definition at line 1641 of file math.h.
|
inline |