casacore::NewDelAllocator< T > Class Template Reference

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

#include <Allocator.h>

Inheritance diagram for casacore::NewDelAllocator< T >:
casacore::BaseAllocator< T, NewDelAllocator< T > > casacore::AbstractAllocator< T >

List of all members.

Public Types

typedef new_del_allocator< T > type

Static Public Attributes

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

Protected Member Functions

 NewDelAllocator ()

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 430 of file Allocator.h.


Member Typedef Documentation

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

Definition at line 432 of file Allocator.h.


Constructor & Destructor Documentation

template<typename T >
casacore::NewDelAllocator< T >::NewDelAllocator (  )  [inline, protected]

Definition at line 436 of file Allocator.h.


Member Data Documentation

template<typename T >
NewDelAllocator< T > casacore::NewDelAllocator< T >::value [inline, static]

an instance of this allocator.

Definition at line 434 of file Allocator.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 31 Aug 2016 for casa by  doxygen 1.6.1