DPC++ Runtime
Runtime libraries for oneAPI DPC++
Slab Class Reference

Public Member Functions

 Slab (Bucket &)
 
 ~Slab ()
 
void setIterator (ListIter It)
 
ListIter getIterator () const
 
size_t getNumAllocated () const
 
void * getChunk ()
 
void * getSlab ()
 
void * getPtr () const
 
void * getEnd () const
 
size_t getChunkSize () const
 
size_t getNumChunks () const
 
bool hasAvail ()
 
BucketgetBucket ()
 
const BucketgetBucket () const
 
void freeChunk (void *Ptr)
 

Detailed Description

Definition at line 353 of file usm_allocator.cpp.

Constructor & Destructor Documentation

◆ Slab()

Slab::Slab ( Bucket Bkt)

Definition at line 593 of file usm_allocator.cpp.

◆ ~Slab()

Slab::~Slab ( )

Definition at line 603 of file usm_allocator.cpp.

References SystemMemory::deallocate(), and Bucket::getMemHandle().

Member Function Documentation

◆ freeChunk()

void Slab::freeChunk ( void *  Ptr)

Definition at line 689 of file usm_allocator.cpp.

References getChunkSize(), getEnd(), and getPtr().

Referenced by Bucket::freeChunk().

◆ getBucket() [1/2]

const Bucket & Slab::getBucket ( )

Definition at line 640 of file usm_allocator.cpp.

Referenced by USMAllocContext::USMAllocImpl::deallocate(), and operator<<().

◆ getBucket() [2/2]

const Bucket& Slab::getBucket ( ) const

◆ getChunk()

void * Slab::getChunk ( )

Definition at line 620 of file usm_allocator.cpp.

References getChunkSize(), and getPtr().

◆ getChunkSize()

size_t Slab::getChunkSize ( ) const

Definition at line 643 of file usm_allocator.cpp.

References Bucket::getSize().

Referenced by freeChunk(), and getChunk().

◆ getEnd()

void * Slab::getEnd ( ) const

◆ getIterator()

ListIter Slab::getIterator ( ) const
inline

Definition at line 392 of file usm_allocator.cpp.

Referenced by Bucket::freeSlab().

◆ getNumAllocated()

size_t Slab::getNumAllocated ( ) const
inline

Definition at line 394 of file usm_allocator.cpp.

◆ getNumChunks()

size_t Slab::getNumChunks ( ) const
inline

Definition at line 406 of file usm_allocator.cpp.

Referenced by hasAvail().

◆ getPtr()

void* Slab::getPtr ( ) const
inline

◆ getSlab()

void * Slab::getSlab ( )

Definition at line 638 of file usm_allocator.cpp.

References getPtr().

◆ hasAvail()

bool Slab::hasAvail ( )

Definition at line 715 of file usm_allocator.cpp.

References getNumChunks().

◆ setIterator()

void Slab::setIterator ( ListIter  It)
inline

Definition at line 391 of file usm_allocator.cpp.


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