farm-ng-core
typetraits.h File Reference
#include "sophus/common/common.h"
#include <ceres/ceres.h>
#include <type_traits>
Include dependency graph for typetraits.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  sophus::Mapper< TScalar, TE >
 Helper for mapping tangent vectors (scalars) over pointers to data. More...
 
struct  sophus::Mapper< TScalar, typename std::enable_if< kIsMappableV< TScalar > >::type >
 

Namespaces

 sophus
 Image MutImage, owning images types.
 

Typedefs

template<class TScalar >
using sophus::IsSpecialized = decltype(complete(std::declval< TScalar * >()))
 
template<class TScalar >
using sophus::IsMappable = IsSpecialized< Eigen::internal::traits< std::decay_t< TScalar > >>
 Type trait used to distinguish mappable vector types from scalars. More...
 

Functions

template<class TScalar , std::size_t = sizeof(TScalar)>
constexpr std::true_type sophus::complete (TScalar *)
 
constexpr std::false_type sophus::complete (...)
 

Variables

template<class TScalar >
constexpr bool sophus::kIsMappableV = IsMappable<TScalar>::value