gwnavgeneration/generator/cellgeneratorprofiling.h Source File

cellgeneratorprofiling.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 // primary contact: GUAL - secondary contact: NOBODY
9 #ifndef GwNavGen_CellGeneratorProfiling_H
10 #define GwNavGen_CellGeneratorProfiling_H
11 
12 
14 
15 
16 namespace Kaim
17 {
18 
19 
20 class CellGeneratorProfiling
21 {
22  KY_DEFINE_NEW_DELETE_OPERATORS(Stat_Default_Mem)
23 
24 public:
25  CellGeneratorProfiling()
26  : m_enabled(false)
27  , m_rasterMs(0.0f)
28  , m_navRasterMs(0.0f)
29  , m_navRasterPaintingMs(0.0f)
30  , m_heightFieldMs(0.0f)
31  , m_boundariesMs(0.0f)
32  , m_navCellMs(0.0f)
33  {}
34 
35  KyFloat32* GetRasterMs() { return m_enabled ? &m_rasterMs : KY_NULL; }
36  KyFloat32* GetNavRasterMs() { return m_enabled ? &m_navRasterMs : KY_NULL; }
37  KyFloat32* GetNavRasterPaintingMs() { return m_enabled ? &m_navRasterPaintingMs : KY_NULL; }
38  KyFloat32* GetHeightFieldMs() { return m_enabled ? &m_heightFieldMs : KY_NULL; }
39  KyFloat32* GetBoundariesMs() { return m_enabled ? &m_boundariesMs : KY_NULL; }
40  KyFloat32* GetNavCellMs() { return m_enabled ? &m_navCellMs : KY_NULL; }
41 
42 public:
43  bool m_enabled;
44  KyFloat32 m_rasterMs;
45  KyFloat32 m_navRasterMs;
46  KyFloat32 m_navRasterPaintingMs;
47  KyFloat32 m_heightFieldMs;
48  KyFloat32 m_boundariesMs;
49  KyFloat32 m_navCellMs;
50 };
51 
52 
53 }
54 
55 
56 #endif
57 
#define KY_NULL
Null value.
Definition: types.h:247
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43