casacore
Classes | Static Private Member Functions | Friends | List of all members
casacore::Allocator_private Class Reference

#include <Allocator.h>

Classes

struct  AllocSpec
 Allocator specifier. More...
 
struct  BulkAllocator
 
struct  BulkAllocatorImpl
 
class  BulkAllocatorInitializer
 

Static Private Member Functions

template<typename Allocator >
static BulkAllocator< typename Allocator::value_type > * get_allocator ()
 
template<typename Allocator >
static BulkAllocatorImpl< Allocator > * get_allocator_raw ()
 

Friends

template<typename T >
class AbstractAllocator
 
template<typename T , typename Sub >
class BaseAllocator
 
template<typename T >
class Array
 
template<typename T >
class Block
 

Detailed Description

Definition at line 258 of file Allocator.h.

Member Function Documentation

§ get_allocator()

template<typename Allocator >
static BulkAllocator<typename Allocator::value_type>* casacore::Allocator_private::get_allocator ( )
inlinestaticprivate

Definition at line 349 of file Allocator.h.

Referenced by casacore::Block< casacore::String >::get_allocator().

§ get_allocator_raw()

template<typename Allocator >
static BulkAllocatorImpl<Allocator>* casacore::Allocator_private::get_allocator_raw ( )
inlinestaticprivate

Probably this method is called from BulkAllocatorInitializer<Allocator> first while static initialization and other threads are not started yet.

Use construct below to avoid https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42032

::new (u.alloc_obj) BulkAllocatorImpl<Allocator>(); // this instance will never be destructed.

Definition at line 360 of file Allocator.h.

Friends And Related Function Documentation

§ AbstractAllocator

template<typename T >
friend class AbstractAllocator
friend

Definition at line 259 of file Allocator.h.

§ Array

template<typename T >
friend class Array
friend

Definition at line 261 of file Allocator.h.

§ BaseAllocator

template<typename T , typename Sub >
friend class BaseAllocator
friend

Definition at line 260 of file Allocator.h.

§ Block

template<typename T >
friend class Block
friend

Definition at line 262 of file Allocator.h.


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