Public Member Functions | |
void | AddEntity (int inCount, const Dtk_string &inName) |
Adds entity type and its count to inventory More... | |
Dtk_Log_Inventory () | |
Dtk_Log_Inventory (const Dtk_Log_Inventory &inInventory) | |
int | GetEntitiesCount (Dtk_Size_t inIndex) |
Get count of entities with the same type in inventory from index. More... | |
const Dtk_string & | GetEntityType (Dtk_Size_t inIndex) |
Get entity type in inventory from index. More... | |
Dtk_Size_t | GetNbEntityTypes () |
Get number of entity types in inventory More... | |
Dtk_Size_t | GetTotalCount () |
Get total count of entities in inventory More... | |
Dtk_Log_Inventory & | operator= (const Dtk_Log_Inventory &inInventory) |
~Dtk_Log_Inventory () | |
Protected Attributes | |
Dtk_Handle * | _Private |
Friends | |
class | Dtk_SmartPtr< Dtk_Log > |
Dtk_Log_Inventory::Dtk_Log_Inventory | ( | ) |
Dtk_Log_Inventory::Dtk_Log_Inventory | ( | const Dtk_Log_Inventory & | inInventory | ) |
Dtk_Log_Inventory::~Dtk_Log_Inventory | ( | ) |
void Dtk_Log_Inventory::AddEntity | ( | int | inCount, |
const Dtk_string & | inName | ||
) |
Adds entity type and its count to inventory
[in] | inCount | : Count of entities |
[in] | inName | : Entity type |
int Dtk_Log_Inventory::GetEntitiesCount | ( | Dtk_Size_t | inIndex | ) |
Get count of entities with the same type in inventory from index.
[in] | inIndex | : Index (with range [0..GetNbEntityTypes()-1]) |
const Dtk_string& Dtk_Log_Inventory::GetEntityType | ( | Dtk_Size_t | inIndex | ) |
Get entity type in inventory from index.
[in] | inIndex | : Index (with range [0..GetNbEntityTypes()-1]) |
Dtk_Size_t Dtk_Log_Inventory::GetNbEntityTypes | ( | ) |
Get number of entity types in inventory
Dtk_Size_t Dtk_Log_Inventory::GetTotalCount | ( | ) |
Get total count of entities in inventory
Dtk_Log_Inventory& Dtk_Log_Inventory::operator= | ( | const Dtk_Log_Inventory & | inInventory | ) |
|
friend |
|
protected |