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

#include <OperationModule.hh>

Inheritance diagram for NullOperationModule:
Inheritance graph
Collaboration diagram for NullOperationModule:
Collaboration graph

Public Member Functions

virtual ~NullOperationModule ()
 
virtual std::string name () const
 
virtual bool definesBehavior () const
 
virtual std::string behaviorModule () const
 
virtual std::string propertiesModule () const
 
virtual bool hasBehaviorSource () const
 
virtual std::string behaviorSourceModule () const
 
- Public Member Functions inherited from OperationModule
 OperationModule (const std::string &name, const std::string &path)
 
 OperationModule (const OperationModule &om)
 
virtual ~OperationModule ()
 
OperationModuleoperator= (const OperationModule &om)
 

Static Public Member Functions

static NullOperationModuleinstance ()
 

Private Member Functions

 NullOperationModule ()
 
 NullOperationModule (const NullOperationModule &om)
 
NullOperationModuleoperator= (const NullOperationModule &om)
 

Static Private Attributes

static NullOperationModule instance_
 Unique instance of NullOperationModule. More...
 

Detailed Description

Singleton class that is used to represent a null value for operation state.

Definition at line 88 of file OperationModule.hh.

Constructor & Destructor Documentation

◆ ~NullOperationModule()

NullOperationModule::~NullOperationModule ( )
virtual

Destructor.

Definition at line 209 of file OperationModule.cc.

209  {
210 }

◆ NullOperationModule() [1/2]

NullOperationModule::NullOperationModule ( )
private

Constructor.

Definition at line 203 of file OperationModule.cc.

203  : OperationModule("<NULL>", "") {
204 }

◆ NullOperationModule() [2/2]

NullOperationModule::NullOperationModule ( const NullOperationModule om)
private

Member Function Documentation

◆ behaviorModule()

string NullOperationModule::behaviorModule ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.
Exceptions
FileNotFoundIf behavior module is not found.

Reimplemented from OperationModule.

Definition at line 241 of file OperationModule.cc.

241  {
242  abortWithError("behaviorModule()");
243  return "";
244 }

References abortWithError.

◆ behaviorSourceModule()

string NullOperationModule::behaviorSourceModule ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.
Exceptions
FileNotFoundDoesn't throw.

Reimplemented from OperationModule.

Definition at line 276 of file OperationModule.cc.

276  {
277  abortWithError("behaviorSourceModule()");
278  return "";
279 }

References abortWithError.

◆ definesBehavior()

bool NullOperationModule::definesBehavior ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.

Reimplemented from OperationModule.

Definition at line 229 of file OperationModule.cc.

229  {
230  abortWithError("definesBehavior()");
231  return false;
232 }

References abortWithError.

◆ hasBehaviorSource()

bool NullOperationModule::hasBehaviorSource ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.

Reimplemented from OperationModule.

Definition at line 264 of file OperationModule.cc.

264  {
265  abortWithError("hasBehaviorSource()");
266  return false;
267 }

References abortWithError.

◆ instance()

static NullOperationModule& NullOperationModule::instance ( )
static

◆ name()

string NullOperationModule::name ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.

Reimplemented from OperationModule.

Definition at line 218 of file OperationModule.cc.

218  {
219  abortWithError("name()");
220  return "";
221 }

References abortWithError.

◆ operator=()

NullOperationModule& NullOperationModule::operator= ( const NullOperationModule om)
private

◆ propertiesModule()

string NullOperationModule::propertiesModule ( ) const
virtual

Writes a message to error log and aborts the program.

Returns
Never returns.

Reimplemented from OperationModule.

Definition at line 252 of file OperationModule.cc.

252  {
253 
254  abortWithError("propertiesModule()");
255  return "";
256 }

References abortWithError.

Member Data Documentation

◆ instance_

NullOperationModule NullOperationModule::instance_
staticprivate

Unique instance of NullOperationModule.

Definition at line 108 of file OperationModule.hh.


The documentation for this class was generated from the following files:
OperationModule::OperationModule
OperationModule(const std::string &name, const std::string &path)
Definition: OperationModule.cc:54
abortWithError
#define abortWithError(message)
Definition: Application.hh:72