gwnavruntime/kernel/SF_MemItem.h Source File
Go to the documentation of this file.
7 #ifndef INC_KY_KERNEL_MEM_ITEM_H
8 #define INC_KY_KERNEL_MEM_ITEM_H
18 struct MemItemExtra :
public RefCountBase<MemItemExtra, Stat_Default_Mem>
23 SInt32 AtlasRectBottom;
25 SInt32 AtlasRectRight;
27 MemItemExtra(UInt32 imageId) : ImageId(imageId), AtlasId(0),
28 AtlasRectTop(0), AtlasRectBottom(0), AtlasRectLeft(0), AtlasRectRight(0) { }
31 void Read(File& str, UInt32 version);
32 void Write(File& str, UInt32 version)
const;
39 struct MemItem :
public RefCountBase<MemItem, Stat_Default_Mem>
46 Ptr<MemItemExtra> ImageExtraData;
47 ArrayLH< Ptr<MemItem> > Children;
49 MemItem(UInt32
id) : Value(0), HasValue(false), StartExpanded(false), ID(id) { }
51 void SetValue(UInt32 memValue);
52 MemItem* AddChild(UInt32
id,
const char* name);
53 MemItem* AddChild(UInt32
id,
const char* name, UInt32 memValue);
54 MemItem* SearchForName(
const char* name);
55 UInt32 SumValues(
const char* name)
const;
56 UInt32 GetValue(
const char* name)
const;
57 UInt32 GetMaxId()
const;
60 MemItem& operator=(
const MemItem& rhs);
61 MemItem& operator/=(
unsigned numFrames);
62 MemItem& operator*=(
unsigned num);
63 bool Merge(
const MemItem& other);
66 void Read(File& str, UInt32 version);
67 void Write(File& str, UInt32 version)
const;
68 void ToString(StringBuffer* report, UByte indent = 0)
const;
69 void ToXml(StringBuffer* report, UByte indent = 0)
const;
Definition: gamekitcrowddispersion.h:20