ACE_Utils Namespace Reference


Classes

class  Auto_Functor_Ref
 Helper class to implement assignment and copy-construction as expected. More...
class  Auto_Functor
 Helper template to implement auto_ptr<>-like classes, but executing a functor in the destructor, instead of always deleting things. More...
struct  Sign_Check< unsigned char >
struct  Sign_Check< unsigned short >
struct  Sign_Check< unsigned int >
struct  Sign_Check< unsigned long >
struct  Sign_Check< unsigned long long >
struct  Sign_Check< signed char >
struct  Sign_Check< signed short >
struct  Sign_Check< signed int >
struct  Sign_Check< signed long >
struct  Sign_Check< signed long long >
struct  To_Unsigned< unsigned char >
struct  To_Unsigned< unsigned short >
struct  To_Unsigned< unsigned int >
struct  To_Unsigned< unsigned long >
struct  To_Unsigned< unsigned long long >
struct  To_Unsigned< signed char >
struct  To_Unsigned< signed short >
struct  To_Unsigned< signed int >
struct  To_Unsigned< signed long >
struct  To_Unsigned< signed long long >
struct  Safe_Comparator< LEFT, RIGHT, true, false >
struct  Safe_Comparator< LEFT, RIGHT, false, true >
struct  Safe_Comparator< LEFT, RIGHT, false, false >
struct  Safe_Comparator< LEFT, RIGHT, true, true >
struct  Fast_Comparator
 Quick comparison of types that can be safely promoted and/or converted to each other. More...
struct  Comparator
 Structure that provides optimal comparison operation for given types. More...
struct  Truncator
 Truncate value of type FROM to value of type TO. More...
struct  Truncator< T, T >
struct  Noop_Truncator
 No-op truncation. More...
class  UUID_Node
 Class to hold a MAC address. More...
class  UUID
class  UUID_Generator

Typedefs

typedef ACE_Singleton< UUID_Generator,
ACE_SYNCH_MUTEX > 
UUID_GENERATOR

Functions

template<typename TO, typename FROM>
TO truncate_cast (FROM val)


Typedef Documentation

typedef ACE_Singleton<UUID_Generator, ACE_SYNCH_MUTEX> ACE_Utils::UUID_GENERATOR

Definition at line 227 of file UUID.h.


Function Documentation

template<typename TO, typename FROM>
TO ACE_Utils::truncate_cast ( FROM  val  )  [inline]

Definition at line 502 of file Truncate.h.

00503   {
00504     // If the size of FROM is less than the size of TO, "val" will
00505     // never be greater than the maximum "TO" value, so there is no
00506     // need to attempt to truncate.
00507     typedef typename ACE::If_Then_Else<
00508       (sizeof (FROM) < sizeof (TO)),
00509       Noop_Truncator<FROM, TO>,
00510       Truncator<FROM, TO> >::result_type truncator;
00511 
00512     return truncator() (val);
00513   }


Generated on Tue Feb 2 17:36:07 2010 for ACE by  doxygen 1.4.7