corona  1.0.2
Public Member Functions
corona::DLLImplementation< Interface > Class Template Reference

#include <corona.h>

List of all members.

Public Member Functions

virtual ~DLLImplementation ()
virtual void COR_CALL destroy ()
void operator delete (void *p)

Detailed Description

template<class Interface>
class corona::DLLImplementation< Interface >

A helper class for DLL-compatible interface implementations. Derive your implementations from DLLImplementation<YourInterface>.

Definition at line 137 of file corona.h.


Constructor & Destructor Documentation

template<class Interface>
virtual corona::DLLImplementation< Interface >::~DLLImplementation ( ) [inline, virtual]

So the implementation can put its destruction logic in the destructor, as natural C++ code does.

Definition at line 143 of file corona.h.


Member Function Documentation

template<class Interface>
virtual void COR_CALL corona::DLLImplementation< Interface >::destroy ( ) [inline, virtual]

Call the destructor in a Win32 ABI-compatible way.

Definition at line 148 of file corona.h.

template<class Interface>
void corona::DLLImplementation< Interface >::operator delete ( void *  p) [inline]

So destroy()'s "delete this" doesn't go into an infinite loop, calling the interface's operator delete, which calls destroy()...

Definition at line 156 of file corona.h.


The documentation for this class was generated from the following file: