gwnavgeneration/generator/generatorsectorlist.h Source File
Go to the documentation of this file.
8 #ifndef GwNavGen_GeneratorSectorList_H
9 #define GwNavGen_GeneratorSectorList_H
18 class GeneratorSectorList
24 GeneratorSectorList();
25 void ShallowCopy(const GeneratorSectorList& other);
29 void DeepCopy(const GeneratorSectorList& other, GeneratorSector::ClearPointedDataMode clearPointedDataMode);
34 KyResult AddSector(Ptr<GeneratorSector> sector);
37 KyResult RemoveSectorWithName(
char* name);
38 KyResult RemoveSectorWithGuid(const KyGuid& guid);
40 void RemoveAllSectors();
43 KyUInt32 GetSectorIdxFromName(const
char* name);
44 KyUInt32 GetSectorIdxFromGuid(const KyGuid& guid);
47 Ptr<GeneratorSector> GetSectorWithName(const
char* name);
48 Ptr<GeneratorSector> GetSectorWithGuid(const KyGuid& guid);
49 Ptr<GeneratorSector> GetSector(
KyUInt32 index) {
return index < m_sectors.GetCount() ? m_sectors[index] :
KY_NULL; }
51 const Ptr<GeneratorSector> GetSectorWithName(
const char* name)
const;
52 const Ptr<GeneratorSector> GetSectorWithGuid(
const KyGuid& guid)
const ;
53 const Ptr<GeneratorSector> GetSector(
KyUInt32 index)
const {
return index < m_sectors.GetCount() ? m_sectors[index] :
KY_NULL; }
55 const KyArray< Ptr<GeneratorSector> >& GetSectors()
const {
return m_sectors; }
56 KyArray< Ptr<GeneratorSector> >& GetSectors() {
return m_sectors; }
57 KyUInt32 GetSectorCount()
const {
return m_sectors.GetCount(); }
60 KyArray<Ptr<GeneratorSector> > m_sectors;
KyInt32 KyResult
Defines a type that can be returned by methods or functions in the Gameware Navigation SDK to indicat...
Definition: types.h:254
#define KY_NULL
Null value.
Definition: types.h:247
#define KY_CLASS_WITHOUT_COPY(ClassName)
Define to forbid copy constructor and copy assignment.
Definition: types.h:387
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
unsigned int KyUInt32
Type used internally to represent an unsigned 32-bit integer.
Definition: types.h:36