ROSE 0.11.145.192
Static Public Member Functions | List of all members
Sawyer::SmallObject Class Reference

Description

Small object support.

Small objects that inherit from this class will use a pool allocator instead of the global allocator.

Definition at line 19 of file SmallObject.h.

#include <Sawyer/SmallObject.h>

Inheritance diagram for Sawyer::SmallObject:
Inheritance graph
[legend]

Static Public Member Functions

static SynchronizedPoolAllocatorpoolAllocator ()
 Return the pool allocator for this class.
 
static void * operator new (size_t size)
 
static void operator delete (void *ptr, size_t size)
 

Member Function Documentation

◆ poolAllocator()

static SynchronizedPoolAllocator & Sawyer::SmallObject::poolAllocator ( )
inlinestatic

Return the pool allocator for this class.

Definition at line 25 of file SmallObject.h.

◆ operator new()

static void * Sawyer::SmallObject::operator new ( size_t  size)
inlinestatic

Definition at line 27 of file SmallObject.h.

◆ operator delete()

static void Sawyer::SmallObject::operator delete ( void *  ptr,
size_t  size 
)
inlinestatic

Definition at line 28 of file SmallObject.h.


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