constraint-data-base.hpp
Go to the documentation of this file.
1 //
2 // Copyright (c) 2023 INRIA
3 //
4 
5 #ifndef __pinocchio_algorithm_constraint_data_base_hpp__
6 #define __pinocchio_algorithm_constraint_data_base_hpp__
7 
9 
10 namespace pinocchio
11 {
12 
13  template<typename Derived>
15  {
16  typedef typename traits<Derived>::Scalar Scalar;
18 
19  Derived & derived()
20  {
21  return static_cast<Derived &>(*this);
22  }
23  const Derived & derived() const
24  {
25  return static_cast<const Derived &>(*this);
26  }
27  };
28 
29 } // namespace pinocchio
30 
31 #endif // ifndef __pinocchio_algorithm_constraint_data_base_hpp__
pinocchio::NumericalBase
Definition: fwd.hpp:89
pinocchio::ConstraintDataBase::ConstraintModel
traits< Derived >::ConstraintModel ConstraintModel
Definition: constraint-data-base.hpp:17
pinocchio::ConstraintDataBase::Scalar
traits< Derived >::Scalar Scalar
Definition: constraint-data-base.hpp:16
pinocchio::ConstraintDataBase::derived
Derived & derived()
Definition: constraint-data-base.hpp:19
fwd.hpp
pinocchio::ConstraintDataBase::derived
const Derived & derived() const
Definition: constraint-data-base.hpp:23
pinocchio::traits
Common traits structure to fully define base classes for CRTP.
Definition: fwd.hpp:71
pinocchio::ConstraintDataBase
Definition: constraint-data-base.hpp:14
pinocchio
Main pinocchio namespace.
Definition: timings.cpp:27


pinocchio
Author(s):
autogenerated on Mon Dec 16 2024 03:41:00