Classes | Public Types | Public Member Functions | List of all members
HeapzoneAllocator< T > Class Template Reference

Allocates memory from the DgnPlatform small block heap. More...

#include <HeapzoneAllocator.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef T * pointer
 
typedef const T * const_pointer
 
typedef T & reference
 
typedef const T & const_reference
 
typedef std::size_t size_type
 
typedef std::ptrdiff_t difference_type
 

Public Member Functions

pointer address (reference value) const
 
const_pointer address (const_reference value) const
 
 HeapzoneAllocator () throw ()
 
 HeapzoneAllocator (const HeapzoneAllocator &cc) throw ()
 
template<class U >
 HeapzoneAllocator (const HeapzoneAllocator< U > &cc) throw ()
 
 ~HeapzoneAllocator () throw ()
 
size_type max_size () const throw ()
 
pointer allocate (size_type num, const void *=0)
 
void construct (pointer p, const T &value)
 
void destroy (pointer p)
 
void deallocate (pointer p, size_type num)
 

Detailed Description

template<class T>
class Bentley::Memory::HeapzoneAllocator< T >

Allocates memory from the DgnPlatform small block heap.

Remarks
Required library : RmgrTools<ApiNumber>.lib i.e. RmgrTools3.lib

Member Typedef Documentation

typedef const T* const_pointer
typedef const T& const_reference
typedef std::ptrdiff_t difference_type
typedef T* pointer
typedef T& reference
typedef std::size_t size_type
typedef T value_type

Constructor & Destructor Documentation

HeapzoneAllocator ( )
throw (
)
HeapzoneAllocator ( const HeapzoneAllocator< T > &  cc)
throw (
)
HeapzoneAllocator ( const HeapzoneAllocator< U > &  cc)
throw (
)
~HeapzoneAllocator ( )
throw (
)

Member Function Documentation

pointer address ( reference  value) const
const_pointer address ( const_reference  value) const
pointer allocate ( size_type  num,
const void *  = 0 
)
void construct ( pointer  p,
const T &  value 
)
void deallocate ( pointer  p,
size_type  num 
)
void destroy ( pointer  p)
size_type max_size ( ) const
throw (
)

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

Copyright © 2017 Bentley Systems, Incorporated. All rights reserved.