OpenASIP  2.0
Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Private Attributes | List of all members
IDF::NullUnitImplementationLocation Class Reference

#include <NullUnitImplementationLocation.hh>

Inheritance diagram for IDF::NullUnitImplementationLocation:
Inheritance graph
Collaboration diagram for IDF::NullUnitImplementationLocation:
Collaboration graph

Public Member Functions

virtual std::string hdbFile () const
 
virtual int id () const
 
virtual std::string unitName () const
 
virtual void setParent (MachineImplementation &parent)
 
- Public Member Functions inherited from IDF::UnitImplementationLocation
 UnitImplementationLocation (const std::string &hdbFile, int id, const std::string &unitName)
 
 UnitImplementationLocation (const ObjectState *state)
 
virtual ~UnitImplementationLocation ()
 
std::string hdbFileOriginal () const
 
virtual void setID (int id)
 
virtual void setHDBFile (std::string file)
 
void loadState (const ObjectState *state)
 
ObjectStatesaveState () const
 
- Public Member Functions inherited from Serializable
virtual ~Serializable ()
 

Static Public Member Functions

static NullUnitImplementationLocationinstance ()
 

Protected Member Functions

 NullUnitImplementationLocation ()
 
virtual ~NullUnitImplementationLocation ()
 

Static Private Attributes

static NullUnitImplementationLocation instance_
 

Additional Inherited Members

- Static Public Attributes inherited from IDF::UnitImplementationLocation
static const std::string OSNAME_UNIT_IMPLEMENTATION
 ObjectState name for unit implementation. More...
 
static const std::string OSKEY_HDB_FILE = "hdb_file"
 ObjectState attribute key for the name of the HDB file. More...
 
static const std::string OSKEY_ID = "id"
 ObjectState attribute key for the entry ID. More...
 
static const std::string OSKEY_UNIT_NAME = "unit_name"
 Objectstate attribute key for the name of the unit. More...
 

Detailed Description

Indicates what implementation of a unit is used.

A null class that indicates of unset location of implementation or no implementation available.

Definition at line 47 of file NullUnitImplementationLocation.hh.

Constructor & Destructor Documentation

◆ NullUnitImplementationLocation()

IDF::NullUnitImplementationLocation::NullUnitImplementationLocation ( )
protected

The constructor.

Definition at line 47 of file NullUnitImplementationLocation.cc.

47  :
48  UnitImplementationLocation("", 0, "") {
49 }

◆ ~NullUnitImplementationLocation()

IDF::NullUnitImplementationLocation::~NullUnitImplementationLocation ( )
protectedvirtual

The destructor.

Definition at line 55 of file NullUnitImplementationLocation.cc.

55  {
56 }

Member Function Documentation

◆ hdbFile()

std::string IDF::NullUnitImplementationLocation::hdbFile ( ) const
virtual

Aborts the program with error message.

Returns
Never returns.

Reimplemented from IDF::UnitImplementationLocation.

Definition at line 76 of file NullUnitImplementationLocation.cc.

76  {
77  abortWithError("NullUnitImplementationLocation::hdbFile");
78  return "";
79 }

References abortWithError.

◆ id()

int IDF::NullUnitImplementationLocation::id ( ) const
virtual

Aborts the program with error message.

Returns
Never returns.

Reimplemented from IDF::UnitImplementationLocation.

Definition at line 87 of file NullUnitImplementationLocation.cc.

87  {
88  abortWithError("NullUnitImplementationLocation::id");
89  return 0;
90 }

References abortWithError.

◆ instance()

NullUnitImplementationLocation & IDF::NullUnitImplementationLocation::instance ( )
static

◆ setParent()

void IDF::NullUnitImplementationLocation::setParent ( MachineImplementation parent)
virtual

Aborts the program with error message.

Returns
Never returns.

Reimplemented from IDF::UnitImplementationLocation.

Definition at line 111 of file NullUnitImplementationLocation.cc.

111  {
112  abortWithError("NullUnitImplementationLocation::setParent");
113 }

References abortWithError.

◆ unitName()

std::string IDF::NullUnitImplementationLocation::unitName ( ) const
virtual

Aborts the program with error message.

Returns
Never returns.

Reimplemented from IDF::UnitImplementationLocation.

Definition at line 99 of file NullUnitImplementationLocation.cc.

99  {
100  abortWithError("NullUnitImplementationLocation::unitName");
101  return "";
102 }

References abortWithError.

Member Data Documentation

◆ instance_

NullUnitImplementationLocation IDF::NullUnitImplementationLocation::instance_
staticprivate

Definition at line 62 of file NullUnitImplementationLocation.hh.

Referenced by instance().


The documentation for this class was generated from the following files:
IDF::NullUnitImplementationLocation::instance_
static NullUnitImplementationLocation instance_
Definition: NullUnitImplementationLocation.hh:62
IDF::UnitImplementationLocation::UnitImplementationLocation
UnitImplementationLocation(const std::string &hdbFile, int id, const std::string &unitName)
Definition: UnitImplementationLocation.cc:60
abortWithError
#define abortWithError(message)
Definition: Application.hh:72