Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
refcount.h File Reference
#include "always.h"
#include "listnode.h"

Go to the source code of this file.

Classes

struct  ActiveRefStruct
 
class  RefCountClass
 

Macros

#define REFCOUNT_H
 
#define NEW_REF(C, P)
 
#define SET_REF_OWNER(P)
 
#define REF_PTR_SET(dst, src)
 
#define REF_PTR_RELEASE(x)
 

Typedefs

typedef DataNode< RefCountClass * > RefCountNodeClass
 
typedef List< RefCountNodeClass * > RefCountListClass
 

Macro Definition Documentation

◆ NEW_REF

#define NEW_REF ( C,
P )
Value:
( (C*)RefCountClass::Set_Ref_Owner( W3DNEW C P, __FILE__, __LINE__ ) )
#define W3DNEW
Definition always.h:109
static RefCountClass * Set_Ref_Owner(RefCountClass *obj, char *file, int line)
Definition refcount.cpp:90

Definition at line 62 of file refcount.h.

◆ REF_PTR_RELEASE

#define REF_PTR_RELEASE ( x)
Value:
{ if (x) x->Release_Ref(); x = NULL; }
#define NULL
Definition BaseType.h:92

Definition at line 80 of file refcount.h.

◆ REF_PTR_SET

#define REF_PTR_SET ( dst,
src )
Value:
{ if (src) (src)->Add_Ref(); if (dst) (dst)->Release_Ref(); (dst) = (src); }

Definition at line 79 of file refcount.h.

◆ REFCOUNT_H

#define REFCOUNT_H

Definition at line 41 of file refcount.h.

◆ SET_REF_OWNER

#define SET_REF_OWNER ( P)
Value:
( RefCountClass::Set_Ref_Owner( P, __FILE__, __LINE__ ) )

Definition at line 63 of file refcount.h.

Typedef Documentation

◆ RefCountListClass

Definition at line 102 of file refcount.h.

◆ RefCountNodeClass

Definition at line 101 of file refcount.h.