Vegastrike 0.5.1 rc1
1.0
Original sources for Vegastrike Evolved
|
Go to the source code of this file.
Macros | |
#define | SIZEOFOBJECT sizeof(*this) |
Gives the size of current object. Avoid some mistakes (e.g. "sizeof(this)"). More... | |
#define | DELETESINGLE(x) { delete x; x = null; } |
Deletes an instance of a class. More... | |
#define | DELETEARRAY(x) { delete []x; x = null; } |
Deletes an array. More... | |
#define | SAFE_RELEASE(x) if (x) { (x)->Release(); (x) = null; } |
Safe D3D-style release. More... | |
#define | SAFE_DESTRUCT(x) if (x) { (x)->SelfDestruct(); (x) = null; } |
Safe ICE-style release. More... | |
#define | CHECKALLOC(x) if(!x) return false; |
#define | SAFE_ALLOC(ptr, type, count) DELETEARRAY(ptr); ptr = new type[count]; CHECKALLOC(ptr); |
Standard allocation cycle. More... | |
Functions | |
inline_ void | ZeroMemory (void *addr, udword size) |
inline_ void | FillMemory (void *dest, udword size, ubyte val) |
inline_ void | StoreDwords (udword *dest, udword nb, udword value) |
inline_ void | CopyMemory (void *dest, const void *src, udword size) |
inline_ void | MoveMemory (void *dest, const void *src, udword size) |
Definition at line 100 of file IceMemoryMacros.h.
Deletes an array.
Definition at line 93 of file IceMemoryMacros.h.
Referenced by Opcode::SweepAndPrune::Init(), and Opcode::Internal::~Internal().
Deletes an instance of a class.
Definition at line 92 of file IceMemoryMacros.h.
Referenced by ReleasePruningSorters().
#define SAFE_ALLOC | ( | ptr, | |
type, | |||
count | |||
) | DELETEARRAY(ptr); ptr = new type[count]; CHECKALLOC(ptr); |
Standard allocation cycle.
Definition at line 104 of file IceMemoryMacros.h.
Safe ICE-style release.
Definition at line 95 of file IceMemoryMacros.h.
Safe D3D-style release.
Definition at line 94 of file IceMemoryMacros.h.
#define SIZEOFOBJECT sizeof(*this) |
Gives the size of current object. Avoid some mistakes (e.g. "sizeof(this)").
Definition at line 90 of file IceMemoryMacros.h.
Referenced by GetNodeSize().
Copies a buffer.
addr | [in] destination buffer address |
addr | [in] source buffer address |
size | [in] buffer length |
Definition at line 78 of file IceMemoryMacros.h.
References VsnetOSS::memcpy().
Referenced by Container::Add(), Matrix3x3::Copy(), Matrix4x4::Copy(), Matrix3x3::Matrix3x3(), Matrix4x4::Matrix4x4(), and Container::operator=().
Fills a buffer with a given byte.
addr | [in] buffer address |
size | [in] buffer length |
val | [in] the byte value |
Definition at line 37 of file IceMemoryMacros.h.
Moves a buffer.
addr | [in] destination buffer address |
addr | [in] source buffer address |
size | [in] buffer length |
Definition at line 88 of file IceMemoryMacros.h.
Fills a buffer with a given dword.
addr | [in] buffer address |
nb | [in] number of dwords to write |
value | [in] the dword value |
Definition at line 48 of file IceMemoryMacros.h.
Clears a buffer.
addr | [in] buffer address |
size | [in] buffer length |
Definition at line 27 of file IceMemoryMacros.h.
Referenced by LookAtHelper(), main(), Matrix3x3::Zero(), and Matrix4x4::Zero().