OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
HDB::PortImplementation Class Reference

#include <PortImplementation.hh>

Inheritance diagram for HDB::PortImplementation:
Inheritance graph
Collaboration diagram for HDB::PortImplementation:
Collaboration graph

Public Member Functions

 PortImplementation (const std::string &name, const std::string &loadPort)
 
virtual ~PortImplementation ()
 
void setName (const std::string &name)
 
std::string name () const
 
void setLoadPort (const std::string &name)
 
std::string loadPort () const
 

Private Attributes

std::string name_
 Name of the port. More...
 
std::string loadPort_
 Name of the load enable port. More...
 

Detailed Description

Base class for RFPortImplementation and FUPortImplementation.

Definition at line 44 of file PortImplementation.hh.

Constructor & Destructor Documentation

◆ PortImplementation()

HDB::PortImplementation::PortImplementation ( const std::string &  name,
const std::string &  loadPort 
)

The constructor.

Parameters
nameName of the port.
loadPortName of the load enable port.

Definition at line 43 of file PortImplementation.cc.

45  :
47 }

◆ ~PortImplementation()

HDB::PortImplementation::~PortImplementation ( )
virtual

The destructor.

Definition at line 53 of file PortImplementation.cc.

53  {
54 }

Member Function Documentation

◆ loadPort()

std::string HDB::PortImplementation::loadPort ( ) const

◆ name()

std::string HDB::PortImplementation::name ( ) const

◆ setLoadPort()

void HDB::PortImplementation::setLoadPort ( const std::string &  name)

Sets the name of the load enable port.

Parameters
nameThe new name.

Definition at line 85 of file PortImplementation.cc.

85  {
86  loadPort_ = name;
87 }

References loadPort_, and name().

Here is the call graph for this function:

◆ setName()

void HDB::PortImplementation::setName ( const std::string &  name)

Sets the name of the port.

Parameters
nameThe new name.

Definition at line 63 of file PortImplementation.cc.

63  {
64  name_ = name;
65 }

References name(), and name_.

Here is the call graph for this function:

Member Data Documentation

◆ loadPort_

std::string HDB::PortImplementation::loadPort_
private

Name of the load enable port.

Definition at line 60 of file PortImplementation.hh.

Referenced by loadPort(), and setLoadPort().

◆ name_

std::string HDB::PortImplementation::name_
private

Name of the port.

Definition at line 58 of file PortImplementation.hh.

Referenced by name(), and setName().


The documentation for this class was generated from the following files:
HDB::PortImplementation::name_
std::string name_
Name of the port.
Definition: PortImplementation.hh:58
HDB::PortImplementation::loadPort
std::string loadPort() const
Definition: PortImplementation.cc:96
HDB::PortImplementation::name
std::string name() const
Definition: PortImplementation.cc:74
HDB::PortImplementation::loadPort_
std::string loadPort_
Name of the load enable port.
Definition: PortImplementation.hh:60