Guitar
Classes | Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
strformat_ns::QuickAlloc Class Reference

#include <strformat.h>

Classes

struct  Header
 

Public Member Functions

 QuickAlloc (const QuickAlloc &)=delete
 
QuickAllocoperator= (const QuickAlloc &)=delete
 
 QuickAlloc (QuickAlloc &&)=delete
 
QuickAllocoperator= (QuickAlloc &&)=delete
 
 QuickAlloc ()
 
 ~QuickAlloc ()
 
void * alloc (size_t size)
 
void free (void *p)
 

Private Member Functions

void * x_alloc (size_t size)
 
void x_free (void *p)
 

Static Private Member Functions

static size_t align_up (size_t n)
 

Private Attributes

char default_buffer [default_buffer_size]
 

Static Private Attributes

constexpr static size_t default_buffer_size = 256
 
constexpr static size_t alignment = alignof(std::max_align_t)
 

Constructor & Destructor Documentation

◆ QuickAlloc() [1/3]

strformat_ns::QuickAlloc::QuickAlloc ( const QuickAlloc )
delete

◆ QuickAlloc() [2/3]

strformat_ns::QuickAlloc::QuickAlloc ( QuickAlloc &&  )
delete

◆ QuickAlloc() [3/3]

strformat_ns::QuickAlloc::QuickAlloc ( )
inline

◆ ~QuickAlloc()

strformat_ns::QuickAlloc::~QuickAlloc ( )
inline
Here is the call graph for this function:

Member Function Documentation

◆ align_up()

static size_t strformat_ns::QuickAlloc::align_up ( size_t  n)
inlinestaticprivate

◆ alloc()

void* strformat_ns::QuickAlloc::alloc ( size_t  size)
inline
Here is the call graph for this function:

◆ free()

void strformat_ns::QuickAlloc::free ( void *  p)
inline

◆ operator=() [1/2]

QuickAlloc& strformat_ns::QuickAlloc::operator= ( const QuickAlloc )
delete

◆ operator=() [2/2]

QuickAlloc& strformat_ns::QuickAlloc::operator= ( QuickAlloc &&  )
delete

◆ x_alloc()

void* strformat_ns::QuickAlloc::x_alloc ( size_t  size)
inlineprivate

◆ x_free()

void strformat_ns::QuickAlloc::x_free ( void *  p)
inlineprivate
Here is the call graph for this function:

Member Data Documentation

◆ alignment

constexpr static size_t strformat_ns::QuickAlloc::alignment = alignof(std::max_align_t)
staticconstexprprivate

◆ default_buffer

char strformat_ns::QuickAlloc::default_buffer[default_buffer_size]
private

◆ default_buffer_size

constexpr static size_t strformat_ns::QuickAlloc::default_buffer_size = 256
staticconstexprprivate

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