Go to the documentation of this file.
33 #ifndef TTA_INSTRUCTION_FIELD_HH
34 #define TTA_INSTRUCTION_FIELD_HH
60 virtual int width()
const = 0;
static const std::string OSKEY_POSITION
ObjectState attribute key for the relative position of the field.
virtual InstructionField & childField(int position) const
int relativePos_
Indicates the relative position of the field.
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
virtual ObjectState * saveState() const
virtual int width() const =0
void setParent(InstructionField *parent)
InstructionField * parent() const
static void reorderSubfields(ObjectState *state)
static const std::string OSNAME_INSTRUCTION_FIELD
ObjectState name for instruction field.
void setExtraBits(int bits)
virtual int childFieldCount() const =0
virtual void loadState(const ObjectState *state)
int relativePosition() const
InstructionField * parent_
The parent instruction field.
InstructionField(InstructionField *parent)
int extraBits_
The number of extra bits.
virtual void setRelativePosition(int position)
virtual ~InstructionField()