Project
Loading...
Searching...
No Matches
o2::its::SlabBumpAllocator Class Reference

#include <SlabBumpAllocator.h>

Classes

struct  Range
 

Public Member Functions

 SlabBumpAllocator (size_t capacity, size_t slab) noexcept
 
Range grab () noexcept
 
size_t capacity () const noexcept
 
size_t slab () const noexcept
 
size_t watermark () const noexcept
 
void resetCapacity (size_t capacity) noexcept
 

Static Public Member Functions

static size_t suggestSlab (size_t capacity, int nThreads, size_t minSlab=256, size_t maxSlab=4096) noexcept
 

Detailed Description

Definition at line 39 of file SlabBumpAllocator.h.

Constructor & Destructor Documentation

◆ SlabBumpAllocator()

o2::its::SlabBumpAllocator::SlabBumpAllocator ( size_t  capacity,
size_t  slab 
)
inlinenoexcept

Definition at line 48 of file SlabBumpAllocator.h.

Member Function Documentation

◆ capacity()

size_t o2::its::SlabBumpAllocator::capacity ( ) const
inlinenoexcept

Definition at line 64 of file SlabBumpAllocator.h.

◆ grab()

Range o2::its::SlabBumpAllocator::grab ( )
inlinenoexcept

Definition at line 51 of file SlabBumpAllocator.h.

◆ resetCapacity()

void o2::its::SlabBumpAllocator::resetCapacity ( size_t  capacity)
inlinenoexcept

Definition at line 80 of file SlabBumpAllocator.h.

◆ slab()

size_t o2::its::SlabBumpAllocator::slab ( ) const
inlinenoexcept

Definition at line 65 of file SlabBumpAllocator.h.

◆ suggestSlab()

static size_t o2::its::SlabBumpAllocator::suggestSlab ( size_t  capacity,
int  nThreads,
size_t  minSlab = 256,
size_t  maxSlab = 4096 
)
inlinestaticnoexcept

Definition at line 71 of file SlabBumpAllocator.h.

◆ watermark()

size_t o2::its::SlabBumpAllocator::watermark ( ) const
inlinenoexcept

Definition at line 66 of file SlabBumpAllocator.h.


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