gwnavruntime/abstractgraph/identifiers/abstractgraphnodeptr.h Source File
Go to the documentation of this file.
7 #ifndef Navigation_AbstractGraphNodePtr_H
8 #define Navigation_AbstractGraphNodePtr_H
11 #include "gwnavruntime/abstractgraphtypes.h"
19 class AbstractGraphNodePtr
23 AbstractGraphNodePtr() { Invalidate(); }
24 AbstractGraphNodePtr(AbstractGraph* abstractGraph, AbstractGraphNodeIdx nodeIdx) { Set(abstractGraph, nodeIdx); }
26 bool IsValid()
const {
return m_abstractGraph !=
KY_NULL && m_nodeIdx < AbstractGraphNodeIdx_Invalid; }
30 m_nodeIdx = AbstractGraphNodeIdx_Invalid;
33 void Set(AbstractGraph* abstractGraph, AbstractGraphNodeIdx nodeIdx)
35 m_abstractGraph = abstractGraph;
40 Ptr<AbstractGraph> m_abstractGraph;
41 AbstractGraphNodeIdx m_nodeIdx;
#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