#include <K3dGameData.h>
Public Member Functions | |
K3dSafePointer () | |
~K3dSafePointer () | |
_T * | New () |
Create safe pointer. | |
void | Add (_T *_ptr) |
Add created pointer to safe pointer. | |
_T * | Delete (_T *_ptr) |
Delete safe pointer. | |
bool | FindPointer (_T *_ptr) |
Check if pointer exists. | |
_T * | Get (const int _iId) |
Get memory address. | |
int | GetNum () |
Get number of memory addresses. | |
int | DeleteAll () |
Delete whole address array. | |
Private Attributes | |
K3dAddress | m_kAddress |
Definition at line 101 of file K3dGameData.h.
K3dSafePointer< _T >::K3dSafePointer | ( | ) | [inline] |
Definition at line 105 of file K3dGameData.h.
K3dSafePointer< _T >::~K3dSafePointer | ( | ) | [inline] |
Definition at line 106 of file K3dGameData.h.
_T* K3dSafePointer< _T >::New | ( | ) | [inline] |
Create safe pointer.
Definition at line 109 of file K3dGameData.h.
Referenced by K3dCutPoly::CalcNewEdges(), K3dColor3Build::CreateNewColor3(), K3dColor4Build::CreateNewColor4(), K3dFaceBuild::CreateNewFaceObj(), K3dLineBuild::CreateNewLineObj(), K3dMatrixBuild::CreateNewMatrix(), K3dPlaneBuild::CreateNewPlaneObj(), K3dPolyBuild::CreateNewPolyObj(), K3dPolyPlaneBuild::CreateNewPolyPlaneObj(), K3dRayBuild::CreateNewRayObj(), K3dTriangleBuild::CreateNewTriangleObj(), K3dVector2Build::CreateNewVector2(), K3dVector3Build::CreateNewVector3(), K3dVertexBuild::CreateNewVertexObj(), K3dVorLeafBuild::CreateNewVorLeafObj(), K3dBoxBuild::CreateSceneBox(), K3dScene::K3dScene(), K3dVorBsp::K3dVorBsp(), K3dBlockBuild::LoadBlocks(), K3dFontBmp::LoadBmpFonts(), and K3dTextureBuild::LoadTextures().
void K3dSafePointer< _T >::Add | ( | _T * | _ptr | ) | [inline] |
Add created pointer to safe pointer.
Definition at line 126 of file K3dGameData.h.
Referenced by K3dFaceBuild::CreateNewFaceObj(), and K3dSphereBuild::CreateNewSphereObj().
_T* K3dSafePointer< _T >::Delete | ( | _T * | _ptr | ) | [inline] |
Delete safe pointer.
Definition at line 136 of file K3dGameData.h.
Referenced by K3dBlockBuild::DeleteBlocks(), K3dBoxBuild::DeleteBoxes(), K3dCameraBuild::DeleteCameras(), K3dFaceBuild::DeleteFaces(), K3dFontBmp::DeleteFontBmp(), K2dImageBuild::DeleteImages(), K3dLineBuild::DeleteLines(), K3dPlaneBuild::DeletePlanes(), K3dPolyBuild::DeletePolyhedrons(), K3dPolyPlaneBuild::DeletePolyPlanes(), K3dRayBuild::DeleteRays(), K3dSphereBuild::DeleteSpheres(), K3dTextureBuild::DeleteTextures(), K3dTriangleBuild::DeleteTriangles(), K3dVertexBuild::DeleteVertices(), K3dVorLeafBuild::DeleteVorLeafs(), K3dColor3Build::~K3dColor3Build(), K3dColor4Build::~K3dColor4Build(), K3dMatrixBuild::~K3dMatrixBuild(), K3dScene::~K3dScene(), K3dVector2Build::~K3dVector2Build(), K3dVector3Build::~K3dVector3Build(), and K3dVorBsp::~K3dVorBsp().
bool K3dSafePointer< _T >::FindPointer | ( | _T * | _ptr | ) | [inline] |
Check if pointer exists.
Definition at line 152 of file K3dGameData.h.
Referenced by K3dConvex::InitConvex(), K3dCutPoly::InitCutPoly(), and K3dSphereWork::InitSphereWork().
_T* K3dSafePointer< _T >::Get | ( | const int | _iId | ) | [inline] |
Get memory address.
Definition at line 158 of file K3dGameData.h.
Referenced by K3dDraw::BuildTriangleArray(), K3dTriangulation::BuildTriangles(), K3dAim::CalcAimRay(), K3dTriangleWork::CalcNormal(), K3dTriangleWork::CalcScale(), K3dTriangleWork::CalcTriangleCentre(), K3dPlaneWork::CheckPlane(), K3dScene::Delete(), K3dBlockBuild::DeleteBlocks(), K3dBoxBuild::DeleteBoxes(), K3dCameraBuild::DeleteCameras(), K3dFaceBuild::DeleteFaces(), K3dFontBmp::DeleteFontBmp(), K2dImageBuild::DeleteImages(), K3dLineBuild::DeleteLines(), K3dPlaneBuild::DeletePlanes(), K3dPolyBuild::DeletePolyhedrons(), K3dPolyPlaneBuild::DeletePolyPlanes(), K3dRayBuild::DeleteRays(), K3dSphereBuild::DeleteSpheres(), K3dTextureBuild::DeleteTextures(), K3dTriangleBuild::DeleteTriangles(), K3dVertexBuild::DeleteVertices(), K3dVorLeafBuild::DeleteVorLeafs(), K3dFontBmp::DrawCameraPosition(), K3dFontBmp::DrawFontBmp(), K2dImageWork::DrawImages(), K3dDrawLine::DrawLines(), K3dMngGeometry::DrawMngGeometry(), K3dDrawPlane::DrawPlanes(), K3dDrawSphere::DrawSpheres(), K3dDrawVertex::DrawVertices(), K3dCameraWork::FindCameraId(), K3dLineWork::FindLineId(), K3dPlaneWork::FindPlaneId(), K3dRayWork::FindRayId(), K3dSphereWork::FindSphereId(), K3dTextureBuild::FindTextureId(), K3dVertexWork::FindVertex(), K3dVertexWork::FindVertexId(), K3dVM::GetAimRay(), K3dVM::GetCamDir(), K3dVM::GetCamPos(), K3dObjectWork::GetDistance(), K3dObjectWork::GetIntersection(), K3dVM::GetRayOrigDir(), K3dVM::GetSpherePos(), K3dObjectWork::Hide(), K3dSphereWork::LinkObject(), K3dFontBmp::LoadBmpFonts(), K2dImageBuild::LoadImages(), K3dSphereBuild::LoadSpheres(), K3dSphereWork::MoveByMouse(), K3dObjectWork::SetColor(), K3dVM::SetLine(), K3dVM::SetRay(), K3dVM::SetVertexPos(), K3dLineWork::UpdateLines(), K3dMngGeometry::UpdateMngGeometry(), K3dPlaneWork::UpdatePlanes(), K3dSphereWork::UpdateSpheres(), K3dColor3Build::~K3dColor3Build(), K3dColor4Build::~K3dColor4Build(), K3dMatrixBuild::~K3dMatrixBuild(), K3dVector2Build::~K3dVector2Build(), and K3dVector3Build::~K3dVector3Build().
int K3dSafePointer< _T >::GetNum | ( | ) | [inline] |
Get number of memory addresses.
Definition at line 164 of file K3dGameData.h.
Referenced by K3dDraw::BuildTriangleArray(), K3dTriangulation::BuildTriangles(), K3dCutPoly::CalcNewEdges(), K3dAim::CreateAimRay(), K3dColor3Build::CreateNewColor3(), K3dColor4Build::CreateNewColor4(), K3dFaceBuild::CreateNewFaceObj(), K3dLineBuild::CreateNewLineObj(), K3dMatrixBuild::CreateNewMatrix(), K3dPlaneBuild::CreateNewPlaneObj(), K3dPolyBuild::CreateNewPolyObj(), K3dPolyPlaneBuild::CreateNewPolyPlaneObj(), K3dRayBuild::CreateNewRayObj(), K3dSphereBuild::CreateNewSphereObj(), K3dTriangleBuild::CreateNewTriangleObj(), K3dVector2Build::CreateNewVector2(), K3dVector3Build::CreateNewVector3(), K3dVertexBuild::CreateNewVertexObj(), K3dVorLeafBuild::CreateNewVorLeafObj(), K3dBoxBuild::CreateSceneBox(), K3dScene::Delete(), K3dBlockBuild::DeleteBlocks(), K3dBoxBuild::DeleteBoxes(), K3dCameraBuild::DeleteCameras(), K3dFaceBuild::DeleteFaces(), K3dFontBmp::DeleteFontBmp(), K2dImageBuild::DeleteImages(), K3dLineBuild::DeleteLines(), K3dPlaneBuild::DeletePlanes(), K3dPolyBuild::DeletePolyhedrons(), K3dPolyPlaneBuild::DeletePolyPlanes(), K3dRayBuild::DeleteRays(), K3dSphereBuild::DeleteSpheres(), K3dTextureBuild::DeleteTextures(), K3dTriangleBuild::DeleteTriangles(), K3dVertexBuild::DeleteVertices(), K3dVorLeafBuild::DeleteVorLeafs(), K3dFontBmp::DrawFontBmp(), K2dImageWork::DrawImages(), K3dDrawLine::DrawLines(), K3dDrawPlane::DrawPlanes(), K3dDrawSphere::DrawSpheres(), K3dDrawVertex::DrawVertices(), K3dCameraWork::FindCameraId(), K3dLineWork::FindLineId(), K3dPlaneWork::FindPlaneId(), K3dRayWork::FindRayId(), K3dSphereWork::FindSphereId(), K3dTextureBuild::FindTextureId(), K3dVertexWork::FindVertex(), K3dVertexWork::FindVertexId(), K3dBlockBuild::LoadBlocks(), K3dFaceBuild::LoadFaces(), K2dImageBuild::LoadImages(), K3dLineWork::UpdateLines(), K3dPlaneWork::UpdatePlanes(), K3dSphereWork::UpdateSpheres(), K3dColor3Build::~K3dColor3Build(), K3dColor4Build::~K3dColor4Build(), K3dMatrixBuild::~K3dMatrixBuild(), K3dVector2Build::~K3dVector2Build(), and K3dVector3Build::~K3dVector3Build().
int K3dSafePointer< _T >::DeleteAll | ( | ) | [inline] |
K3dAddress K3dSafePointer< _T >::m_kAddress [private] |
Definition at line 103 of file K3dGameData.h.
Referenced by K3dSafePointer< K3dTriangle >::Add(), K3dSafePointer< K3dTriangle >::Delete(), K3dSafePointer< K3dTriangle >::DeleteAll(), K3dSafePointer< K3dTriangle >::FindPointer(), K3dSafePointer< K3dTriangle >::Get(), K3dSafePointer< K3dTriangle >::GetNum(), and K3dSafePointer< K3dTriangle >::New().