Classes | Namespaces | Macros | Typedefs | Functions | Variables
common.hpp File Reference
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <random>
#include <type_traits>
#include <Eigen/Core>
Include dependency graph for common.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Sophus::details::ArgToStream< T >
 
struct  Sophus::Constants< Scalar >
 
struct  Sophus::Constants< float >
 
class  Sophus::details::IsStreamable< T >
 
struct  Sophus::IsUniformRandomBitGenerator< G >
 
struct  Sophus::nullopt_t
 Nullopt type of lightweight optional class. More...
 
class  Sophus::optional< T >
 

Namespaces

 Sophus
 
 Sophus::details
 

Macros

#define EIGEN_DEVICE_FUNC
 
#define SOPHUS_ENSURE(expr, ...)
 
#define SOPHUS_FUNC   EIGEN_DEVICE_FUNC
 
#define SOPHUS_FUNCTION   "unknown"
 

Typedefs

template<bool B, class T = void>
using Sophus::enable_if_t = typename std::enable_if< B, T >::type
 

Functions

template<class... Args>
SOPHUS_FUNC void Sophus::defaultEnsure (char const *function, char const *file, int line, char const *description, Args &&... args)
 
void Sophus::details::FormatStream (std::stringstream &stream, char const *text)
 
template<class T , typename... Args>
void Sophus::details::FormatStream (std::stringstream &stream, char const *text, T &&arg, Args &&... args)
 
std::string Sophus::details::FormatString ()
 
template<class... Args>
std::string Sophus::details::FormatString (char const *text, Args &&... args)
 

Variables

constexpr nullopt_t Sophus::nullopt {}
 

Detailed Description

Common functionality.

Definition in file common.hpp.

Macro Definition Documentation

◆ EIGEN_DEVICE_FUNC

#define EIGEN_DEVICE_FUNC

Definition at line 34 of file common.hpp.

◆ SOPHUS_ENSURE

#define SOPHUS_ENSURE (   expr,
  ... 
)
Value:
((expr) ? ((void)0) \
: Sophus::defaultEnsure(SOPHUS_FUNCTION, __FILE__, __LINE__, \
##__VA_ARGS__))

Definition at line 137 of file common.hpp.

◆ SOPHUS_FUNC

#define SOPHUS_FUNC   EIGEN_DEVICE_FUNC

Definition at line 37 of file common.hpp.

◆ SOPHUS_FUNCTION

#define SOPHUS_FUNCTION   "unknown"

Definition at line 28 of file common.hpp.

SOPHUS_FUNCTION
#define SOPHUS_FUNCTION
Definition: common.hpp:28
Sophus::defaultEnsure
SOPHUS_FUNC void defaultEnsure(char const *function, char const *file, int line, char const *description, Args &&... args)
Definition: common.hpp:122


sophus
Author(s): Hauke Strasdat
autogenerated on Wed Mar 2 2022 01:01:48