From 9308145b947e618f1079c9ee88820ceb623787c2 Mon Sep 17 00:00:00 2001 From: Olivier Stasse <ostasse@laas.fr> Date: Thu, 17 Oct 2019 17:24:18 -0400 Subject: [PATCH] Fix style. --- include/dynamic-graph/signal-time-dependent.h | 12 +++++++----- src/signal/signal-cast-helper.cpp | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/include/dynamic-graph/signal-time-dependent.h b/include/dynamic-graph/signal-time-dependent.h index ca1115d..32fe49e 100644 --- a/include/dynamic-graph/signal-time-dependent.h +++ b/include/dynamic-graph/signal-time-dependent.h @@ -15,11 +15,13 @@ namespace dynamicgraph { tick as reference. It works this way. For a given SignalTimeDependent S, - - the user manually adds dependent signals through the use of the SignalTimeDependent::addDependency function. - - On access (calling the signal S SignalTimeDependent::operator()(const Time&) or - SignalTimeDependent::access(const Time&) function), if the dependent signals are not - up-to-date, i.e. if their [last update] time is less than the current time, - their value will be SignalTimeDependent::access ()'ed to bring them up-to-date. + - the user manually adds dependent signals through the use of the + SignalTimeDependent::addDependency function. + - On access (calling the signal S SignalTimeDependent::operator()(const Time&) + or SignalTimeDependent::access(const Time&) function), if the dependent + signals are not up-to-date, i.e. if their [last update] time is less than the + current time, their value will be SignalTimeDependent::access ()'ed to bring + them up-to-date. Thus, the value of dependent signals can be accessed \b quickly and \b repeatedly through the Signal::accessCopy () function. diff --git a/src/signal/signal-cast-helper.cpp b/src/signal/signal-cast-helper.cpp index 37b9079..52c19cf 100644 --- a/src/signal/signal-cast-helper.cpp +++ b/src/signal/signal-cast-helper.cpp @@ -82,7 +82,7 @@ DefaultCastRegisterer<bool> bool_reg; DefaultCastRegisterer<dynamicgraph::Vector> vectorCastRegisterer; DefaultCastRegisterer<dynamicgraph::Matrix> matrixCastRegisterer; DefaultCastRegisterer<boost::posix_time::ptime> ptimeCastRegisterer; -DefaultCastRegisterer <std::string> stringCastRegisterer; +DefaultCastRegisterer<std::string> stringCastRegisterer; } // end of anonymous namespace. } // namespace dynamicgraph -- GitLab