Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|
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. | |
OperationManager & | operator= (const OperationManager &operationManager)=delete |
OperationManager (OperationManager &&operationManager)=delete | |
OperationManager & | operator= (OperationManager &&operationManager)=delete |
Static Public Member Functions | |
static OperationManager & | getInstance () |
Get Instance method that returns a reference to this object. | |
Definition at line 25 of file OperationManager.h.
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.
|
static |
Get Instance method that returns a reference to this object.
Definition at line 21 of file OperationManager.cpp.
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.
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.