Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members   Search  

uobject.h File Reference

C++ API: Common ICU base class UObject. More...

#include "unicode/utypes.h"

Go to the source code of this file.

Compounds

class  UMemory
 UMemory is the common ICU base class. More...

class  UObject
 UObject is the common ICU "boilerplate" class. More...


Defines

#define U_OVERRIDE_CXX_ALLOCATION   1
 U_OVERRIDE_CXX_ALLOCATION - Define this to override operator new and delete in UMemory. More...

#define U_HAVE_PLACEMENT_NEW   1
 U_HAVE_PLACEMENT_NEW - Define this to define the placement new and delete in UMemory for STL. More...

#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION(myClass)
 This is a simple macro to add ICU RTTI to an ICU object implementation. More...


Detailed Description

C++ API: Common ICU base class UObject.

Definition in file uobject.h.


Define Documentation

#define UOBJECT_DEFINE_RTTI_IMPLEMENTATION myClass   
 

Value:

UClassID myClass::getStaticClassID() { \
        static const char classID = 0; \
        return (UClassID)&classID; \
    } \
    UClassID myClass::getDynamicClassID() const \
    { return myClass::getStaticClassID(); }
This is a simple macro to add ICU RTTI to an ICU object implementation.

This does not go into the header. This should only be used in *.cpp files.

Parameters:
myClass  The name of the class that needs RTTI defined.
Internal:
For internal use only.

Definition at line 224 of file uobject.h.

#define U_HAVE_PLACEMENT_NEW   1
 

U_HAVE_PLACEMENT_NEW - Define this to define the placement new and delete in UMemory for STL.

Draft:
This API has been introduced in ICU 2.6. It is still in draft state and may be modified in a future release.

Definition at line 49 of file uobject.h.

#define U_OVERRIDE_CXX_ALLOCATION   1
 

U_OVERRIDE_CXX_ALLOCATION - Define this to override operator new and delete in UMemory.

Enabled by default for ICU.

Enabling forces all allocation of ICU object types to use ICU's memory allocation. On Windows, this allows the ICU DLL to be used by applications that statically link the C Runtime library, meaning that the app and ICU will be using different heaps.

Stable:
ICU 2.2

Definition at line 40 of file uobject.h.


Generated on Mon Nov 24 14:36:04 2003 for ICU 2.8 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001