MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
|
Public Types | |
typedef BitVector< BPA > | BV |
typedef BitField< BV, VD::U32, PARM_LENGTH, START_POS > | FieldU32 |
typedef BitField< BV, VD::S32, PARM_LENGTH, START_POS > | FieldS32 |
typedef BitField< BV, VD::BOOL, PARM_LENGTH, START_POS > | FieldBool |
typedef BitField< BV, VD::UNARY, PARM_LENGTH, START_POS > | FieldUnary |
typedef BitField< BV, VD::BITS, LONG_PARM_LENGTH, LONG_START_POS > | FieldBits |
![]() | |
enum | Result { UNSUPPORTED = -1, FAILURE = 0, SUCCESS = 1 } |
Public Member Functions | |
const T & | GetAtom () const |
T & | GetAtom () |
void | PrintValue (ByteSink &bs) |
virtual bool | ReadValue (ByteSource &bs) |
ElementParameter * | GetNextParameter () |
const ElementParameter * | GetNextParameter () const |
ElementParameter (Element< CC > *elt, u32 type, const char *tag, const char *name, const char *description, s32 min, s32 vdef, s32 max) | |
ElementParameter (Element< CC > *elt, u32 type, const char *tag, const char *name, const char *description, u64 vdef) | |
s32 | GetBitsAsS32 () const |
Un-type-checked access treating all bit fields as s32. | |
void | SetBitsAsS32 (const s32 val) |
u64 | GetBitsAsU64 () const |
void | SetBitsAsU64 (const u64 val) |
virtual void | Reset () |
u32 | GetValueU32 () const |
u32 value | |
void | SetValueU32 (const u32 val) |
s32 | GetValueS32 () const |
s32 value | |
void | SetValueS32 (const s32 val) |
bool | GetValueBool () const |
bool value | |
void | SetValueBool (const bool val) |
u32 | GetValueUnary () const |
unary value | |
void | SetValueUnary (const u32 val) const |
u64 | GetValueBits () const |
bits value | |
void | SetValueBits (const u64 val) const |
![]() | |
u32 | GetType () const |
s32 | GetMin () const |
s32 | GetDefault () const |
s32 | GetMax () const |
u32 | GetRange () const |
u32 | MapValue (u32 max, s32 val) const |
virtual void | Print (ByteSink &bs) |
void | PrintValue (ByteSink &bs, const T &atom) |
virtual bool | ReadValue (ByteSource &bs, T &atom) |
s32 | GetBitsAsS32 (const T &atom) const |
Un-type-checked access treating all bit fields as s32. | |
void | SetBitsAsS32 (T &atom, const s32 val) const |
u64 | GetBitsAsU64 (const T &atom) const |
Un-type-checked access treating all bit fields as u64. | |
void | SetBitsAsU64 (T &atom, const u64 val) const |
bool | LoadU32 (const T &atom, u32 &store) const |
Routines to (attempt to) apply this parameter to any given atom. More... | |
void | StoreU32 (T &atom, const u32 val) const |
bool | LoadS32 (const T &atom, s32 &store) const |
s32 value | |
void | StoreS32 (T &atom, const s32 val) const |
bool | LoadBool (const T &atom, bool &store) const |
bool value | |
void | StoreBool (T &atom, const bool val) const |
bool | LoadUnary (const T &atom, u32 &store) const |
unary value | |
void | StoreUnary (T &atom, const u32 val) const |
Parameter (const VD &vd, const char *tag, const char *name, const char *description) | |
const VD & | GetVD () const |
const char * | GetTag () const |
const char * | GetName () const |
const char * | GetDescription () const |
![]() | |
virtual Result | ReadFrom (ByteSource &byteSource, s32 argument=0)=0 |
virtual Result | PrintTo (ByteSink &byteSink, s32 argument=0)=0 |
Friends | |
class | Parameters< ElementParameter< CC > > |