Promotions.H File Reference

#include "Util/Types.H"
#include "Util/log.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, false >
struct  round_helper< dst_type, src_type, true >
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 >

Defines

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

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.
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.

Detailed Description

basic definitions for template type promotions

Definition in file Promotions.H.


Define Documentation

#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 98 of file Promotions.H.


Function Documentation

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 338 of file Promotions.H.

Referenced by getLikelyhoodImage().

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 346 of file Promotions.H.

Generated on Sun May 8 08:42:52 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3