GCC Code Coverage Report


Directory: ./
File: include/pinocchio/algorithm/constraints/constraint-data-base.hpp
Date: 2025-02-12 21:03:38
Exec Total Coverage
Lines: 4 4 100.0%
Branches: 0 0 -%

Line Branch Exec Source
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 2 Derived & derived()
20 {
21 2 return static_cast<Derived &>(*this);
22 }
23 8 const Derived & derived() const
24 {
25 8 return static_cast<const Derived &>(*this);
26 }
27 };
28
29 } // namespace pinocchio
30
31 #endif // ifndef __pinocchio_algorithm_constraint_data_base_hpp__
32