25 #ifndef SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_H_
26 #define SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_H_
34 class FiniteDifferencesGrid :
public FullDiscretizationGridBase
37 using Ptr = std::shared_ptr<FiniteDifferencesGrid>;
38 using UPtr = std::unique_ptr<FiniteDifferencesGrid>;
49 #ifdef MESSAGE_SUPPORT
50 void fromMessage(
const messages::FiniteDifferencesGrid& message, std::stringstream* issues);
51 void toMessage(messages::FiniteDifferencesGrid& message)
const;
53 void fromMessage(
const messages::DiscretizationGrid& message, std::stringstream* issues)
override
55 fromMessage(message.finite_differences_grid(), issues);
57 void toMessage(messages::DiscretizationGrid& message)
const override { toMessage(*message.mutable_finite_differences_grid()); }
70 #endif // SRC_OPTIMAL_CONTROL_INCLUDE_CORBO_OPTIMAL_CONTROL_STRUCTURED_OCP_DISCRETIZATION_GRIDS_FINITE_DIFFERENCES_GRID_H_