OpenASIP  2.0
Static Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
NullImmediateControlField Class Reference

#include <NullImmediateControlField.hh>

Inheritance diagram for NullImmediateControlField:
Inheritance graph
Collaboration diagram for NullImmediateControlField:
Collaboration graph

Static Public Member Functions

static NullImmediateControlFieldinstance ()
 

Private Member Functions

 NullImmediateControlField ()
 
virtual ~NullImmediateControlField ()
 

Static Private Attributes

static NullImmediateControlField field_
 The only instance. More...
 
static BinaryEncoding bem_
 The parent binary encoding. More...
 

Additional Inherited Members

- Public Member Functions inherited from ImmediateControlField
 ImmediateControlField (BinaryEncoding &parent)
 
 ImmediateControlField (const ObjectState *state, BinaryEncoding &parent)
 
virtual ~ImmediateControlField ()
 
BinaryEncodingparent () const
 
int templateCount () const
 
std::string instructionTemplate (int index) const
 
bool hasTemplateEncoding (const std::string &name) const
 
unsigned int templateEncoding (const std::string &name) const
 
void addTemplateEncoding (const std::string &name, unsigned int encoding)
 
void removeTemplateEncoding (const std::string &name)
 
virtual int width () const
 
virtual int childFieldCount () const
 
virtual InstructionFieldchildField (int) const
 
virtual void loadState (const ObjectState *state)
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from InstructionField
virtual ~InstructionField ()
 
InstructionFieldparent () const
 
int bitPosition () const
 
int relativePosition () const
 
virtual void setRelativePosition (int position)
 
void setExtraBits (int bits)
 
int extraBits () const
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
- Static Public Attributes inherited from ImmediateControlField
static const std::string OSNAME_IMM_CONTROL_FIELD = "ic_field"
 ObjectState name for immediate control field. More...
 
static const std::string OSNAME_TEMPLATE_MAP = "temp_map"
 ObjectState name for a template mapping. More...
 
static const std::string OSKEY_TEMPLATE_NAME = "temp_name"
 ObjectState attribute key for the name of the instruction template. More...
 
static const std::string OSKEY_ENCODING = "encoding"
 ObjectState attribute key for the encoding of the instruction template. More...
 
- Static Public Attributes inherited from InstructionField
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...
 
- Protected Member Functions inherited from InstructionField
 InstructionField (InstructionField *parent)
 
 InstructionField (const ObjectState *state, InstructionField *parent)
 
void setParent (InstructionField *parent)
 
- Static Protected Member Functions inherited from InstructionField
static void reorderSubfields (ObjectState *state)
 

Detailed Description

A null class of ImmediateControlField.

Definition at line 41 of file NullImmediateControlField.hh.

Constructor & Destructor Documentation

◆ NullImmediateControlField()

NullImmediateControlField::NullImmediateControlField ( )
private

The constructor.

Definition at line 42 of file NullImmediateControlField.cc.

42  :
44 }

◆ ~NullImmediateControlField()

NullImmediateControlField::~NullImmediateControlField ( )
privatevirtual

The destructor.

Definition at line 50 of file NullImmediateControlField.cc.

50  {
51 }

Member Function Documentation

◆ instance()

NullImmediateControlField & NullImmediateControlField::instance ( )
static

Returns the only instance of ImmediateControlField.

Definition at line 58 of file NullImmediateControlField.cc.

58  {
59  return field_;
60 }

References field_.

Referenced by BinaryEncoding::immediateControlField().

Member Data Documentation

◆ bem_

BinaryEncoding NullImmediateControlField::bem_
staticprivate

The parent binary encoding.

Definition at line 52 of file NullImmediateControlField.hh.

◆ field_

NullImmediateControlField NullImmediateControlField::field_
staticprivate

The only instance.

Definition at line 50 of file NullImmediateControlField.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
NullImmediateControlField::bem_
static BinaryEncoding bem_
The parent binary encoding.
Definition: NullImmediateControlField.hh:52
NullImmediateControlField::field_
static NullImmediateControlField field_
The only instance.
Definition: NullImmediateControlField.hh:50
ImmediateControlField::ImmediateControlField
ImmediateControlField(BinaryEncoding &parent)
Definition: ImmediateControlField.cc:61