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

#include <NullIUPortCode.hh>

Inheritance diagram for NullIUPortCode:
Inheritance graph
Collaboration diagram for NullIUPortCode:
Collaboration graph

Static Public Member Functions

static NullIUPortCodeinstance ()
 

Private Member Functions

 NullIUPortCode ()
 
virtual ~NullIUPortCode ()
 

Static Private Attributes

static NullIUPortCode 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 IUPortCode
 IUPortCode (const std::string &immediateUnit, unsigned int encoding, unsigned int extraBits, int indexWidth, SocketCodeTable &parent)
 
 IUPortCode (const std::string &immediateUnit, int indexWidth, SocketCodeTable &parent)
 
 IUPortCode (const ObjectState *state, SocketCodeTable &parent)
 
virtual ~IUPortCode ()
 
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 IUPortCode
static const std::string OSNAME_IU_PORT_CODE = "iu_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 IUPortCode class.

Definition at line 44 of file NullIUPortCode.hh.

Constructor & Destructor Documentation

◆ NullIUPortCode()

NullIUPortCode::NullIUPortCode ( )
private

The constructor.

Definition at line 44 of file NullIUPortCode.cc.

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

◆ ~NullIUPortCode()

NullIUPortCode::~NullIUPortCode ( )
privatevirtual

The destructor.

Definition at line 52 of file NullIUPortCode.cc.

52  {
53 }

Member Function Documentation

◆ instance()

NullIUPortCode & NullIUPortCode::instance ( )
static

Returns the only instance of NullIUPortCode.

Returns
The only instance.

Definition at line 62 of file NullIUPortCode.cc.

62  {
63  return instance_;
64 }

References instance_.

Referenced by SocketCodeTable::hasIUPortCode(), and SocketCodeTable::iuPortCode().

Member Data Documentation

◆ bem_

BinaryEncoding NullIUPortCode::bem_
staticprivate

The parent binary encoding.

Definition at line 57 of file NullIUPortCode.hh.

◆ instance_

NullIUPortCode NullIUPortCode::instance_
staticprivate

The only instance.

Definition at line 53 of file NullIUPortCode.hh.

Referenced by instance().

◆ socketCodes_

SocketCodeTable NullIUPortCode::socketCodes_
staticprivate

The parent socket code table.

Definition at line 55 of file NullIUPortCode.hh.


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