diff --git a/gtsam_unstable/nonlinear/Expression-inl.h b/gtsam_unstable/nonlinear/Expression-inl.h index 500b4493b..fb05444c6 100644 --- a/gtsam_unstable/nonlinear/Expression-inl.h +++ b/gtsam_unstable/nonlinear/Expression-inl.h @@ -254,14 +254,14 @@ class NullaryMethodExpression: public UnaryExpression { public: - typedef T (A::*method)(boost::optional) const; + typedef T (A::*Method)(boost::optional) const; private: - method method_; + Method method_; /// Constructor with a unary function f, and input argument e - NullaryMethodExpression(const Expression& e, method f) : + NullaryMethodExpression(const Expression& e, Method f) : UnaryExpression(e), method_(f) { } @@ -298,14 +298,14 @@ class UnaryFunctionExpression: public UnaryExpression { public: - typedef boost::function)> function; + typedef boost::function)> Function; private: - function function_; + Function function_; /// Constructor with a unary function f, and input argument e - UnaryFunctionExpression(function f, const Expression& e) : + UnaryFunctionExpression(Function f, const Expression& e) : UnaryExpression(e), function_(f) { } @@ -374,15 +374,15 @@ class UnaryMethodExpression: public BinaryExpression { public: - typedef T (A1::*method)(const A2&, boost::optional, + typedef T (A1::*Method)(const A2&, boost::optional, boost::optional) const; private: - method method_; + Method method_; /// Constructor with a binary function f, and two input arguments - UnaryMethodExpression(const Expression& e1, method f, + UnaryMethodExpression(const Expression& e1, Method f, const Expression& e2) : BinaryExpression(e1, e2), method_(f) { } @@ -426,14 +426,14 @@ public: typedef boost::function< T(const A1&, const A2&, boost::optional, - boost::optional)> function; + boost::optional)> Function; private: - function function_; + Function function_; /// Constructor with a binary function f, and two input arguments - BinaryFunctionExpression(function f, // + BinaryFunctionExpression(Function f, // const Expression& e1, const Expression& e2) : BinaryExpression(e1, e2), function_(f) { } diff --git a/gtsam_unstable/nonlinear/Expression.h b/gtsam_unstable/nonlinear/Expression.h index ab276434c..1cf167e0d 100644 --- a/gtsam_unstable/nonlinear/Expression.h +++ b/gtsam_unstable/nonlinear/Expression.h @@ -55,14 +55,14 @@ public: /// Construct a nullary method expression template Expression(const Expression& expression, - typename NullaryMethodExpression::method f) { + typename NullaryMethodExpression::Method f) { // TODO Assert that root of expression is not null. root_.reset(new NullaryMethodExpression(expression, f)); } /// Construct a unary function expression template - Expression(typename UnaryFunctionExpression::function f, + Expression(typename UnaryFunctionExpression::Function f, const Expression& expression) { // TODO Assert that root of expression is not null. root_.reset(new UnaryFunctionExpression(f, expression)); @@ -71,7 +71,7 @@ public: /// Construct a unary method expression template Expression(const Expression& expression1, - typename UnaryMethodExpression::method f, + typename UnaryMethodExpression::Method f, const Expression& expression2) { // TODO Assert that root of expressions 1 and 2 are not null. root_.reset(new UnaryMethodExpression(expression1, f, expression2)); @@ -79,7 +79,7 @@ public: /// Construct a binary function expression template - Expression(typename BinaryFunctionExpression::function f, + Expression(typename BinaryFunctionExpression::Function f, const Expression& expression1, const Expression& expression2) { // TODO Assert that root of expressions 1 and 2 are not null. root_.reset(new BinaryFunctionExpression(f, expression1, expression2));