#include <cache.h>
Inheritance diagram for CachedObject:

Public Member Functions | |
| CachedObject () | |
| default constructor for CachedObject We get the size object: sizeof(this). It's used by the delete algorithms. Note: | |
| CachedObject (INT32 size) | |
| constructor for CachedObject. It's used mainly in debug build when I explicitly set the size of the object rather than using sizeof(). Note: | |
| CachedObject (BOOL immortal, UINT32 size) | |
| constructor for CachedObject.It's used mainly in debug build when I explicitly set the size of the object rather than using sizeof(). It also useful if I need to specify whether the objwect is immortal or not. The second parameter is optionnal. (e.g. CachedObject *pDummyObject = new CachedObject(TRUE); or: CachedObject *pDummyObject = new CachedObject(TRUE, 100); Note: | |
| virtual | ~CachedObject () |
| destructor for CachedObject Note: | |
| BOOL | StoreHandle (WORD Handle) |
| store the CachedObject Handle generated by the add() function Note: | |
| virtual UINT32 | GetSize () |
| virtual UINT32 | GetChanceOfSurvival () |
| BOOL | IsImmortal () |
Protected Member Functions | |
| virtual BOOL | SetSize (UINT32 size) |
| modify the size of the object Note: | |
Private Member Functions | |
| CC_DECLARE_DYNCREATE (CachedObject) | |
Private Attributes | |
| UINT32 | m_Size |
| BOOL | m_Immortal |
| WORD | m_hObj |
Definition at line 121 of file cache.h.
|
|
default constructor for CachedObject We get the size object: sizeof(this). It's used by the delete algorithms. Note:
Definition at line 130 of file cache.cpp. 00131 { 00132 m_Size = sizeof(this); 00133 m_Immortal = FALSE; 00134 m_hObj = 0; 00135 }
|
|
|
constructor for CachedObject. It's used mainly in debug build when I explicitly set the size of the object rather than using sizeof(). Note:
Definition at line 150 of file cache.cpp. 00151 { 00152 m_Size = size; 00153 m_Immortal = FALSE; 00154 m_hObj = 0; 00155 }
|
|
||||||||||||
|
constructor for CachedObject.It's used mainly in debug build when I explicitly set the size of the object rather than using sizeof(). It also useful if I need to specify whether the objwect is immortal or not. The second parameter is optionnal. (e.g. CachedObject *pDummyObject = new CachedObject(TRUE); or: CachedObject *pDummyObject = new CachedObject(TRUE, 100); Note:
Definition at line 173 of file cache.cpp. 00174 { 00175 m_Size = size; 00176 m_Immortal = immortal; 00177 m_hObj = 0; 00178 }
|
|
|
destructor for CachedObject Note:
Definition at line 191 of file cache.cpp.
|
|
|
|
|
|
Definition at line 134 of file cache.h. 00134 { return (GetSize()); }
|
|
|
Definition at line 133 of file cache.h. 00133 { return m_Size; }
|
|
|
Definition at line 136 of file cache.h. 00136 { return m_Immortal; }
|
|
|
modify the size of the object Note:
Definition at line 228 of file cache.cpp.
|
|
|
store the CachedObject Handle generated by the add() function Note:
Definition at line 209 of file cache.cpp.
|
|
|
|
|
|
|
|
|
|
1.4.4