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 &operationType, const std::function< void()> &function)
 Constructor, Function Signature: void ()
 
 ~GenericFunctionNode ()=default
 Destructor.
 
virtual bool invokeFunction (const Operations &operation) const override
 Invokes the stored function if the sent operation type matches the operation type the function is stored as.
 
virtual bool invokeFunction (const Operations &operation, uint64_t arg1, uint64_t arg2) const
 TODO: Remove when IFunctionNode supports functions with non-empty signatures.
 
- Public Member Functions inherited from IFunctionNode
virtual ~IFunctionNode ()=default
 Destructor.
 

Additional Inherited Members

- Protected Attributes inherited from IFunctionNode
Operations 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 & operationType,
const std::function< void()> & function )

Constructor, Function Signature: void ()

Definition at line 17 of file GenericFunctionNode.cpp.

Member Function Documentation

◆ invokeFunction() [1/2]

bool GenericFunctionNode::invokeFunction ( const Operations & 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.

◆ invokeFunction() [2/2]

virtual bool GenericFunctionNode::invokeFunction ( const Operations & operation,
uint64_t arg1,
uint64_t arg2 ) const
inlinevirtual

TODO: Remove when IFunctionNode supports functions with non-empty signatures.

Implements IFunctionNode.

Definition at line 29 of file GenericFunctionNode.h.


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