ucommon/generics.h File Reference

Generic templates for C++. More...

#include <ucommon/platform.h>
#include <stdlib.h>
#include <string.h>

Include dependency graph for generics.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  ucc

Data Structures

class  ucc::array_pointer< T >
 Generic smart array class. More...
class  ucc::pointer< T >
 Generic smart pointer class. More...
class  ucc::temp_array< T >
 Manage temporary array stored on the heap. More...
class  ucc::temporary< T >
 Manage temporary object stored on the heap. More...

Defines

#define THROW(x)   ::abort()
#define THROWS(x)
#define THROWS_ANY

Functions

template<typename T>
T * ucc::dup (const T &object)
 Convenience function to duplicate object pointer to heap.
template<>
char * ucc::dup< char > (const char &object)
template<class T>
bool ucc::is (T &object)
 Convenience function to validate object assuming it is castable to bool.
template<typename T>
bool ucc::isnull (T &object)
 Convenience function to test pointer object.
template<typename T>
bool ucc::isnullp (T *object)
 Convenience function to test pointer-pointer object.
template<typename T>
T &() ucc::max (T &o1, T &o2)
 Convenience function to return max of two objects.
template<typename T>
T &() ucc::min (T &o1, T &o2)
 Convenience function to return min of two objects.
template<typename T>
void ucc::swap (T &o1, T &o2)
 Convenience function to swap objects.


Detailed Description

Generic templates for C++.

These are templates that do not depend on any ucommon classes. They can be used for generic C++ programming.

Definition in file generics.h.


Generated on Tue May 17 12:15:01 2011 for UCommon by  doxygen 1.5.6