OpenASIP
2.0
|
#include <NullInstructionField.hh>
Public Member Functions | |
virtual int | childFieldCount () const |
virtual InstructionField & | childField (int position) const |
virtual int | width () const |
![]() | |
virtual | ~InstructionField () |
InstructionField * | parent () const |
int | bitPosition () const |
int | relativePosition () const |
virtual void | setRelativePosition (int position) |
void | setExtraBits (int bits) |
int | extraBits () const |
virtual void | loadState (const ObjectState *state) |
virtual ObjectState * | saveState () const |
![]() | |
virtual | ~Serializable () |
Static Public Member Functions | |
static NullInstructionField & | instance () |
Private Member Functions | |
NullInstructionField () | |
virtual | ~NullInstructionField () |
Static Private Attributes | |
static NullInstructionField | instance_ |
The only instance. More... | |
Additional Inherited Members | |
![]() | |
static const std::string | OSNAME_INSTRUCTION_FIELD = "instr_field" |
ObjectState name for instruction field. More... | |
static const std::string | OSKEY_EXTRA_BITS = "extra_bits" |
ObjectState attribute key for the number of extra bits. More... | |
static const std::string | OSKEY_POSITION = "position" |
ObjectState attribute key for the relative position of the field. More... | |
![]() | |
InstructionField (InstructionField *parent) | |
InstructionField (const ObjectState *state, InstructionField *parent) | |
void | setParent (InstructionField *parent) |
![]() | |
static void | reorderSubfields (ObjectState *state) |
A null version of instruction field.
Definition at line 41 of file NullInstructionField.hh.
|
private |
|
privatevirtual |
|
virtual |
Always throws OutOfRange exception.
OutOfRange | Always thrown. |
Reimplemented from InstructionField.
Definition at line 85 of file NullInstructionField.cc.
|
virtual |
Always returns 0.
Implements InstructionField.
Definition at line 73 of file NullInstructionField.cc.
|
static |
Returns the only instance of NullInstructionField.
Definition at line 62 of file NullInstructionField.cc.
References instance_.
Referenced by InstructionField::childField(), MoveSlot::childField(), BinaryEncoding::childField(), and InstructionField::setRelativePosition().
|
virtual |
Always returns 0.
Implements InstructionField.
Definition at line 96 of file NullInstructionField.cc.
|
staticprivate |