Project
Loading...
Searching...
No Matches
o2::itsmft::tracking::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 71 of file SlabBumpAllocator.h.

Constructor & Destructor Documentation

◆ SlabBumpAllocator()

o2::itsmft::tracking::SlabBumpAllocator::SlabBumpAllocator ( size_t  capacity,
size_t  slab 
)
noexcept

Definition at line 69 of file SlabBumpAllocator.cxx.

Member Function Documentation

◆ capacity()

size_t o2::itsmft::tracking::SlabBumpAllocator::capacity ( ) const
inlinenoexcept

Definition at line 84 of file SlabBumpAllocator.h.

◆ grab()

SlabBumpAllocator::Range o2::itsmft::tracking::SlabBumpAllocator::grab ( )
noexcept

Definition at line 74 of file SlabBumpAllocator.cxx.

◆ resetCapacity()

void o2::itsmft::tracking::SlabBumpAllocator::resetCapacity ( size_t  capacity)
noexcept

Definition at line 101 of file SlabBumpAllocator.cxx.

◆ slab()

size_t o2::itsmft::tracking::SlabBumpAllocator::slab ( ) const
inlinenoexcept

Definition at line 85 of file SlabBumpAllocator.h.

◆ suggestSlab()

size_t o2::itsmft::tracking::SlabBumpAllocator::suggestSlab ( size_t  capacity,
int  nThreads,
size_t  minSlab = 256,
size_t  maxSlab = 4096 
)
staticnoexcept

Definition at line 92 of file SlabBumpAllocator.cxx.

◆ watermark()

size_t o2::itsmft::tracking::SlabBumpAllocator::watermark ( ) const
noexcept

Definition at line 87 of file SlabBumpAllocator.cxx.


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