bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl_traits.h
Go to the documentation of this file.
1#ifndef CUBEAI_TRAITS_H
2#define CUBEAI_TRAITS_H
3
5
6#include <vector>
7
8namespace bitrl
9{
10namespace utils
11{
12
13template <typename VecType> struct vector_value_type_trait;
14
15template <typename T> struct vector_value_type_trait<std::vector<T>>
16{
17 typedef typename std::vector<T>::value_type value_type;
18};
19
20template <typename T> struct vector_value_type_trait<DynVec<T>>
21{
22 typedef typename std::vector<T>::value_type value_type;
23};
24
25template <typename T> struct vector_value_type_trait<std::pair<std::vector<T>, uint_t>>
26{
27 typedef typename std::vector<T>::value_type value_type;
28};
29
30template <typename T> struct vector_value_type_trait<std::pair<DynVec<T>, uint_t>>
31{
32 typedef typename std::vector<T>::value_type value_type;
33};
34
35} // namespace utils
36} // namespace bitrl
37
38#endif // CUBEAI_TRAITS_H
Definition bitrl_concepts.h:22
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitsim_types.h:101
std::vector< T >::value_type value_type
Definition bitrl_traits.h:22
std::vector< T >::value_type value_type
Definition bitrl_traits.h:32
std::vector< T >::value_type value_type
Definition bitrl_traits.h:27
std::vector< T >::value_type value_type
Definition bitrl_traits.h:17
Definition bitrl_traits.h:13