From 9fb7d0c0716e54b2582397f23ab333c37a151993 Mon Sep 17 00:00:00 2001 From: "M.X. Grey" Date: Mon, 5 Oct 2015 12:03:23 -0400 Subject: [PATCH] enable compiler optimization by using 'final' keyword --- dart/dynamics/BodyNode.h | 8 ++++---- dart/dynamics/EndEffector.h | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/dart/dynamics/BodyNode.h b/dart/dynamics/BodyNode.h index 744181bd2d9fa..52106240e3423 100644 --- a/dart/dynamics/BodyNode.h +++ b/dart/dynamics/BodyNode.h @@ -636,14 +636,14 @@ class BodyNode : /// Return the generalized Jacobian targeting the origin of this BodyNode. The /// Jacobian is expressed in the Frame of this BodyNode. - const math::Jacobian& getJacobian() const override; + const math::Jacobian& getJacobian() const override final; // Prevent the inherited getJacobian functions from being shadowed using TemplatedJacobianNode::getJacobian; /// Return the generalized Jacobian targeting the origin of this BodyNode. The /// Jacobian is expressed in the World Frame. - const math::Jacobian& getWorldJacobian() const; + const math::Jacobian& getWorldJacobian() const override final; // Prevent the inherited getWorldJacobian functions from being shadowed using TemplatedJacobianNode::getWorldJacobian; @@ -656,7 +656,7 @@ class BodyNode : /// spatial vectors. If you are using classical linear and angular /// acceleration vectors, then use getJacobianClassicDeriv(), /// getLinearJacobianDeriv(), or getAngularJacobianDeriv() instead. - const math::Jacobian& getJacobianSpatialDeriv() const override; + const math::Jacobian& getJacobianSpatialDeriv() const override final; // Prevent the inherited getJacobianSpatialDeriv functions from being shadowed using TemplatedJacobianNode::getJacobianSpatialDeriv; @@ -668,7 +668,7 @@ class BodyNode : /// NOTE: Since this is a classical time derivative, it should be used with /// classical linear and angular vectors. If you are using spatial vectors, /// use getJacobianSpatialDeriv() instead. - const math::Jacobian& getJacobianClassicDeriv() const override; + const math::Jacobian& getJacobianClassicDeriv() const override final; // Prevent the inherited getJacobianClassicDeriv functions from being shadowed using TemplatedJacobianNode::getJacobianClassicDeriv; diff --git a/dart/dynamics/EndEffector.h b/dart/dynamics/EndEffector.h index d81700b342157..1309a2b3b0d2e 100644 --- a/dart/dynamics/EndEffector.h +++ b/dart/dynamics/EndEffector.h @@ -227,25 +227,25 @@ class EndEffector : public FixedFrame, //---------------------------------------------------------------------------- // Documentation inherited - const math::Jacobian& getJacobian() const override; + const math::Jacobian& getJacobian() const override final; // Prevent the inherited getJacobian functions from being shadowed using TemplatedJacobianNode::getJacobian; // Documentation inherited - const math::Jacobian& getWorldJacobian() const override; + const math::Jacobian& getWorldJacobian() const override final; // Prevent the inherited getWorldJacobian functions from being shadowed using TemplatedJacobianNode::getWorldJacobian; // Documentation inherited - const math::Jacobian& getJacobianSpatialDeriv() const override; + const math::Jacobian& getJacobianSpatialDeriv() const override final; // Prevent the inherited getJacobianSpatialDeriv functions from being shadowed using TemplatedJacobianNode::getJacobianSpatialDeriv; // Documentation inherited - const math::Jacobian& getJacobianClassicDeriv() const override; + const math::Jacobian& getJacobianClassicDeriv() const override final; // Prevent the inherited getJacobianClassicDeriv functions from being shadowed using TemplatedJacobianNode::getJacobianClassicDeriv;