JeVoisBase  1.5
JeVois Smart Embedded Machine Vision Toolkit Base Modules
Share this page:
Promotions.H File Reference
#include <jevoisbase/Components/RoadFinder/Types.H>
#include <limits>
Include dependency graph for Promotions.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  promote_trait< T1, T2 >
 Promote from T1 and T2 to a type than can hold T1 * T2. More...
 
struct  promote_trait< byte, byte >
 
struct  promote_trait< byte, int16 >
 
struct  promote_trait< byte, int32 >
 
struct  promote_trait< byte, float >
 
struct  promote_trait< byte, double >
 
struct  promote_trait< byte, long double >
 
struct  promote_trait< int16, byte >
 
struct  promote_trait< int16, int16 >
 
struct  promote_trait< int16, int32 >
 
struct  promote_trait< int16, float >
 
struct  promote_trait< int16, double >
 
struct  promote_trait< int16, long double >
 
struct  promote_trait< int32, float >
 
struct  promote_trait< int32, double >
 
struct  promote_trait< int32, long double >
 
struct  promote_trait< float, double >
 
struct  promote_trait< float, long double >
 
struct  promote_trait< double, long double >
 
struct  promoteFromTo< T1, T2 >
 
struct  promoteFromTo< T, T >
 
struct  promoteFromTo< int16, byte >
 
struct  promoteFromTo< int32, byte >
 
struct  promoteFromTo< float, byte >
 
struct  promoteFromTo< double, byte >
 
struct  promoteFromTo< long double, byte >
 
struct  promoteFromTo< int32, int16 >
 
struct  promoteFromTo< float, int16 >
 
struct  promoteFromTo< double, int16 >
 
struct  promoteFromTo< long double, int16 >
 
struct  promoteFromTo< float, int32 >
 
struct  promoteFromTo< double, int32 >
 
struct  promoteFromTo< long double, int32 >
 
struct  promoteFromTo< double, float >
 
struct  promoteFromTo< long double, float >
 
struct  promoteFromTo< long double, double >
 
struct  round_helper< dst_type, src_type, need_rounding >
 Helper struct to handle rounding between different types. More...
 
struct  round_helper< dst_type, src_type, false >
 
struct  round_helper< dst_type, src_type, true >
 
struct  convert_helper< dst_type, src_type, is_preserving, dst_type_is_integer >
 Helper struct to handle type conversions at compile time. More...
 
struct  convert_helper< dst_type, src_type, false, true >
 
struct  convert_helper< dst_type, src_type, false, false >
 
struct  convert_helper< dst_type, src_type, true, true >
 
struct  convert_helper< dst_type, src_type, true, false >
 

Macros

#define SPECIALIZE_PROMOTE_TRAIT(T_TYPE, T_PARAMS, T_ARGS)
 A macro for specializing promote_trait for template types. More...
 

Functions

template<class dst_type , class src_type >
dst_type clamped_convert (src_type x)
 Convert safely from src_type to type dst_type, clamping if necessary. More...
 
template<class dst_type , class src_type >
dst_type clamped_rounded_convert (src_type x)
 Convert safely from src_type to type dst_type, clamping and rounding as needed. More...
 

Macro Definition Documentation

◆ SPECIALIZE_PROMOTE_TRAIT

#define SPECIALIZE_PROMOTE_TRAIT (   T_TYPE,
  T_PARAMS,
  T_ARGS 
)

A macro for specializing promote_trait for template types.

See e.g. usage in PixelsTypes.H.

Definition at line 106 of file Promotions.H.

Function Documentation

◆ clamped_convert()

template<class dst_type , class src_type >
dst_type clamped_convert ( src_type  x)
inline

Convert safely from src_type to type dst_type, clamping if necessary.

Definition at line 333 of file Promotions.H.

◆ clamped_rounded_convert()

template<class dst_type , class src_type >
dst_type clamped_rounded_convert ( src_type  x)
inline

Convert safely from src_type to type dst_type, clamping and rounding as needed.

Definition at line 341 of file Promotions.H.