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

#include <NullImmediateEncoding.hh>

Inheritance diagram for NullImmediateEncoding:
Inheritance graph
Collaboration diagram for NullImmediateEncoding:
Collaboration graph

Static Public Member Functions

static NullImmediateEncodinginstance ()
 

Private Member Functions

 NullImmediateEncoding ()
 
virtual ~NullImmediateEncoding ()
 

Static Private Attributes

static NullImmediateEncoding instance_
 The only instance. More...
 
static SourceField sourceField_
 The parent source field. More...
 
static MoveSlot moveSlot_
 The parent move slot. More...
 
static BinaryEncoding bem_
 The parent binary encoding. More...
 

Additional Inherited Members

- Public Member Functions inherited from ImmediateEncoding
 ImmediateEncoding (unsigned int encoding, unsigned int extraBits, int immediateWidth, SourceField &parent)
 
 ImmediateEncoding (const ObjectState *state, SourceField &parent)
 
virtual ~ImmediateEncoding ()
 
SourceFieldparent () const
 
int immediateWidth () const
 
int encodingWidth () const
 
int encodingPosition () const
 
int immediatePosition () const
 
virtual int bitPosition () const
 
virtual int width () const
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from Encoding
virtual ~Encoding ()
 
InstructionFieldparent () const
 
unsigned int encoding () const
 
unsigned int extraBits () const
 
- Static Public Attributes inherited from ImmediateEncoding
static const std::string OSNAME_IMM_ENCODING = "imm_encoding"
 ObjectState name for immediate encoding. More...
 
static const std::string OSKEY_IMM_WIDTH = "imm_width"
 ObjectState attribute key for the immediate width. More...
 
- Static Public Attributes inherited from Encoding
static const std::string OSNAME_ENCODING = "encoding"
 ObjectState name for Encoding class. More...
 
static const std::string OSKEY_ENCODING = "encoding"
 ObjectState attribute key for the encoding. More...
 
static const std::string OSKEY_EXTRA_BITS = "extra_bits"
 ObjectState attribute key for the number of extra bits. More...
 
- Protected Member Functions inherited from Encoding
 Encoding (unsigned int encoding, unsigned int extraBits, InstructionField *parent)
 
 Encoding (const ObjectState *state, InstructionField *parent)
 
void setParent (InstructionField *parent)
 
void setEncoding (unsigned int encoding, unsigned int extraBits)
 

Detailed Description

A null version of ImmediateEncoding class.

Definition at line 44 of file NullImmediateEncoding.hh.

Constructor & Destructor Documentation

◆ NullImmediateEncoding()

NullImmediateEncoding::NullImmediateEncoding ( )
private

The constructor.

Definition at line 47 of file NullImmediateEncoding.cc.

47  :
49 }

◆ ~NullImmediateEncoding()

NullImmediateEncoding::~NullImmediateEncoding ( )
privatevirtual

The destructor.

Definition at line 55 of file NullImmediateEncoding.cc.

55  {
56 }

Member Function Documentation

◆ instance()

NullImmediateEncoding & NullImmediateEncoding::instance ( )
static

Returns the only instance of NullImmediateEncoding.

Returns
The instance.

Definition at line 65 of file NullImmediateEncoding.cc.

65  {
66  return instance_;
67 }

References instance_.

Referenced by CodeCompressorPlugin::encodeImmediateTerminal(), and SourceField::immediateEncoding().

Member Data Documentation

◆ bem_

BinaryEncoding NullImmediateEncoding::bem_
staticprivate

The parent binary encoding.

Definition at line 59 of file NullImmediateEncoding.hh.

◆ instance_

NullImmediateEncoding NullImmediateEncoding::instance_
staticprivate

The only instance.

Definition at line 53 of file NullImmediateEncoding.hh.

Referenced by instance().

◆ moveSlot_

MoveSlot NullImmediateEncoding::moveSlot_
staticprivate

The parent move slot.

Definition at line 57 of file NullImmediateEncoding.hh.

◆ sourceField_

SourceField NullImmediateEncoding::sourceField_
staticprivate

The parent source field.

Definition at line 55 of file NullImmediateEncoding.hh.


The documentation for this class was generated from the following files:
NullImmediateEncoding::sourceField_
static SourceField sourceField_
The parent source field.
Definition: NullImmediateEncoding.hh:55
NullImmediateEncoding::instance_
static NullImmediateEncoding instance_
The only instance.
Definition: NullImmediateEncoding.hh:53
ImmediateEncoding::ImmediateEncoding
ImmediateEncoding(unsigned int encoding, unsigned int extraBits, int immediateWidth, SourceField &parent)
Definition: ImmediateEncoding.cc:60