DATAKIT SDK  V2026.4
Dtk_Log_Inventory Class Reference

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)
 
 Dtk_Log_Inventory (Dtk_Log_Inventory &&inInventory) DTK_NOEXCEPT
 
int GetEntitiesCount (Dtk_Size_t inIndex) const
 Get count of entities with the same type in inventory from index. More...
 
const Dtk_string & GetEntityType (Dtk_Size_t inIndex) const
 Get entity type in inventory from index. More...
 
Dtk_Size_t GetNbEntityTypes () const
 Get number of entity types in inventory
More...
 
Dtk_Size_t GetTotalCount () const
 Get total count of entities in inventory
More...
 
Dtk_Log_Inventory & operator= (const Dtk_Log_Inventory &inInventory)
 
Dtk_Log_Inventory & operator= (Dtk_Log_Inventory &&inInventory) DTK_NOEXCEPT
 
 ~Dtk_Log_Inventory ()
 

Protected Attributes

std::unique_ptr< Dtk_Handle > _Private
 

Constructor & Destructor Documentation

◆ Dtk_Log_Inventory() [1/3]

Dtk_Log_Inventory::Dtk_Log_Inventory ( )

◆ Dtk_Log_Inventory() [2/3]

Dtk_Log_Inventory::Dtk_Log_Inventory ( const Dtk_Log_Inventory &  inInventory)

◆ Dtk_Log_Inventory() [3/3]

Dtk_Log_Inventory::Dtk_Log_Inventory ( Dtk_Log_Inventory &&  inInventory)

◆ ~Dtk_Log_Inventory()

Dtk_Log_Inventory::~Dtk_Log_Inventory ( )

Member Function Documentation

◆ AddEntity()

void Dtk_Log_Inventory::AddEntity ( int  inCount,
const Dtk_string &  inName 
)

Adds entity type and its count to inventory

Parameters
[in]inCount: Count of entities
[in]inName: Entity type

◆ GetEntitiesCount()

int Dtk_Log_Inventory::GetEntitiesCount ( Dtk_Size_t  inIndex) const

Get count of entities with the same type in inventory from index.

Parameters
[in]inIndex: Index (with range [0..GetNbEntityTypes()-1])
Returns
Count of entities

◆ GetEntityType()

const Dtk_string& Dtk_Log_Inventory::GetEntityType ( Dtk_Size_t  inIndex) const

Get entity type in inventory from index.

Parameters
[in]inIndex: Index (with range [0..GetNbEntityTypes()-1])
Returns
Entity type

◆ GetNbEntityTypes()

Dtk_Size_t Dtk_Log_Inventory::GetNbEntityTypes ( ) const

Get number of entity types in inventory

Returns
Number of entity types

◆ GetTotalCount()

Dtk_Size_t Dtk_Log_Inventory::GetTotalCount ( ) const

Get total count of entities in inventory

Returns
Total count of entities

◆ operator=() [1/2]

Dtk_Log_Inventory& Dtk_Log_Inventory::operator= ( const Dtk_Log_Inventory &  inInventory)

◆ operator=() [2/2]

Dtk_Log_Inventory& Dtk_Log_Inventory::operator= ( Dtk_Log_Inventory &&  inInventory)

Field Documentation

◆ _Private

std::unique_ptr<Dtk_Handle> Dtk_Log_Inventory::_Private
protected