dune-fem 2.8.0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Public Attributes | List of all members
Dune::Fem::PODArrayAllocator< T > Class Template Reference

#include <dune/fem/storage/dynamicarray.hh>

Inheritance diagram for Dune::Fem::PODArrayAllocator< T >:
Inheritance graph

Public Types

typedef BaseType::pointer pointer
 
typedef BaseType::size_type size_type
 
typedef BaseType::value_type value_type
 

Public Member Functions

 PODArrayAllocator ()=default
 
pointer allocate (size_type n)
 allocate array of nmemb objects of type T
 
void deallocate (pointer p, size_type n)
 release memory previously allocated with malloc member
 
pointer reallocate (pointer oldMem, size_type oldSize, size_type n)
 allocate array of nmemb objects of type T
 

Public Attributes

elements
 STL member.
 

Detailed Description

template<typename T>
class Dune::Fem::PODArrayAllocator< T >

allocator for simple structures like int, double and float using the C malloc, free and realloc

Member Typedef Documentation

◆ pointer

template<typename T >
typedef BaseType::pointer Dune::Fem::PODArrayAllocator< T >::pointer

◆ size_type

template<typename T >
typedef BaseType::size_type Dune::Fem::PODArrayAllocator< T >::size_type

◆ value_type

template<typename T >
typedef BaseType::value_type Dune::Fem::PODArrayAllocator< T >::value_type

Constructor & Destructor Documentation

◆ PODArrayAllocator()

template<typename T >
Dune::Fem::PODArrayAllocator< T >::PODArrayAllocator ( )
default

Member Function Documentation

◆ allocate()

template<typename T >
pointer Dune::Fem::PODArrayAllocator< T >::allocate ( size_type  n)
inline

allocate array of nmemb objects of type T

◆ deallocate()

template<typename T >
void Dune::Fem::PODArrayAllocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

release memory previously allocated with malloc member

◆ reallocate()

template<typename T >
pointer Dune::Fem::PODArrayAllocator< T >::reallocate ( pointer  oldMem,
size_type  oldSize,
size_type  n 
)
inline

allocate array of nmemb objects of type T

Member Data Documentation

◆ elements

T std::allocator< T >::elements
inherited

STL member.


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