ACE_Utils Namespace Reference


Classes

struct  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
struct  UUID_Generator::UUID_State
struct  To_Unsigned
 Retrieve unsigned counterpart to given type or value. More...

struct  Safe_Comparator
 Conservative comparison of types that may not be safely promoted and/or converted to each other. More...

class  truncate_cast
 Helper function to truncate an integral value to the maximum value of the given type. More...

class  ACE_UUID
class  ACE_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 224 of file UUID.h.


Function Documentation

template<typename TO, typename FROM>
TO 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 Sun Jan 27 12:59:46 2008 for ACE by doxygen 1.3.6