|
SCL
1.0
Standard Control Library : Control, dynamics, physics, and simulation
|
#include <CObjectHistory.hpp>

Public Member Functions | |
| bool | saveObject (const Idx &arg_idx, const StoreObjectsAs &arg_obj) |
| const CMappedList< double, StoreObjectsAs > * | getObjectTimeSeries (const Idx &arg_idx) |
| const StoreObjectsAs * | getObject (const Idx &arg_idx, double arg_time=-1.0) |
| bool | removeObjectTimeSeries (const Idx &arg_idx) |
| bool | removeObject (const Idx &arg_idx, double arg_time=-1) |
| CObjectHistory () | |
| ~CObjectHistory () | |
Protected Attributes | |
| CMappedList< Idx, CMappedList < double, StoreObjectsAs > > | data_ |
Time stamps an object, copies it and saves it. The object may be restored at any future point of time.
NOTE: Since this requires a memory copy, it will be slow in general.
Templpate parameters:
Of course, you must use another class in tandem to convert your objects into something that can be stored here.
|
inline |
Constructor : Does nothing.
|
inline |
Destructor : Does nothing.
|
inline |
Retrieves an object from a point in its stored history
| arg_time | Optional timestamp argument. Ignore this to get the last saved state. |
|
inline |
Retrieves an object's entire stored history
|
inline |
Pointer deletion requires knowing the type.
| arg_time | Optional timestamp argument. Ignore this to remove the last saved state. |
|
inline |
Pointer deletion requires knowing the type. The Idx and StoreObjectsAsdestructors should work.
|
inline |
Saves the current state of an object (can be retrieved later)
|
protected |
Index all stored objects by an index and timestamp in a two level mapped list.
1.8.6