casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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>

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

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

Member Typedef Documentation

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

Definition at line 369 of file Allocator.h.

Constructor & Destructor Documentation

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

Definition at line 373 of file Allocator.h.

Member Data Documentation

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

an instance of this allocator.

Definition at line 371 of file Allocator.h.


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