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

#include <NullDestinationField.hh>

Inheritance diagram for NullDestinationField:
Inheritance graph
Collaboration diagram for NullDestinationField:
Collaboration graph

Static Public Member Functions

static NullDestinationFieldinstance ()
 

Private Member Functions

 NullDestinationField ()
 
virtual ~NullDestinationField ()
 

Static Private Attributes

static NullDestinationField instance_
 The instance. 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 DestinationField
 DestinationField (BinaryEncoding::Position socketIDPos, MoveSlot &parent)
 
 DestinationField (const ObjectState *state, MoveSlot &parent)
 
virtual ~DestinationField ()
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from SlotField
virtual ~SlotField ()
 
MoveSlotparent () const
 
void addSocketEncoding (SocketEncoding &encoding)
 
void removeSocketEncoding (SocketEncoding &encoding)
 
int socketEncodingCount () const
 
SocketEncodingsocketEncoding (int index) const
 
bool hasSocketEncoding (const std::string &socket) const
 
SocketEncodingsocketEncoding (const std::string &socket) const
 
void setNoOperationEncoding (NOPEncoding &encoding)
 
void unsetNoOperationEncoding ()
 
bool hasNoOperationEncoding () const
 
NOPEncodingnoOperationEncoding () const
 
BinaryEncoding::Position componentIDPosition () const
 
virtual int width () const
 
virtual int childFieldCount () const
 
virtual InstructionFieldchildField (int position) const
 
virtual void loadState (const ObjectState *state)
 
- 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 DestinationField
static const std::string OSNAME_DESTINATION_FIELD = "dest_field"
 ObjectState name for destination field. More...
 
- Static Public Attributes inherited from SlotField
static const std::string OSNAME_SLOT_FIELD = "slot_field"
 ObjectState name for slot field. More...
 
static const std::string OSKEY_COMPONENT_ID_POSITION = "comp_id_pos"
 ObjectState attribute key for component ID position. 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 SlotField
 SlotField (BinaryEncoding::Position componentIDPos, MoveSlot &parent)
 
 SlotField (const ObjectState *state, MoveSlot &parent)
 
- 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 version of DestinationField class.

Definition at line 44 of file NullDestinationField.hh.

Constructor & Destructor Documentation

◆ NullDestinationField()

NullDestinationField::NullDestinationField ( )
private

The constructor.

Definition at line 44 of file NullDestinationField.cc.

◆ ~NullDestinationField()

NullDestinationField::~NullDestinationField ( )
privatevirtual

The destructor.

Definition at line 52 of file NullDestinationField.cc.

52  {
53 }

Member Function Documentation

◆ instance()

NullDestinationField & NullDestinationField::instance ( )
static

Returns the only instance of NullDestinationField.

Returns
The instance.

Definition at line 62 of file NullDestinationField.cc.

62  {
63  return instance_;
64 }

References instance_.

Referenced by MoveSlot::destinationField().

Member Data Documentation

◆ bem_

BinaryEncoding NullDestinationField::bem_
staticprivate

The parent binary encoding.

Definition at line 57 of file NullDestinationField.hh.

◆ instance_

NullDestinationField NullDestinationField::instance_
staticprivate

The instance.

Definition at line 53 of file NullDestinationField.hh.

Referenced by instance().

◆ moveSlot_

MoveSlot NullDestinationField::moveSlot_
staticprivate

The parent move slot.

Definition at line 55 of file NullDestinationField.hh.


The documentation for this class was generated from the following files:
NullDestinationField::moveSlot_
static MoveSlot moveSlot_
The parent move slot.
Definition: NullDestinationField.hh:55
BinaryEncoding::LEFT
@ LEFT
Definition: BinaryEncoding.hh:64
DestinationField::DestinationField
DestinationField(BinaryEncoding::Position socketIDPos, MoveSlot &parent)
Definition: DestinationField.cc:56
NullDestinationField::instance_
static NullDestinationField instance_
The instance.
Definition: NullDestinationField.hh:53