PropagateConst.h File Reference
#include <type_traits>
#include "TemplateMetaProgramming.h"
+ Include dependency graph for PropagateConst.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  PropagateConst< Wrapped >
 Wrapper for a pointer to propagate const to the pointed to value. More...
 
struct  hash< armarx::PropagateConst< T > >
 

Namespaces

 armarx
 This file offers overloads of toIce() and fromIce() functions for STL container types.
 
 std
 

Macros

#define make_PropagateConst_cmp(op)
 
#define make_PropagateConst_cmp_function_objects(obj)
 

Functions

 make_PropagateConst_cmp_function_objects (equal_to)
 
 make_PropagateConst_cmp_function_objects (greater)
 
 make_PropagateConst_cmp_function_objects (greater_equal)
 
 make_PropagateConst_cmp_function_objects (less)
 
 make_PropagateConst_cmp_function_objects (less_equal)
 
 make_PropagateConst_cmp_function_objects (not_equal_to)
 
template<class T >
constexpr bool operator!= (const PropagateConst< T > &pt, std::nullptr_t)
 
template<class T >
constexpr bool operator!= (std::nullptr_t, const PropagateConst< T > &pt)
 
template<class T >
constexpr bool operator== (const PropagateConst< T > &pt, std::nullptr_t)
 
template<class T >
constexpr bool operator== (std::nullptr_t, const PropagateConst< T > &pt)
 

Macro Definition Documentation

◆ make_PropagateConst_cmp

#define make_PropagateConst_cmp (   op)
Value:
template<class T0, typename T1> \
constexpr bool operator op(const PropagateConst<T0>& pt0,const PropagateConst<T1>& pt1) \
{ \
return GetUnderlying(pt0) op GetUnderlying(pt1); \
} \
template<class Wrapped, typename T> \
constexpr bool operator op(const PropagateConst<Wrapped>& pt, const T& rhs) \
{ \
return GetUnderlying(pt) op rhs; \
} \
template<class Wrapped, typename T> \
constexpr bool operator op(const T& lhs,const PropagateConst<Wrapped>& pt) \
{ \
return lhs op GetUnderlying(pt); \
}

Definition at line 297 of file PropagateConst.h.

◆ make_PropagateConst_cmp_function_objects

#define make_PropagateConst_cmp_function_objects (   obj)
Value:
template<class T> \
struct obj<armarx::PropagateConst<T>> \
{ \
using first_argument_type = armarx::PropagateConst<T>; \
using second_argument_type = armarx::PropagateConst<T>; \
using result_type = bool; \
constexpr bool operator()(const first_argument_type& l, const second_argument_type& r) const \
{ \
return obj<T>{}(GetUnderlying(l), GetUnderlying(r)); \
} \
}

Definition at line 352 of file PropagateConst.h.

T
float T
Definition: UnscentedKalmanFilterTest.cpp:35
armarx::PropagateConst
Wrapper for a pointer to propagate const to the pointed to value.
Definition: PropagateConst.h:69