casacore
Public Types | Static Public Attributes | Protected Member Functions | List of all members
casacore::NewDelAllocator< T > Class Template Reference

An allocator behaves like operator new[]/delete[]. More...

#include <Allocator.h>

Public Types

typedef new_del_allocator< T > type
 
- Public Types inherited from casacore::BaseAllocator< T, NewDelAllocator< T > >
typedef T value_type
 
typedef NewDelAllocator< T > facade_type
 
- Public Types inherited from casacore::AbstractAllocator< T >
typedef T value_type
 

Static Public Attributes

static NewDelAllocator< T > value
 an instance of this allocator. More...
 

Protected Member Functions

 NewDelAllocator ()
 
- Protected Member Functions inherited from casacore::BaseAllocator< T, NewDelAllocator< T > >
 BaseAllocator ()
 
virtual Allocator_private::BulkAllocator< T > * getAllocator () const override
 
- Protected Member Functions inherited from casacore::AbstractAllocator< T >
 AbstractAllocator ()
 

Additional Inherited Members

- Public Member Functions inherited from casacore::BaseAllocator< T, NewDelAllocator< T > >
virtual ~BaseAllocator ()
 
- Public Member Functions inherited from casacore::AbstractAllocator< T >
virtual ~AbstractAllocator ()
 

Detailed Description

template<typename T>
class casacore::NewDelAllocator< T >

An allocator behaves like operator new[]/delete[].

Because it is impossible to decouple construction/destruction from allocation/deallocation with this allocator, it is discouraged to use this allocator. Use DefaultAllocator<T> or AlignedAllocator<T, ALIGNMENT> as possible. This allocator is provided only for compatibility for calling Array::takeStorage(), Block::replaceStorage(), Block(size_t, T *&, Bool) etc. with a storage allocated by operator new[].

Definition at line 366 of file Allocator.h.

Member Typedef Documentation

◆ type

template<typename T >
typedef new_del_allocator<T> casacore::NewDelAllocator< T >::type

Definition at line 368 of file Allocator.h.

Constructor & Destructor Documentation

◆ NewDelAllocator()

template<typename T >
casacore::NewDelAllocator< T >::NewDelAllocator ( )
inlineprotected

Definition at line 372 of file Allocator.h.

Member Data Documentation

◆ value

template<typename T >
NewDelAllocator< T > casacore::NewDelAllocator< T >::value
static

an instance of this allocator.

Definition at line 370 of file Allocator.h.


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