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

#include <NullRFPortCode.hh>

Inheritance diagram for NullRFPortCode:
Inheritance graph
Collaboration diagram for NullRFPortCode:
Collaboration graph

Static Public Member Functions

static NullRFPortCodeinstance ()
 

Private Member Functions

 NullRFPortCode ()
 
virtual ~NullRFPortCode ()
 

Static Private Attributes

static NullRFPortCode instance_
 The only instance. More...
 
static SocketCodeTable socketCodes_
 The parent socket code table. More...
 
static BinaryEncoding bem_
 The parent binary encoding. More...
 

Additional Inherited Members

- Public Member Functions inherited from RFPortCode
 RFPortCode (const std::string &regFile, unsigned int encoding, unsigned int extraBits, int indexWidth, SocketCodeTable &parent)
 
 RFPortCode (const std::string &regFile, int indexWidth, SocketCodeTable &parent)
 
 RFPortCode (const ObjectState *state, SocketCodeTable &parent)
 
virtual ~RFPortCode ()
 
virtual ObjectStatesaveState () const
 
- Public Member Functions inherited from PortCode
virtual ~PortCode ()
 
std::string unitName () const
 
bool hasEncoding () const
 
unsigned int encoding () const
 
unsigned int extraBits () const
 
int width () const
 
int encodingWidth () const
 
int indexWidth () const
 
void setMaxIndex (unsigned regIndex)
 
bool isMaxIndexSet () const
 
unsigned maxIndex () const
 
SocketCodeTableparent () const
 
- Static Public Attributes inherited from RFPortCode
static const std::string OSNAME_RF_PORT_CODE = "rf_port_code"
 ObjectState name for RF port code. More...
 
- Static Public Attributes inherited from PortCode
static const std::string OSNAME_PORT_CODE = "port_code"
 ObjectState name for PortCode. More...
 
static const std::string OSKEY_UNIT_NAME = "unit_name"
 ObjectState attribute key for the name of the unit. 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...
 
static const std::string OSKEY_INDEX_WIDTH = "index_width"
 ObjectState attribute key for the widht of register index. More...
 
static const std::string OSKEY_MAX_INDEX = "max-index"
 ObjectState attribute key for the max-index attribute. More...
 
- Protected Member Functions inherited from PortCode
 PortCode (const std::string &unitName, unsigned int encoding, unsigned int extraBits, int indexWidth)
 
 PortCode (const std::string &unitName, int indexWidth)
 
 PortCode (const ObjectState *state)
 
void setParent (SocketCodeTable *parent)
 

Detailed Description

A null version of RFPortCode class.

Definition at line 44 of file NullRFPortCode.hh.

Constructor & Destructor Documentation

◆ NullRFPortCode()

NullRFPortCode::NullRFPortCode ( )
private

The constructor.

Definition at line 44 of file NullRFPortCode.cc.

44  :
45  RFPortCode("NULL", 0, 0, 0, socketCodes_) {
46 }

◆ ~NullRFPortCode()

NullRFPortCode::~NullRFPortCode ( )
privatevirtual

The destructor.

Definition at line 52 of file NullRFPortCode.cc.

52  {
53 }

Member Function Documentation

◆ instance()

NullRFPortCode & NullRFPortCode::instance ( )
static

Returns the only instance of NullRFPortCode.

Returns
The only instance.

Definition at line 62 of file NullRFPortCode.cc.

62  {
63  return instance_;
64 }

References instance_.

Referenced by SocketCodeTable::hasRFPortCode(), and SocketCodeTable::rfPortCode().

Member Data Documentation

◆ bem_

BinaryEncoding NullRFPortCode::bem_
staticprivate

The parent binary encoding.

Definition at line 57 of file NullRFPortCode.hh.

◆ instance_

NullRFPortCode NullRFPortCode::instance_
staticprivate

The only instance.

Definition at line 53 of file NullRFPortCode.hh.

Referenced by instance().

◆ socketCodes_

SocketCodeTable NullRFPortCode::socketCodes_
staticprivate

The parent socket code table.

Definition at line 55 of file NullRFPortCode.hh.


The documentation for this class was generated from the following files:
NullRFPortCode::instance_
static NullRFPortCode instance_
The only instance.
Definition: NullRFPortCode.hh:53
RFPortCode::RFPortCode
RFPortCode(const std::string &regFile, unsigned int encoding, unsigned int extraBits, int indexWidth, SocketCodeTable &parent)
Definition: RFPortCode.cc:60
NullRFPortCode::socketCodes_
static SocketCodeTable socketCodes_
The parent socket code table.
Definition: NullRFPortCode.hh:55