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

Public Member Functions

virtual ~IFunctionNode ()=default
 Destructor.
 
virtual bool invokeFunction (const Operations &operation) const =0
 
virtual bool invokeFunction (const Operations &operation, uint64_t arg1, uint64_t arg2) const =0
 Invokes the stored function using the two arguments as input.
 

Protected Attributes

Operations operationType_
 The operation type of the stored function.
 

Detailed Description

Definition at line 17 of file IFunctionNode.h.

Member Function Documentation

◆ invokeFunction() [1/2]

virtual bool IFunctionNode::invokeFunction ( const Operations & operation) const
pure virtual

TODO: Need to refactor to allow for passing in arguments. Otherwise, FunctionNode classes can not support non-empty signatures. Invokes the stored function if the sent operation type matches the operation type the function is stored as.

Implemented in GenericFunctionNode, and TwoUint64ArgFunctionNode.

◆ invokeFunction() [2/2]

virtual bool IFunctionNode::invokeFunction ( const Operations & operation,
uint64_t arg1,
uint64_t arg2 ) const
pure virtual

Invokes the stored function using the two arguments as input.

Implemented in GenericFunctionNode, and TwoUint64ArgFunctionNode.

Member Data Documentation

◆ operationType_

Operations IFunctionNode::operationType_
protected

The operation type of the stored function.

Definition at line 32 of file IFunctionNode.h.


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