gwnavruntime/abstractgraph/identifiers/loadedabstractgraphcellidx.h Source File

loadedabstractgraphcellidx.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
8 
10 
11 namespace Kaim
12 {
13 
14 class LoadedAbstractGraphCellIdx
15 {
16  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_NavData)
17 public:
18  LoadedAbstractGraphCellIdx() { Invalidate(); }
19 
20  bool HasAbstractGraphNodes() const { return m_abstractGraphInGridIdx < AbstractGraphIdx_Invalid && m_cellInBlobIdx < AbstractGraphCellIdx_Invalid; }
21  bool IsInAbstractGraph() const { return m_abstractGraphInGridIdx < AbstractGraphIdx_Invalid; }
22  void Invalidate()
23  {
24  m_abstractGraphInGridIdx = AbstractGraphIdx_Invalid;
25  m_cellInBlobIdx = AbstractGraphCellIdx_Invalid;
26  }
27 
28  AbstractGraphIdx m_abstractGraphInGridIdx;
29  AbstractGraphCellIdx m_cellInBlobIdx;
30 };
31 
32 }
33 
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17