Go to the documentation of this file.
33 #ifndef TTA_ENCODING_HH
34 #define TTA_ENCODING_HH
54 virtual int width()
const;
static const std::string OSNAME_ENCODING
ObjectState name for Encoding class.
void setEncoding(unsigned int encoding, unsigned int extraBits)
void setParent(InstructionField *parent)
InstructionField * parent() const
virtual int width() const
static const std::string OSKEY_ENCODING
ObjectState attribute key for the encoding.
unsigned int encoding() const
static const std::string OSKEY_EXTRA_BITS
ObjectState attribute key for the number of extra bits.
virtual ObjectState * saveState() const
Encoding(unsigned int encoding, unsigned int extraBits, InstructionField *parent)
InstructionField * parent_
The parent instruction field.
unsigned int encoding_
The encoding.
unsigned int extraBits_
The number of extra bits.
virtual int bitPosition() const =0
unsigned int extraBits() const