STLdoc
STLdocumentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Types | List of all members
msl::utilities::details::GetCastMethod< ToType, FromType > Class Template Reference

#include <safeint_internal.h>

Public Types

enum  { method }
 

Member Enumeration Documentation

template<typename ToType , typename FromType >
anonymous enum
Enumerator
method 
298  {
299  method = ( IntTraits< FromType >::isBool &&
300  !IntTraits< ToType >::isBool ) ? CastFromBool :
301 
302  ( !IntTraits< FromType >::isBool &&
303  IntTraits< ToType >::isBool ) ? CastToBool :
304  ( NumericType< FromType >::isFloat &&
305  !NumericType< ToType >::isFloat ) ? CastFromFloat :
306 
307  ( SafeIntCompare< ToType, FromType >::isCastOK ||
308  ( NumericType< ToType >::isFloat &&
309  !NumericType< FromType >::isFloat ) ) ? CastOK :
310 
311  ( ( IntTraits< ToType >::isSigned &&
312  !IntTraits< FromType >::isSigned &&
313  sizeof( FromType ) >= sizeof( ToType ) ) ||
314  ( SafeIntCompare< ToType, FromType >::isBothUnsigned &&
315  sizeof( FromType ) > sizeof( ToType ) ) ) ? CastCheckGTMax :
316 
317  ( !IntTraits< ToType >::isSigned &&
318  IntTraits< FromType >::isSigned &&
319  sizeof( ToType ) >= sizeof( FromType ) ) ? CastCheckLTZero :
320 
321  ( !IntTraits< ToType >::isSigned ) ? CastCheckMinMaxUnsigned
323  };
Definition: safeint_internal.h:283
Definition: safeint_internal.h:289
Definition: safeint_internal.h:299
Definition: safeint_internal.h:285
Definition: safeint_internal.h:288
Definition: safeint_internal.h:290
Definition: safeint_internal.h:287
Definition: safeint_internal.h:284
Definition: safeint_internal.h:286

The documentation for this class was generated from the following file: