MFMv2.0.10
Movable Feast Machine Simulator 2.0.10
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Friends
MFM::ElementParameter< CC > Class Template Reference
Inheritance diagram for MFM::ElementParameter< CC >:
MFM::Parameter< CC > MFM::ByteSerializable MFM::ElementParameterBits< CC, SITES > MFM::ElementParameterBits< CC, LENGTH > MFM::ElementParameterBool< CC > MFM::ElementParameterS32< CC > MFM::ElementParameterU32< CC > MFM::ElementParameterNeighborhood< CC, SITES >

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
 
- Public Types inherited from MFM::ByteSerializable
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)
 
ElementParameterGetNextParameter ()
 
const ElementParameterGetNextParameter () 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
 
- Public Member Functions inherited from MFM::Parameter< CC >
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 VDGetVD () const
 
const char * GetTag () const
 
const char * GetName () const
 
const char * GetDescription () const
 
- Public Member Functions inherited from MFM::ByteSerializable
virtual Result ReadFrom (ByteSource &byteSource, s32 argument=0)=0
 
virtual Result PrintTo (ByteSink &byteSink, s32 argument=0)=0
 

Friends

class Parameters< ElementParameter< CC > >
 

The documentation for this class was generated from the following files: