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

#include <NullFUPortCode.hh>

Inheritance diagram for NullFUPortCode:
Inheritance graph
Collaboration diagram for NullFUPortCode:
Collaboration graph

Static Public Member Functions

static NullFUPortCodeinstance ()
 

Private Member Functions

 NullFUPortCode ()
 
virtual ~NullFUPortCode ()
 

Static Private Attributes

static NullFUPortCode 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 FUPortCode
 FUPortCode (const std::string &fu, const std::string &port, unsigned int encoding, unsigned int extraBits, SocketCodeTable &parent)
 
 FUPortCode (const std::string &fu, const std::string &port, const std::string &operation, unsigned int encoding, unsigned int extraBits, SocketCodeTable &parent)
 
 FUPortCode (const ObjectState *state, SocketCodeTable &parent)
 
virtual ~FUPortCode ()
 
std::string portName () const
 
std::string operationName () const
 
bool hasOperation () const
 
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 FUPortCode
static const std::string OSNAME_FU_PORT_CODE = "fu_port_code"
 ObjectState name for FU port code. More...
 
static const std::string OSKEY_PORT_NAME = "port"
 ObjectState attribute key for the name of the port. More...
 
static const std::string OSKEY_OPERATION_NAME = "operation"
 ObjectState attribute key for the name of the operation. 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 FUPortCode class.

Definition at line 44 of file NullFUPortCode.hh.

Constructor & Destructor Documentation

◆ NullFUPortCode()

NullFUPortCode::NullFUPortCode ( )
private

The constructor.

Definition at line 44 of file NullFUPortCode.cc.

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

◆ ~NullFUPortCode()

NullFUPortCode::~NullFUPortCode ( )
privatevirtual

The destructor.

Definition at line 52 of file NullFUPortCode.cc.

52  {
53 }

Member Function Documentation

◆ instance()

NullFUPortCode & NullFUPortCode::instance ( )
static

Returns the only instance of NullFUPortCode.

Returns
The only instance.

Definition at line 62 of file NullFUPortCode.cc.

62  {
63  return instance_;
64 }

References instance_.

Referenced by SocketCodeTable::fuPortCode(), and SocketCodeTable::hasFUPortCode().

Member Data Documentation

◆ bem_

BinaryEncoding NullFUPortCode::bem_
staticprivate

The parent binary encoding.

Definition at line 57 of file NullFUPortCode.hh.

◆ instance_

NullFUPortCode NullFUPortCode::instance_
staticprivate

The only instance.

Definition at line 53 of file NullFUPortCode.hh.

Referenced by instance().

◆ socketCodes_

SocketCodeTable NullFUPortCode::socketCodes_
staticprivate

The parent socket code table.

Definition at line 55 of file NullFUPortCode.hh.


The documentation for this class was generated from the following files:
NullFUPortCode::socketCodes_
static SocketCodeTable socketCodes_
The parent socket code table.
Definition: NullFUPortCode.hh:55
FUPortCode::FUPortCode
FUPortCode(const std::string &fu, const std::string &port, unsigned int encoding, unsigned int extraBits, SocketCodeTable &parent)
Definition: FUPortCode.cc:62
NullFUPortCode::instance_
static NullFUPortCode instance_
The only instance.
Definition: NullFUPortCode.hh:53