GCC Code Coverage Report


Directory: ./
File: python/doxygen_autodoc/coal/broadphase/broadphase_callbacks.h
Date: 2025-04-01 09:23:31
Exec Total Coverage
Lines: 16 20 80.0%
Branches: 14 36 38.9%

Line Branch Exec Source
1 #ifndef DOXYGEN_AUTODOC_COAL_BROADPHASE_BROADPHASE_CALLBACKS_H
2 #define DOXYGEN_AUTODOC_COAL_BROADPHASE_BROADPHASE_CALLBACKS_H
3
4 #include "/root/robotpkg/path/py-coal/work/coal-3.0.1/doc/python/doxygen.hh"
5
6 #include <coal/broadphase/broadphase_callbacks.h>
7
8 namespace doxygen {
9
10 template <>
11 struct class_doc_impl< coal::CollisionCallBackBase >
12 {
13 static inline const char* run ()
14 {
15 return "Base callback class for collision queries. This class can be supersed by child classes to provide desired behaviors according to the application (e.g, only listing the potential CollisionObjects in collision). ";
16 }
17 static inline const char* attribute (const char* attrib)
18 {
19 (void)attrib; // turn off unused parameter warning.
20 return "";
21 }
22 };
23
24 5 inline const char* member_func_doc (void (coal::CollisionCallBackBase::*function_ptr) ())
25 {
26
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast<void (coal::CollisionCallBackBase::*) ()>(&coal::CollisionCallBackBase::init))
27 5 return "Initialization of the callback before running the collision broadphase manager. ";
28 return "";
29 }
30
31 inline boost::python::detail::keywords<1> member_func_args (void (coal::CollisionCallBackBase::*function_ptr) ())
32 {
33 if (function_ptr == static_cast<void (coal::CollisionCallBackBase::*) ()>(&coal::CollisionCallBackBase::init))
34 return (boost::python::arg("self"));
35 return (boost::python::arg("self"));
36 }
37
38 10 inline const char* member_func_doc (bool (coal::CollisionCallBackBase::*function_ptr) ( coal::CollisionObject *, coal::CollisionObject *))
39 {
40
3/6
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
10 if (function_ptr == static_cast<bool (coal::CollisionCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *)>(&coal::CollisionCallBackBase::collide))
41 return "Collision evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. \n"
42 "\n"
43 "\n"
44 "Param\n"
45 " - o1 Collision object #1. \n"
46 5 " - o2 Collision object #2. ";
47
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast<bool (coal::CollisionCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *)>(&coal::CollisionCallBackBase::operator()))
48 5 return "Functor call associated to the collide operation. ";
49 return "";
50 }
51
52 inline boost::python::detail::keywords<3> member_func_args (bool (coal::CollisionCallBackBase::*function_ptr) ( coal::CollisionObject *, coal::CollisionObject *))
53 {
54 if (function_ptr == static_cast<bool (coal::CollisionCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *)>(&coal::CollisionCallBackBase::collide))
55 return (boost::python::arg("self"), boost::python::arg("o1"), boost::python::arg("o2"));
56 if (function_ptr == static_cast<bool (coal::CollisionCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *)>(&coal::CollisionCallBackBase::operator()))
57 return (boost::python::arg("self"), boost::python::arg("o1"), boost::python::arg("o2"));
58 return (boost::python::arg("self"), boost::python::arg("arg0"), boost::python::arg("arg1"));
59 }
60 } // namespace doxygen
61 #include <coal/broadphase/broadphase_callbacks.h>
62
63 namespace doxygen {
64
65 template <>
66 struct class_doc_impl< coal::DistanceCallBackBase >
67 {
68 static inline const char* run ()
69 {
70 return "Base callback class for distance queries. This class can be supersed by child classes to provide desired behaviors according to the application (e.g, only listing the potential CollisionObjects in collision). ";
71 }
72 static inline const char* attribute (const char* attrib)
73 {
74 (void)attrib; // turn off unused parameter warning.
75 return "";
76 }
77 };
78
79 5 inline const char* member_func_doc (void (coal::DistanceCallBackBase::*function_ptr) ())
80 {
81
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast<void (coal::DistanceCallBackBase::*) ()>(&coal::DistanceCallBackBase::init))
82 5 return "Initialization of the callback before running the collision broadphase manager. ";
83 return "";
84 }
85
86 inline boost::python::detail::keywords<1> member_func_args (void (coal::DistanceCallBackBase::*function_ptr) ())
87 {
88 if (function_ptr == static_cast<void (coal::DistanceCallBackBase::*) ()>(&coal::DistanceCallBackBase::init))
89 return (boost::python::arg("self"));
90 return (boost::python::arg("self"));
91 }
92
93 10 inline const char* member_func_doc (bool (coal::DistanceCallBackBase::*function_ptr) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &))
94 {
95
3/6
✓ Branch 0 taken 5 times.
✓ Branch 1 taken 5 times.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
10 if (function_ptr == static_cast<bool (coal::DistanceCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &)>(&coal::DistanceCallBackBase::distance))
96 return "Distance evaluation between two objects in collision. This callback will cause the broadphase evaluation to stop if it returns true. \n"
97 "\n"
98 "\n"
99 "Param\n"
100 " - o1 Collision object #1. \n"
101 " - o2 Collision object #2. \n"
102 5 " - dist Distance between the two collision geometries. ";
103
2/6
✓ Branch 0 taken 5 times.
✗ Branch 1 not taken.
✗ Branch 2 not taken.
✓ Branch 3 taken 5 times.
✗ Branch 4 not taken.
✗ Branch 5 not taken.
5 if (function_ptr == static_cast<bool (coal::DistanceCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &)>(&coal::DistanceCallBackBase::operator()))
104 5 return "Functor call associated to the distance operation. ";
105 return "";
106 }
107
108 inline boost::python::detail::keywords<4> member_func_args (bool (coal::DistanceCallBackBase::*function_ptr) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &))
109 {
110 if (function_ptr == static_cast<bool (coal::DistanceCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &)>(&coal::DistanceCallBackBase::distance))
111 return (boost::python::arg("self"), boost::python::arg("o1"), boost::python::arg("o2"), boost::python::arg("dist"));
112 if (function_ptr == static_cast<bool (coal::DistanceCallBackBase::*) ( coal::CollisionObject *, coal::CollisionObject *, coal::Scalar &)>(&coal::DistanceCallBackBase::operator()))
113 return (boost::python::arg("self"), boost::python::arg("o1"), boost::python::arg("o2"), boost::python::arg("dist"));
114 return (boost::python::arg("self"), boost::python::arg("arg0"), boost::python::arg("arg1"), boost::python::arg("arg2"));
115 }
116 } // namespace doxygen
117
118 #endif // DOXYGEN_AUTODOC_COAL_BROADPHASE_BROADPHASE_CALLBACKS_H
119
120