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