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 
302  {
303  method = ( IntTraits< FromType >::isBool &&
304  !IntTraits< ToType >::isBool ) ? CastFromBool :
305 
306  ( !IntTraits< FromType >::isBool &&
307  IntTraits< ToType >::isBool ) ? CastToBool :
308  ( NumericType< FromType >::isFloat &&
309  !NumericType< ToType >::isFloat ) ? CastFromFloat :
310 
311  ( SafeIntCompare< ToType, FromType >::isCastOK ||
312  ( NumericType< ToType >::isFloat &&
313  !NumericType< FromType >::isFloat ) ) ? CastOK :
314 
315  ( ( IntTraits< ToType >::isSigned &&
316  !IntTraits< FromType >::isSigned &&
317  sizeof( FromType ) >= sizeof( ToType ) ) ||
318  ( SafeIntCompare< ToType, FromType >::isBothUnsigned &&
319  sizeof( FromType ) > sizeof( ToType ) ) ) ? CastCheckGTMax :
320 
321  ( !IntTraits< ToType >::isSigned &&
322  IntTraits< FromType >::isSigned &&
323  sizeof( ToType ) >= sizeof( FromType ) ) ? CastCheckLTZero :
324 
325  ( !IntTraits< ToType >::isSigned ) ? CastCheckMinMaxUnsigned
327  };
Definition: safeint_internal.h:287
Definition: safeint_internal.h:293
Definition: safeint_internal.h:289
Definition: safeint_internal.h:292
Definition: safeint_internal.h:294
Definition: safeint_internal.h:291
Definition: safeint_internal.h:303
Definition: safeint_internal.h:288
Definition: safeint_internal.h:290

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