Represents a single timestep in a simulation, managing a collection of transitions. Each timestep can execute its transitions in sequence, applying their effects to a state vector and updating history records. Transitions can be added, retrieved, and managed within the timestep. The timestep also handles logging for its operations.
|
|
| Timestep () |
| | Default constructor for Timestep. Initializes with default logger.
|
| |
| | Timestep (const std::string &log_name) |
| | Default constructor for Timestep with specified logger name. Initializes with default log file path.
|
| |
| | Timestep (const std::string &log_name, const std::string &log_filepath) |
| | Default constructor for Timestep with specified logger name and log file path.
|
| |
|
| ~Timestep ()=default |
| | Destructor for Timestep. Default implementation.
|
| |
| | Timestep (const Timestep &other) |
| | Copy constructor for Timestep. Creates a deep copy of the transitions.
|
| |
| Timestep & | operator= (const Timestep &other) |
| | Copy assignment operator for Timestep. Creates a deep copy of the transitions.
|
| |
| | Timestep (Timestep &&other) noexcept |
| | Move constructor for Timestep. Transfers ownership of transitions.
|
| |
| Timestep & | operator= (Timestep &&other) noexcept |
| | Move assignment operator for Timestep. Transfers ownership of transitions.
|
| |
| const std::unique_ptr< Transition > & | CreateTransition (const std::string &transition_name) |
| | Creates a transition of the specified type and adds it to this timestep.
|
| |
| void | AddTransition (const std::unique_ptr< Transition > &transition) |
| | Adds a transition to the timestep. The transition is cloned and managed by the timestep.
|
| |
| std::unique_ptr< Transition > | RemoveTransition (size_t idx) |
| | Removes a transition from this timestep by index and returns it.
|
| |
| void | AddMatrixToTransition (const size_t &idx, const Eigen::Ref< const Eigen::MatrixXd > &m) |
| | Adds a matrix to an existing transition in this timestep by index.
|
| |
| void | AddMatrixToTransition (const std::string &transition_name, const Eigen::Ref< const Eigen::MatrixXd > &m) |
| | Adds a matrix to an existing transition in this timestep by name.
|
| |
| const std::unique_ptr< Transition > & | GetTransition (const size_t &idx) const |
| | Retrieves a constant reference to a transition in this timestep by index.
|
| |
| const std::unique_ptr< Transition > & | GetTransition (const std::string &transition_name) const |
| | Gets a constant reference to a transition in this timestep by name.
|
| |
| std::vector< std::unique_ptr< Transition > > | GetTransitions () const |
| | Gets a vector of unique_ptrs to all transitions in this timestep. The returned vector contains deep copies of the transitions, ensuring that modifications to the returned transitions do not affect the original transitions in the timestep.
|
| |
| std::vector< std::string > | GetTransitionNames () const |
| | Gets a vector of the names of all transitions in this timestep.
|
| |
| TransitionSlotProxy | operator[] (size_t idx) |
| | Mutable index-based transition access.
|
| |
| const Transition & | operator[] (size_t idx) const |
| | Const index-based transition access.
|
| |
| bool | operator== (const Timestep &other) const |
| | Overloaded equality operator for Timestep. Compares two Timestep instances for equality based on their transitions and transition matrices.
|
| |
| bool | operator!= (const Timestep &other) const |
| | Overloaded inequality operator for Timestep. Compares two Timestep instances for inequality based on their transitions and transition matrices.
|
| |