gwnavgeneration/generator/generatorsectorlist.h Source File
Go to the documentation of this file.
16 class GeneratorSectorList
22 GeneratorSectorList();
23 void ShallowCopy(const GeneratorSectorList& other);
26 void DeepCopy(const GeneratorSectorList& other, GeneratorSector::ClearPointedDataMode clearPointedDataMode);
31 KyResult AddSector(Ptr<GeneratorSector> sector);
33 void RemoveAllSectors();
36 KyUInt32 GetSectorIdxFromName(const
char* name) const;
37 KyUInt32 GetSectorIdxFromGuid(const KyGuid& guid) const;
40 Ptr<GeneratorSector> GetSectorWithName(const
char* name);
41 Ptr<GeneratorSector> GetSectorWithGuid(const KyGuid& guid);
42 Ptr<GeneratorSector> GetSector(
KyUInt32 index) {
return index < m_sectors.GetCount() ? m_sectors[index] :
nullptr; }
44 const Ptr<GeneratorSector> GetSectorWithName(
const char* name)
const;
45 const Ptr<GeneratorSector> GetSectorWithGuid(
const KyGuid& guid)
const ;
46 const Ptr<GeneratorSector> GetSector(
KyUInt32 index)
const {
return index < m_sectors.GetCount() ? m_sectors[index] :
nullptr; }
48 const KyArray< Ptr<GeneratorSector> >& GetSectors()
const {
return m_sectors; }
49 KyArray< Ptr<GeneratorSector> >& GetSectors() {
return m_sectors; }
50 KyUInt32 GetSectorCount()
const {
return m_sectors.GetCount(); }
53 KyArray<Ptr<GeneratorSector> > m_sectors;
54 Hash<KyGuid, KyUInt32> m_guidToSectorIdx;
55 StringHash<KyUInt32> m_nameToSectorIdx;
std::uint32_t KyUInt32
uint32_t
Definition: types.h:29
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:196
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Navigation return code class.
Definition: types.h:108
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17