GCC Middle and Back End API Reference
object_allocator< T > Class Template Reference

#include <alloc-pool.h>

Inheritance diagram for object_allocator< T >:
Collaboration diagram for object_allocator< T >:

Public Member Functions

 object_allocator (const char *name CXX_MEM_STAT_INFO)
 
void release ()
 
void release_if_empty ()
 
Tallocate () ATTRIBUTE_MALLOC
 
void * allocate_raw () ATTRIBUTE_MALLOC
 
void remove (T *object)
 
void remove_raw (void *object)
 
size_t num_elts_current ()
 

Private Attributes

pool_allocator m_allocator
 

Detailed Description

template<typename T>
class object_allocator< T >
Type based memory pool allocator.   

Constructor & Destructor Documentation

◆ object_allocator()

template<typename T >
object_allocator< T >::object_allocator ( const char *name CXX_MEM_STAT_INFO)
inline

Member Function Documentation

◆ allocate()

◆ allocate_raw()

template<typename T >
void * object_allocator< T >::allocate_raw ( )
inline

◆ num_elts_current()

template<typename T >
size_t object_allocator< T >::num_elts_current ( )
inline

◆ release()

template<typename T >
void object_allocator< T >::release ( )
inline

◆ release_if_empty()

template<typename T >
void object_allocator< T >::release_if_empty ( )
inline

◆ remove()

◆ remove_raw()

template<typename T >
void object_allocator< T >::remove_raw ( void * object)
inline

Field Documentation

◆ m_allocator


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