Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
OperationManager Class Reference

Public Member Functions

 ~OperationManager ()=default
 Destructor.
 
void registerOperation (const Operations::op &operation, const function< void()> &function)
 
void executeOperation (const Operations::op &operation) const
 Takes in a operation type and invokes all registered functions that are classified as that operation type.
 
string operationToString (const Operations::op &operation) const
 Takes in the operation enum and returns the enum as a string. Used for debugging purposes.
 
 OperationManager (const OperationManager &operationManager)=delete
 Delete copy and move methods to avoid copy instances of the singleton.
 
OperationManageroperator= (const OperationManager &operationManager)=delete
 
 OperationManager (OperationManager &&operationManager)=delete
 
OperationManageroperator= (OperationManager &&operationManager)=delete
 

Static Public Member Functions

static OperationManagergetInstance ()
 Get Instance method that returns a reference to this object.
 

Detailed Description

Definition at line 25 of file OperationManager.h.

Member Function Documentation

◆ executeOperation()

void OperationManager::executeOperation ( const Operations::op & operation) const

Takes in a operation type and invokes all registered functions that are classified as that operation type.

Definition at line 44 of file OperationManager.cpp.

◆ getInstance()

OperationManager & OperationManager::getInstance ( )
static

Get Instance method that returns a reference to this object.

Definition at line 21 of file OperationManager.cpp.

◆ operationToString()

string OperationManager::operationToString ( const Operations::op & operation) const

Takes in the operation enum and returns the enum as a string. Used for debugging purposes.

Definition at line 55 of file OperationManager.cpp.

◆ registerOperation()

void OperationManager::registerOperation ( const Operations::op & operation,
const function< void()> & function )

Called by lower level classes constructors on creation to register their operations with their operation type. This method can be overloaded to handle different function signatures. Handles function signature: void ()

Definition at line 30 of file OperationManager.cpp.


The documentation for this class was generated from the following files: