OpenASIP  2.0
Public Member Functions | Protected Member Functions | Private Attributes | List of all members
HWBlockArchitecture Class Reference

#include <HWBlockArchitecture.hh>

Inheritance diagram for HWBlockArchitecture:
Inheritance graph
Collaboration diagram for HWBlockArchitecture:
Collaboration graph

Public Member Functions

virtual ~HWBlockArchitecture ()
 
bool hasID () const
 
void setID (RowID id)
 
RowID id () const
 

Protected Member Functions

 HWBlockArchitecture ()
 

Private Attributes

bool hasID_
 
RowID id_
 

Detailed Description

An abstract base class for FUArchitecture and RFArchitecture.

Definition at line 42 of file HWBlockArchitecture.hh.

Constructor & Destructor Documentation

◆ ~HWBlockArchitecture()

HWBlockArchitecture::~HWBlockArchitecture ( )
virtual

The destructor.

Definition at line 46 of file HWBlockArchitecture.cc.

46  {
47 }

◆ HWBlockArchitecture()

HWBlockArchitecture::HWBlockArchitecture ( )
protected

The constructor.

Definition at line 38 of file HWBlockArchitecture.cc.

38  :
39  hasID_(false), id_(0) {
40 }

Member Function Documentation

◆ hasID()

bool HWBlockArchitecture::hasID ( ) const

Tells whether the entry has an ID.

Returns
True if the entry has an ID, otherwise false.

Definition at line 56 of file HWBlockArchitecture.cc.

56  {
57  return hasID_;
58 }

References hasID_.

Referenced by id().

◆ id()

RowID HWBlockArchitecture::id ( ) const

Returns the ID of the entry.

Returns
ID of the entry.

Definition at line 79 of file HWBlockArchitecture.cc.

79  {
80  if (!hasID()) {
81  throw NotAvailable(__FILE__, __LINE__, __func__);
82  } else {
83  return id_;
84  }
85 }

References __func__, hasID(), and id_.

Referenced by HDB::HDBManager::fuEntriesByArchitecture(), HDBToHtml::fuEntryToHtml(), HDBToHtml::rfEntryToHtml(), setID(), and HDBBrowserWindow::update().

Here is the call graph for this function:

◆ setID()

void HWBlockArchitecture::setID ( RowID  id)

Sets the ID for the entry.

Parameters
idThe ID to set.

Definition at line 67 of file HWBlockArchitecture.cc.

67  {
68  hasID_ = true;
69  id_ = id;
70 }

References hasID_, id(), and id_.

Referenced by HDB::HDBManager::fuArchitectureByID(), and HDB::HDBManager::rfArchitectureByID().

Here is the call graph for this function:

Member Data Documentation

◆ hasID_

bool HWBlockArchitecture::hasID_
private

Definition at line 54 of file HWBlockArchitecture.hh.

Referenced by hasID(), and setID().

◆ id_

RowID HWBlockArchitecture::id_
private

Definition at line 55 of file HWBlockArchitecture.hh.

Referenced by id(), and setID().


The documentation for this class was generated from the following files:
NotAvailable
Definition: Exception.hh:728
__func__
#define __func__
Definition: Application.hh:67
HWBlockArchitecture::id_
RowID id_
Definition: HWBlockArchitecture.hh:55
HWBlockArchitecture::id
RowID id() const
Definition: HWBlockArchitecture.cc:79
HWBlockArchitecture::hasID
bool hasID() const
Definition: HWBlockArchitecture.cc:56
HWBlockArchitecture::hasID_
bool hasID_
Definition: HWBlockArchitecture.hh:54