25 #ifndef SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_MOVE_BLOCKING_H_ 26 #define SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_MOVE_BLOCKING_H_ 35 using Ptr = std::shared_ptr<FiniteDifferencesGridMoveBlocking>;
36 using UPtr = std::unique_ptr<FiniteDifferencesGridMoveBlocking>;
47 #ifdef MESSAGE_SUPPORT 48 void fromMessage(
const messages::FiniteDifferencesGridMoveBlocking& message, std::stringstream* issues);
49 void toMessage(messages::FiniteDifferencesGridMoveBlocking& message)
const;
51 void fromMessage(
const messages::DiscretizationGrid& message, std::stringstream* issues)
override 53 fromMessage(message.finite_differences_grid_move_blocking(), issues);
55 void toMessage(messages::DiscretizationGrid& message)
const override { toMessage(*message.mutable_finite_differences_grid_move_blocking()); }
66 #endif // SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_MOVE_BLOCKING_H_
std::unique_ptr< DiscretizationGridInterface > UPtr
#define FACTORY_REGISTER_DISCRETIZATION_GRID(type)
virtual ~FiniteDifferencesGridMoveBlocking()=default
FiniteDifferencesGridMoveBlocking()=default
DiscretizationGridInterface::Ptr getInstance() const override
Return a newly created shared instance of the implemented class.
void createEdges(NlpFunctions &nlp_fun, OptimizationEdgeSet &edges, SystemDynamicsInterface::Ptr dynamics) override
static Factory & instance()
< Retrieve static instance of the factory
std::shared_ptr< DiscretizationGridInterface > Ptr
std::shared_ptr< SystemDynamicsInterface > Ptr
static Factory< DiscretizationGridInterface > & getFactory()
Get access to the associated factory.