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

#include <NullSocketEncoding.hh>

Inheritance diagram for NullSocketEncoding:
Inheritance graph
Collaboration diagram for NullSocketEncoding:
Collaboration graph

Static Public Member Functions

static NullSocketEncodinginstance ()
 

Private Member Functions

 NullSocketEncoding ()
 
virtual ~NullSocketEncoding ()
 

Static Private Attributes

static NullSocketEncoding 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 SocketEncoding
 SocketEncoding (const std::string &name, unsigned int encoding, unsigned int extraBits, SlotField &parent)
 
 SocketEncoding (const ObjectState *state, SlotField &parent)
 
virtual ~SocketEncoding ()
 
SlotFieldparent () const
 
std::string socketName () const
 
void setSocketCodes (SocketCodeTable &codeTable)
 
void unsetSocketCodes ()
 
bool hasSocketCodes () const
 
SocketCodeTablesocketCodes () const
 
int socketCodePosition () const
 
void setEncoding (unsigned int encoding, unsigned int extraBits)
 
int socketIDPosition () const
 
int socketIDWidth () const
 
virtual int width () const
 
virtual int bitPosition () 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 SocketEncoding
static const std::string OSNAME_SOCKET_ENCODING = "socket_encoding"
 ObjectState name for socket encoding. More...
 
static const std::string OSKEY_SOCKET_NAME = "socket_name"
 ObjectState attribute key for the name of the socket. More...
 
static const std::string OSKEY_SC_TABLE = "sc_table"
 ObjectState attribute key for the name of the socket code table. 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 SocketEncoding class.

Definition at line 45 of file NullSocketEncoding.hh.

Constructor & Destructor Documentation

◆ NullSocketEncoding()

NullSocketEncoding::NullSocketEncoding ( )
private

The constructor.

Definition at line 47 of file NullSocketEncoding.cc.

47  :
48  SocketEncoding("NULL", 0, 0, sourceField_) {
49 }

◆ ~NullSocketEncoding()

NullSocketEncoding::~NullSocketEncoding ( )
privatevirtual

The destructor.

Definition at line 55 of file NullSocketEncoding.cc.

55  {
56 }

Member Function Documentation

◆ instance()

NullSocketEncoding & NullSocketEncoding::instance ( )
static

Returns the instance of NullSocketEncoding.

Returns
The only instance.

Definition at line 65 of file NullSocketEncoding.cc.

65  {
66  return instance_;
67 }

References instance_.

Referenced by SlotField::socketEncoding().

Member Data Documentation

◆ bem_

BinaryEncoding NullSocketEncoding::bem_
staticprivate

The parent binary encoding.

Definition at line 60 of file NullSocketEncoding.hh.

◆ instance_

NullSocketEncoding NullSocketEncoding::instance_
staticprivate

The only instance.

Definition at line 54 of file NullSocketEncoding.hh.

Referenced by instance().

◆ moveSlot_

MoveSlot NullSocketEncoding::moveSlot_
staticprivate

The parent move slot.

Definition at line 58 of file NullSocketEncoding.hh.

◆ sourceField_

SourceField NullSocketEncoding::sourceField_
staticprivate

The parent source field.

Definition at line 56 of file NullSocketEncoding.hh.


The documentation for this class was generated from the following files:
NullSocketEncoding::sourceField_
static SourceField sourceField_
The parent source field.
Definition: NullSocketEncoding.hh:56
NullSocketEncoding::instance_
static NullSocketEncoding instance_
The only instance.
Definition: NullSocketEncoding.hh:54
SocketEncoding::SocketEncoding
SocketEncoding(const std::string &name, unsigned int encoding, unsigned int extraBits, SlotField &parent)
Definition: SocketEncoding.cc:66