CFx SDK Documentation  2020SP3
Public Member Functions | List of all members
OdSlotManager Class Reference

#include <SlotManager.h>

Inheritance diagram for OdSlotManager:
OdManagedSlots< TVal, TAlloc >

Public Member Functions

 OdSlotManager ()
 
OdSlotId newSlot ()
 
void freeSlot (OdSlotId slotId)
 
bool contains (OdSlotId slotId) const
 
unsigned int numSlots () const
 

Detailed Description

This class manages OdSlot objects.

<group Other_Classes>

Definition at line 46 of file SlotManager.h.

Constructor & Destructor Documentation

◆ OdSlotManager()

OdSlotManager::OdSlotManager ( )
inline

Definition at line 51 of file SlotManager.h.

Member Function Documentation

◆ contains()

bool OdSlotManager::contains ( OdSlotId  slotId) const
inline

Returns true if and and only the specified Slot exists in this Slots object.

Parameters
slotId[in] Slot ID.

Definition at line 93 of file SlotManager.h.

◆ freeSlot()

void OdSlotManager::freeSlot ( OdSlotId  slotId)
inline

Frees the specified Slot of this Slots object.

Parameters
slotId[in] Slot ID.

Definition at line 77 of file SlotManager.h.

◆ newSlot()

OdSlotId OdSlotManager::newSlot ( )
inline

Adds a Slot to this Slots object.

Returns
Returns the Slot ID of a new slot.

Definition at line 58 of file SlotManager.h.

◆ numSlots()

unsigned int OdSlotManager::numSlots ( ) const
inline

Returns count of allocated slots.

Definition at line 101 of file SlotManager.h.


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