wxArt2D
Classes | Macros
smrtptr.h File Reference

smart pointer class and list. More...

#include <string.h>
#include <wx/general/a2dlist.h>
Include dependency graph for smrtptr.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  a2dSmrtPtrBase
 A trivial base class for a2dSmrtPtr. Non-template class, so that it can. More...
 
class  a2dSmrtPtr< Clss >
 A pointer class, that automatically calls SmrtPtrOwn/SmrtPtrRelease. More...
 
class  a2dAutoZeroPtr< Clss >
 A pointer class, that is automatically set to 0 if the target is deleted. More...
 
class  a2dDumbPtr< Clss >
 A pointer class, that does not call SmrtPtrOwn/SmrtPtrRelease, but initializes to 0. More...
 
class  a2dDumbPtrList< T >
 A list class for reference counted objects. More...
 
class  a2dSmrtPtrList< T >
 A list class for reference counted objects. More...
 

Macros

#define __A2DONLYFILE__(fname)   (strchr(fname,'\\') ? strrchr(fname,'\\')+1 : fname)
 
#define __A2DFILE__   __A2DONLYFILE__(__FILE__)
 
#define a2dDECLARE_GLOBAL_VAR(type, var)   type var
 
#define a2dDECLARE_GLOBAL_ITEM(type, var, item)   type var(item)
 
#define a2dDECLARE_LOCAL_ITEM(type, var, item)   type var(item)
 

Detailed Description

smart pointer class and list.

Smart pointers are used all over wxDocview, and the a2dObject from which most classes are derived (in)directly is for that reason reference counted.

Author
Michael Sögtrop / Klaas Holwerda
Date
Created 10/29/2003

Copyright: 2003-2004 (c) Michael Sögtrop / Klaas Holwerda

Licence: wxWidgets Licence

RCS-ID:

Id:
smrtptr.h,v 1.21 2008/09/05 19:01:13 titato Exp

Definition in file smrtptr.h.

smrtptr.h File Reference -- Sun Oct 12 2014 17:04:27 -- Sun Oct 12 2014 -- 1.8.5 -- wxArt2D -- . -- Main Page Reference Documentation