2005/5/9

     
 

RefHolder3_h

artefaktur
Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

RefHolder3.h File Reference


Compounds

class  InterfaceHolder
 InterfaceHolder is the base template class to hold references to Interfaces. More...

class  RefHolder
 RefHolder is the base template class to hold references. More...

class  ThrowableHolder
 ThrowableHolder is the base template class to hold references to Throwables. More...


Defines

#define ACDK_REFCOUNTING_CODE(code)   code
#define upcast_explicit   explicit
 No implicit convertion from RAClass to acdk::lang::Object possible.

#define ACDK_INTERFACEBASE   : virtual public ::acdk::lang::InterfaceBase

Functions

template<typename T> T * dmi_cast (::acdk::lang::ObjectBase *objbase)
 use DMI Cast from a object to another interface Maybe this returns a total different object instance, in case of composite objects

template<typename T> void dmi_cast2 (::acdk::lang::ObjectBase *from, T *&toI,::acdk::lang::Object *&toO)
 try to cast from object to interface, with explict interface pointer.


Define Documentation

#define ACDK_INTERFACEBASE   : virtual public ::acdk::lang::InterfaceBase
 

#define ACDK_REFCOUNTING_CODE code   )     code
 

#define upcast_explicit   explicit
 

No implicit convertion from RAClass to acdk::lang::Object possible.

For convenience introduce a operator acdk::lang::Object();


Function Documentation

template<typename T>
T* dmi_cast ::acdk::lang::ObjectBase objbase  )  [inline]
 

use DMI Cast from a object to another interface Maybe this returns a total different object instance, in case of composite objects

template<typename T>
void dmi_cast2 ::acdk::lang::ObjectBase from,
T *&  toI,
::acdk::lang::Object *&  toO
[inline]
 

try to cast from object to interface, with explict interface pointer.

This is used in scripting language, whereas object pointer may not equal interface pointers

See also:
dmi_cast