|
|
| History () |
| | Default constructor initializing a history with the default name "state" and default mode based on that name.
|
| |
| | History (const std::string &name) |
| | Constructs a history with a specified name, using the default mode based on that name.
|
| |
| | History (const std::string &name, const HistoryMode &mode) |
| | Constructs a history with a specified name and mode.
|
| |
| | History (const std::string &name, const HistoryMode &mode, const std::string &log_name) |
| | Constructs a history with a specified name, mode, and logger.
|
| |
| | History (const std::string &name, const std::string &log_name) |
| | Constructs a history with a specified name and logger.
|
| |
| | History (const std::string &name, const std::string &log_name, const std::string &log_filepath) |
| | Constructs a history with a specified name, logger, and log file path.
|
| |
| | History (const std::string &name, const HistoryMode &mode, const std::string &log_name, const std::string &log_filepath) |
| | Constructs a history with a specified name, mode, logger, and log file path.
|
| |
|
| ~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.
|
| |
| void | AddState (const Eigen::Ref< const Eigen::VectorXd > &state, int timestep=-1) |
| | Records a state vector at a specific or automatic timestep.
|
| |
| void | AccumulateState (const Eigen::Ref< 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.
|
| |
| bool | HasPendingState () const |
| | Indicates whether an accumulated history has pending state.
|
| |
| 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.
|
| |
| Eigen::VectorXd | GetPendingState () const |
| | Retrieves the pending accumulated state.
|
| |
| int | GetLatestRecordedTimestep () const |
| | Retrieves the latest recorded timestep.
|
| |
| std::string | GetName () const |
| | Retrieves the identifier name of 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.
|
| |
| bool | operator== (const History &other) const |
| | Equality comparison operator.
|
| |
| bool | operator!= (const History &other) const |
| | Inequality comparison operator.
|
| |