Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
Loading...
Searching...
No Matches
GenericFunctionNode Class Reference
Inheritance diagram for GenericFunctionNode:
Collaboration diagram for GenericFunctionNode:

Public Member Functions

 GenericFunctionNode (const Operations::op &operationType, const std::function< void()> &function)
 Constructor, Function Signature: void ()
 
 ~GenericFunctionNode ()=default
 Destructor.
 
bool invokeFunction (const Operations::op &operation) const override
 Invokes the stored function if the sent operation type matches the operation type the function is stored as.
 
- Public Member Functions inherited from IFunctionNode
virtual ~IFunctionNode ()=default
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from IFunctionNode
Operations::op operationType_
 The operation type of the stored function.
 

Detailed Description

Definition at line 17 of file GenericFunctionNode.h.

Constructor & Destructor Documentation

◆ GenericFunctionNode()

GenericFunctionNode::GenericFunctionNode ( const Operations::op & operationType,
const std::function< void()> & function )

Constructor, Function Signature: void ()

Definition at line 17 of file GenericFunctionNode.cpp.

Member Function Documentation

◆ invokeFunction()

bool GenericFunctionNode::invokeFunction ( const Operations::op & operation) const
overridevirtual

Invokes the stored function if the sent operation type matches the operation type the function is stored as.

Implements IFunctionNode.

Definition at line 25 of file GenericFunctionNode.cpp.


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