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 | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions
MFM::P0Atom< PC > Class Template Reference
Inheritance diagram for MFM::P0Atom< PC >:
MFM::Atom< CoreConfig< P0Atom< PC >, PC > >

Public Types

enum  { ATOM_CATEGORY = 0, ATOM_FIRST_STATE_BIT = 0 }
 

Public Member Functions

bool IsSaneImpl () const
 
bool HasBeenRepairedImpl ()
 
u32 GetTypeImpl () const
 
u32 GetStateField (u32 stateIndex, u32 stateWidth) const
 
void SetStateField (u32 stateIndex, u32 stateWidth, u32 value)
 
void WriteStateBitsImpl (ByteSink &ostream) const
 
void ReadStateBitsImpl (const char *stateStr)
 
void ReadStateBitsImpl (const BitVector< BITS > &bv)
 
 P0Atom (u32 type=0, u32 longc=0, u32 shortc=0, u32 statec=0)
 
void InitAtom (u32 type, u32 longc, u32 shortc, u32 statec)
 
void PrintBits (ByteSink &ostream) const
 
void PrintImpl (ByteSink &ostream) const
 
P0Atomoperator= (const P0Atom &rhs)
 
- Public Member Functions inherited from MFM::Atom< CoreConfig< P0Atom< PC >, PC > >
bool IsSane () const
 
bool HasBeenRepaired ()
 
u32 GetType () const
 
void Print (ByteSink &ostream) const
 
void WriteStateBits (ByteSink &ostream) const
 
void ReadStateBits (const char *hexStr)
 
void ReadStateBits (const BitVector< BPA > &bv)
 
void WriteBits (ByteSink &ostream) const
 
void ReadBits (const char *hexStr)
 
void XRay (Random &rand, u32 bitOdds)
 
bool operator== (const Atom &rhs) const
 
bool operator!= (const Atom &rhs) const
 

Static Public Member Functions

static u32 GetMaxStateSize (u32 lengthCode)
 
- Static Public Member Functions inherited from MFM::Atom< CoreConfig< P0Atom< PC >, PC > >
static bool IsType (const T &atom, u32 type)
 
static bool IsSameType (const T &atom, const T &other)
 

Protected Member Functions

void SetType (u32 lengthCode, u32 type)
 
u32 GetLengthCodeForType (u32 type)
 
u32 EndStateBit () const
 

Static Protected Member Functions

static u32 EndStateBit (u32 lengthCode)
 

Additional Inherited Members

- Protected Attributes inherited from MFM::Atom< CoreConfig< P0Atom< PC >, PC > >
BitVector< BPA > m_bits
 

Member Function Documentation

template<class PC >
u32 MFM::P0Atom< PC >::EndStateBit ( ) const
inlineprotected

Index of first bit that isn't a state bit.

template<class PC >
u32 MFM::P0Atom< PC >::GetStateField ( u32  stateIndex,
u32  stateWidth 
) const
inline

Read stateWidth state bits starting at stateIndex, which counts toward the right with 0 meaning the leftmost state bit.

template<class PC >
void MFM::P0Atom< PC >::SetStateField ( u32  stateIndex,
u32  stateWidth,
u32  value 
)
inline

Store value into stateWidth state bits starting at stateIndex, which counts toward the right with 0 meaning the leftmost state bit.


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