|
Graphitti
A toolkit/software architecture to ease creating high-performance neural network simulators
|


Public Member Functions | |
| RecordableVector () | |
| Constructor. | |
| virtual void | setDataType () override |
| virtual const std::string & | getDataType () const override |
| Get a string representing the data type of the recordable variable. | |
| virtual int | getNumElements () const override |
| Get the number of elements that needs to be recorded. | |
| virtual void | startNewEpoch () override |
| Start a new epoch for the recordable variable. | |
| virtual variantTypes | getElement (int index) const override |
| virtual void | resize (int maxEvents) |
| Resize the eventTimeSteps vector to the specified size. | |
| virtual void | assign (size_t size, const T &value) |
| Assigns the given value to the vector for the specified size. | |
| T & | operator[] (int index) |
| Overload the operator to set the value at a specific index. | |
| void | push_back (const T &value) |
| Add a new value to recordable vector. | |
| const std::vector< T > & | getVector () const |
| Method to retrieve the underlying std::vector<T> | |
| const T * | data () const |
| Gets const pointer to contiguous host memory array. | |
| template<class Archive > | |
| void | serialize (Archive &archive) |
| Cereal serialization method. | |
Public Member Functions inherited from RecordableBase | |
| template<class Archive > | |
| void | serialize (Archive &archive) |
| Cereal serialization method. | |
Protected Attributes | |
| vector< T > | dataSeries_ |
| Holds the event time steps. | |
Protected Attributes inherited from RecordableBase | |
| std::string | basicDataType_ |
| the basic data type in the recorded variable | |
Additional Inherited Members | |
Protected Member Functions inherited from RecordableBase | |
| RecordableBase ()=default | |
| prevents any code outside this class from creating a RecordableBase object | |
Definition at line 22 of file RecordableVector.h.
|
inline |
Constructor.
Definition at line 25 of file RecordableVector.h.
|
inlinevirtual |
Assigns the given value to the vector for the specified size.
Definition at line 69 of file RecordableVector.h.
|
inline |
Gets const pointer to contiguous host memory array.
Definition at line 99 of file RecordableVector.h.
|
inlineoverridevirtual |
Get a string representing the data type of the recordable variable.
Implements RecordableBase.
Reimplemented in EventBuffer.
Definition at line 38 of file RecordableVector.h.
|
inlineoverridevirtual |
Get the value of the recordable variable at the specified index. return A variant representing the recorded value (uint64_t, double, or string)
Implements RecordableBase.
Reimplemented in EventBuffer.
Definition at line 57 of file RecordableVector.h.
|
inlineoverridevirtual |
Get the number of elements that needs to be recorded.
Implements RecordableBase.
Reimplemented in EventBuffer.
Definition at line 44 of file RecordableVector.h.
|
inline |
Method to retrieve the underlying std::vector<T>
Definition at line 91 of file RecordableVector.h.
|
inline |
Overload the operator to set the value at a specific index.
Definition at line 75 of file RecordableVector.h.
|
inline |
Add a new value to recordable vector.
Definition at line 85 of file RecordableVector.h.
|
inlinevirtual |
Resize the eventTimeSteps vector to the specified size.
Reimplemented in EventBuffer.
Definition at line 63 of file RecordableVector.h.
|
inline |
Cereal serialization method.
Definition at line 105 of file RecordableVector.h.
|
inlineoverridevirtual |
Set up a string representing the basic data type Return a run time type info
Implements RecordableBase.
Reimplemented in EventBuffer.
Definition at line 32 of file RecordableVector.h.
|
inlineoverridevirtual |
Start a new epoch for the recordable variable.
Implements RecordableBase.
Reimplemented in EventBuffer.
Definition at line 50 of file RecordableVector.h.
|
protected |
Holds the event time steps.
Definition at line 113 of file RecordableVector.h.