37 #ifndef OMPL_CONTROL_CONTROL_
38 #define OMPL_CONTROL_CONTROL_
40 #include <boost/concept_check.hpp>
72 const T*
as(
void)
const
75 BOOST_CONCEPT_ASSERT((boost::Convertible<T*, Control*>));
77 return static_cast<const T*
>(
this);
85 BOOST_CONCEPT_ASSERT((boost::Convertible<T*, Control*>));
87 return static_cast<T*
>(
this);
107 const T*
as(
const unsigned int index)
const
110 BOOST_CONCEPT_ASSERT((boost::Convertible<T*, Control*>));
112 return static_cast<const T*
>(
components[index]);
117 T*
as(
const unsigned int index)
120 BOOST_CONCEPT_ASSERT((boost::Convertible<T*, Control*>));