Gaia-ECS v1.0.0
A simple and powerful entity component system
Loading...
Searching...
No Matches
gaia::cnt::ilist_item Struct Reference

Basic item metadata supported by ilist. More...

#include <ilist.h>

Classes

struct  ItemData
 Generation metadata associated with an item slot. More...
 

Public Member Functions

 ilist_item (uint32_t index, uint32_t generation)
 Constructs item metadata for a slot.
 
 ilist_item (const ilist_item &other)
 Copy-constructs item metadata.
 
ilist_itemoperator= (const ilist_item &other)
 Copy-assigns item metadata.
 
 ilist_item (ilist_item &&other)
 Move-constructs item metadata and invalidates the source metadata.
 
ilist_itemoperator= (ilist_item &&other)
 Move-assigns item metadata and invalidates the source metadata.
 

Public Attributes

uint32_t idx
 Allocated items: Index in the list. Deleted items: Index of the next deleted item in the list.
 
ItemData data
 Item data.
 

Detailed Description

Basic item metadata supported by ilist.

Constructor & Destructor Documentation

◆ ilist_item() [1/3]

gaia::cnt::ilist_item::ilist_item ( uint32_t  index,
uint32_t  generation 
)
inline

Constructs item metadata for a slot.

Parameters
indexSlot index.
generationSlot generation.

◆ ilist_item() [2/3]

gaia::cnt::ilist_item::ilist_item ( const ilist_item other)
inline

Copy-constructs item metadata.

Parameters
otherMetadata to copy.

◆ ilist_item() [3/3]

gaia::cnt::ilist_item::ilist_item ( ilist_item &&  other)
inline

Move-constructs item metadata and invalidates the source metadata.

Parameters
otherMetadata to move.

Member Function Documentation

◆ operator=() [1/2]

ilist_item & gaia::cnt::ilist_item::operator= ( const ilist_item other)
inline

Copy-assigns item metadata.

Parameters
otherMetadata to copy.
Returns
This item metadata.

◆ operator=() [2/2]

ilist_item & gaia::cnt::ilist_item::operator= ( ilist_item &&  other)
inline

Move-assigns item metadata and invalidates the source metadata.

Parameters
otherMetadata to move.
Returns
This item metadata.

The documentation for this struct was generated from the following file: