ACE  6.0.6
Public Types | Public Member Functions
ACE_Utils::Truncator Struct Reference

Truncate value of type FROM to value of type TO. More...

#include <Truncate.h>

List of all members.

Public Types

typedef ACE::If_Then_Else
< MAX_FROM_GT_MAX_TO, FROM, TO >
::result_type 
comp_to_type
typedef ACE::If_Then_Else
< MAX_FROM_GT_MAX_TO,
Fast_Comparator< FROM,
comp_to_type >, typename
Comparator< FROM, comp_to_type >
::comp_type >::result_type 
comparator

Public Member Functions

 ACE_STATIC_CONSTANT (bool, MAX_FROM_GT_MAX_TO=(sizeof(FROM) > sizeof(TO)||(sizeof(FROM)==sizeof(TO)&&Sign_Check< FROM >::is_signed==0)))
TO operator() (FROM val)

Detailed Description

Truncate value of type FROM to value of type TO.

Truncate a value of type FROM to value of type TO, if the value is larger than the maximum of value of type TO.


Member Typedef Documentation

typedef ACE::If_Then_Else< MAX_FROM_GT_MAX_TO, FROM, TO>::result_type ACE_Utils::Truncator::comp_to_type
typedef ACE::If_Then_Else< MAX_FROM_GT_MAX_TO, Fast_Comparator<FROM, comp_to_type>, typename Comparator<FROM, comp_to_type>::comp_type>::result_type ACE_Utils::Truncator::comparator

Member Function Documentation

ACE_Utils::Truncator::ACE_STATIC_CONSTANT ( bool  ,
MAX_FROM_GT_MAX_TO  = (sizeof(FROM) > sizeof(TO)||(sizeof(FROM)==sizeof(TO)&&Sign_Check< FROM >::is_signed==0)) 
)
TO ACE_Utils::Truncator::operator() ( FROM  val) [inline]

Truncate a value of type FROM to value of type TO, if the value is larger than the maximum of value of type TO.


The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines