|
| | History (const std::string &name="state", const std::string &log_name="console") |
| | Constructs a History tracker.
|
| |
| | History (const std::string &name, const std::string &log_name, HistoryMode mode) |
| | Constructs a History tracker with an explicit recording mode.
|
| |
|
| ~History ()=default |
| | Destructor (default).
|
| |
|
| History (const History &other) |
| | Copy constructor implementing the Rule of Five. Creates an independent copy of the history state and metadata.
|
| |
| History & | operator= (const History &other) |
| | Copy assignment operator implementing the Rule of Five.
|
| |
| | History (History &&other) noexcept |
| | Move constructor implementing the Rule of Five.
|
| |
| History & | operator= (History &&other) noexcept |
| | Move assignment operator implementing the Rule of Five.
|
| |
| bool | operator== (const History &other) const |
| | Equality comparison operator.
|
| |
| bool | operator!= (const History &other) const |
| | Inequality comparison operator.
|
| |
| std::map< int, Eigen::VectorXd > | GetStateMap () const |
| | Retrieves the complete state map (timestep -> state vector).
|
| |
| const std::vector< int > & | GetRecordedTimesteps () const |
| | Retrieves the recorded timesteps without densifying gaps.
|
| |
| const std::vector< Eigen::VectorXd > & | GetRecordedStates () const |
| | Retrieves the recorded state vectors without densifying gaps.
|
| |
| HistoryMode | GetHistoryMode () const |
| | Retrieves the configured history recording mode.
|
| |
| bool | HasPendingState () const |
| | Indicates whether an accumulated history has pending state.
|
| |
| Eigen::VectorXd | GetPendingState () const |
| | Retrieves the pending accumulated state.
|
| |
| int | GetLatestRecordedTimestep () const |
| | Retrieves the latest recorded timestep.
|
| |
| std::string | GetHistoryName () const |
| | Retrieves the identifier name of this history.
|
| |
| std::string | GetLogName () const |
| | Retrieves the logger name for this history.
|
| |
| std::vector< Eigen::VectorXd > | GetStateAsVector () const |
| | Converts the sparse history map to a contiguous vector of states. Gaps in timesteps are filled with zero vectors of appropriate dimension.
|
| |
| void | AddState (const Eigen::VectorXd &state, int timestep=-1) |
| | Records a state vector at a specific or automatic timestep.
|
| |
| void | RecordSnapshot (const Eigen::VectorXd &state, int timestep) |
| | Records a snapshot value at a concrete timestep.
|
| |
| void | AccumulateState (const Eigen::VectorXd &state) |
| | Adds a contribution to an accumulated history.
|
| |
| void | FlushPendingState (int timestep, Eigen::Index state_size) |
| | Flushes pending accumulated state into a recorded timestep.
|
| |
|
void | Clear () |
| | Clears all recorded state history.
|
| |