#include <stdlib.h>
Go to the source code of this file.
Namespaces | |
namespace | mxflib |
Classes | |
class | IRefCount |
An interface for reference counting. More... | |
class | RefCount |
Standard implementation of IRefCount. More... | |
class | SmartPtr |
Smart pointer with reference counting and auto object deletion. More... | |
class | SmartPtr::__RefCounter |
Default IRefCount implementation used by SmartPtr. More... | |
class | ParentPtr |
Parent pointer class - used to allow an object referenced by another object to make a returrn reference without forming a loop. More... | |
Defines | |
#define | PTRDEBUG(x) |
#define | PTRCHECK(x) |
#define | SmartPtr_Cast(Ptr, Type) ( Ptr.Cast((Type*)NULL) ) |
Macro to give typecast functionality even in MSVC 6. | |
Typedefs | |
typedef std::pair< void *, std::string > | PtrCheckListItemType |
typedef std::list< PtrCheckListItemType > | PtrCheckListType |
This file contains the SmartPtr class (and helpers) originally written by Sandu Turcan and submitted to www.codeproject.com
#define PTRCHECK | ( | x | ) |
#define PTRDEBUG | ( | x | ) |
#define SmartPtr_Cast | ( | Ptr, | |||
Type | ) | ( Ptr.Cast((Type*)NULL) ) |
Macro to give typecast functionality even in MSVC 6.