Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|
Public Member Functions | |
virtual int | getNumElements () const =0 |
Get the number of elements that needs to be recorded. | |
virtual variantTypes | getElement (int index) const =0 |
virtual void | startNewEpoch ()=0 |
virtual void | setDataType ()=0 |
Set up a string representing the basic data type. | |
virtual const string & | getDataType () const =0 |
template<class Archive > | |
void | serialize (Archive &archive) |
Cereal serialization method. | |
Protected Member Functions | |
RecordableBase ()=default | |
prevents any code outside this class from creating a RecordableBase object | |
Protected Attributes | |
std::string | basicDataType_ |
the basic data type in the recorded variable | |
Definition at line 30 of file RecordableBase.h.
|
pure virtual |
Get A string representing the data type of the recordable variable Dynamic or runtime type information of basic data type
Implemented in CompleteMatrix, EventBuffer, RecordableVector< T >, RecordableVector< BGFLOAT >, RecordableVector< int >, RecordableVector< uint64_t >, RecordableVector< vertexType >, and VectorMatrix.
|
pure virtual |
Get the value of the recordable variable at the specified index.
index | The index of the recorded value to retrieve. |
Implemented in CompleteMatrix, EventBuffer, RecordableVector< T >, RecordableVector< BGFLOAT >, RecordableVector< int >, RecordableVector< uint64_t >, RecordableVector< vertexType >, and VectorMatrix.
|
pure virtual |
Get the number of elements that needs to be recorded.
Implemented in CompleteMatrix, EventBuffer, RecordableVector< T >, RecordableVector< BGFLOAT >, RecordableVector< int >, RecordableVector< uint64_t >, RecordableVector< vertexType >, and VectorMatrix.
|
inline |
Cereal serialization method.
Definition at line 56 of file RecordableBase.h.
|
pure virtual |
Set up a string representing the basic data type.
Implemented in CompleteMatrix, EventBuffer, RecordableVector< T >, RecordableVector< BGFLOAT >, RecordableVector< int >, RecordableVector< uint64_t >, RecordableVector< vertexType >, and VectorMatrix.
|
pure virtual |
Start a new epoch for the recordable variable. Makes the variable look empty from recorder point of view Depends on subclass implementation Called at the beginning of each simulation epoch to prepare for recording new events.
Implemented in CompleteMatrix, EventBuffer, RecordableVector< T >, RecordableVector< BGFLOAT >, RecordableVector< int >, RecordableVector< uint64_t >, RecordableVector< vertexType >, and VectorMatrix.
|
protected |
the basic data type in the recorded variable
Definition at line 65 of file RecordableBase.h.