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

#include <NullSocketCodeTable.hh>

Inheritance diagram for NullSocketCodeTable:
Inheritance graph
Collaboration diagram for NullSocketCodeTable:
Collaboration graph

Static Public Member Functions

static NullSocketCodeTableinstance ()
 

Private Member Functions

 NullSocketCodeTable ()
 
virtual ~NullSocketCodeTable ()
 

Static Private Attributes

static NullSocketCodeTable instance_
 The only instance. More...
 
static BinaryEncoding bem_
 The parent binary encoding. More...
 

Additional Inherited Members

- Public Member Functions inherited from SocketCodeTable
 SocketCodeTable (const std::string &name, BinaryEncoding &parent)
 
 SocketCodeTable (const ObjectState *state, BinaryEncoding &parent)
 
virtual ~SocketCodeTable ()
 
BinaryEncodingparent () const
 
std::string name () const
 
void setName (const std::string &name)
 
void setExtraBits (int bits)
 
int extraBits () const
 
int width () const
 
int maxCodeWidth () const
 
void addFUPortCode (FUPortCode &code)
 
void removeFUPortCode (FUPortCode &code)
 
int fuPortCodeCount () const
 
FUPortCodefuPortCode (int index) const
 
bool hasFUPortCode (const std::string &fu, const std::string &port) const
 
bool hasFUPortCode (const std::string &fu, const std::string &port, const std::string &operation) const
 
FUPortCodefuPortCode (const std::string &fu, const std::string &port) const
 
FUPortCodefuPortCode (const std::string &fu, const std::string &port, const std::string &operation) const
 
void addRFPortCode (RFPortCode &code)
 
void removeRFPortCode (RFPortCode &code)
 
int rfPortCodeCount () const
 
RFPortCoderfPortCode (int index) const
 
bool hasRFPortCode (const std::string &regFile) const
 
RFPortCoderfPortCode (const std::string &regFile) const
 
void addIUPortCode (IUPortCode &code)
 
void removeIUPortCode (IUPortCode &code)
 
int iuPortCodeCount () const
 
IUPortCodeiuPortCode (int index) const
 
bool hasIUPortCode (const std::string &immediateUnit) const
 
IUPortCodeiuPortCode (const std::string &immediateUnit) const
 
int portCodeCount () const
 
PortCodeportCode (int index) const
 
virtual void loadState (const ObjectState *state)
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 
- Static Public Attributes inherited from SocketCodeTable
static const std::string OSNAME_SOCKET_CODE_TABLE = "sc_table"
 ObjectState name for socket code table. More...
 
static const std::string OSKEY_NAME = "name"
 ObjectState attribute key for name of the table. More...
 
static const std::string OSKEY_EXTRA_BITS = "extra_bits"
 ObjectState attribute key for the number of extra bits. More...
 

Detailed Description

A null version of SocketCodeTable class.

Definition at line 41 of file NullSocketCodeTable.hh.

Constructor & Destructor Documentation

◆ NullSocketCodeTable()

NullSocketCodeTable::NullSocketCodeTable ( )
private

The constructor.

Definition at line 42 of file NullSocketCodeTable.cc.

42  : SocketCodeTable("NULL", bem_) {
43 }

◆ ~NullSocketCodeTable()

NullSocketCodeTable::~NullSocketCodeTable ( )
privatevirtual

The destructor.

Definition at line 49 of file NullSocketCodeTable.cc.

49  {
50 }

Member Function Documentation

◆ instance()

NullSocketCodeTable & NullSocketCodeTable::instance ( )
static

Returns the only instance of NullSocketCodeTable.

Returns
The only instance.

Definition at line 59 of file NullSocketCodeTable.cc.

59  {
60  return instance_;
61 }

References instance_.

Referenced by SocketEncoding::socketCodes(), BinaryEncoding::socketCodeTable(), and SocketEncoding::SocketEncoding().

Member Data Documentation

◆ bem_

BinaryEncoding NullSocketCodeTable::bem_
staticprivate

The parent binary encoding.

Definition at line 52 of file NullSocketCodeTable.hh.

◆ instance_

NullSocketCodeTable NullSocketCodeTable::instance_
staticprivate

The only instance.

Definition at line 50 of file NullSocketCodeTable.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
NullSocketCodeTable::instance_
static NullSocketCodeTable instance_
The only instance.
Definition: NullSocketCodeTable.hh:50
SocketCodeTable::SocketCodeTable
SocketCodeTable(const std::string &name, BinaryEncoding &parent)
Definition: SocketCodeTable.cc:68
NullSocketCodeTable::bem_
static BinaryEncoding bem_
The parent binary encoding.
Definition: NullSocketCodeTable.hh:52