include
pinocchio
algorithm
constraints
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
8
#include "
pinocchio/algorithm/fwd.hpp
"
9
10
namespace
pinocchio
11
{
12
13
template
<
typename
Derived>
14
struct
ConstraintDataBase
:
NumericalBase
<Derived>
15
{
16
typedef
typename
traits<Derived>::Scalar
Scalar
;
17
typedef
typename
traits<Derived>::ConstraintModel
ConstraintModel
;
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 Sun Dec 22 2024 03:41:08