Galois
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
galois::runtime::ExternalHeapAllocator< Ty, HeapTy > Class Template Reference

Keep a reference to an external allocator. More...

#include <Mem.h>

Classes

struct  rebind
 

Public Types

typedef size_t size_type
 
typedef ptrdiff_t difference_type
 
typedef Ty * pointer
 
typedef const Ty * const_pointer
 
typedef Ty & reference
 
typedef const Ty & const_reference
 
typedef Ty value_type
 

Public Member Functions

 ExternalHeapAllocator (HeapTy *a) noexcept
 
template<class T1 >
 ExternalHeapAllocator (const ExternalHeapAllocator< T1, HeapTy > &rhs) noexcept
 
pointer address (reference val) const
 
const_pointer address (const_reference val) const
 
pointer allocate (size_type size)
 
void deallocate (pointer ptr, size_type)
 
void construct (pointer ptr, const_reference val) const
 
template<class U , class... Args>
void construct (U *p, Args &&...args) const
 
void destroy (pointer ptr) const
 
size_type max_size () const noexcept
 
template<typename T1 , typename A1 >
bool operator!= (const ExternalHeapAllocator< T1, A1 > &rhs) const
 
template<typename T1 , typename A1 >
bool operator== (const ExternalHeapAllocator< T1, A1 > &rhs) const
 

Public Attributes

HeapTy * heap
 

Detailed Description

template<typename Ty, typename HeapTy>
class galois::runtime::ExternalHeapAllocator< Ty, HeapTy >

Keep a reference to an external allocator.

Examples:
lonestar/tutorial_examples/ThirdPartyMalloc.cpp.

Member Typedef Documentation

template<typename Ty, typename HeapTy>
typedef const Ty* galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::const_pointer
template<typename Ty, typename HeapTy>
typedef const Ty& galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::const_reference
template<typename Ty, typename HeapTy>
typedef ptrdiff_t galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::difference_type
template<typename Ty, typename HeapTy>
typedef Ty* galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::pointer
template<typename Ty, typename HeapTy>
typedef Ty& galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::reference
template<typename Ty, typename HeapTy>
typedef size_t galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::size_type
template<typename Ty, typename HeapTy>
typedef Ty galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::value_type

Constructor & Destructor Documentation

template<typename Ty, typename HeapTy>
galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::ExternalHeapAllocator ( HeapTy *  a)
inlineexplicitnoexcept
template<typename Ty, typename HeapTy>
template<class T1 >
galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::ExternalHeapAllocator ( const ExternalHeapAllocator< T1, HeapTy > &  rhs)
inlinenoexcept

Member Function Documentation

template<typename Ty, typename HeapTy>
pointer galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::address ( reference  val) const
inline
template<typename Ty, typename HeapTy>
const_pointer galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::address ( const_reference  val) const
inline
template<typename Ty, typename HeapTy>
pointer galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::allocate ( size_type  size)
inline
template<typename Ty, typename HeapTy>
void galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::construct ( pointer  ptr,
const_reference  val 
) const
inline
template<typename Ty, typename HeapTy>
template<class U , class... Args>
void galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::construct ( U *  p,
Args &&...  args 
) const
inline
template<typename Ty, typename HeapTy>
void galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::deallocate ( pointer  ptr,
size_type   
)
inline
template<typename Ty, typename HeapTy>
void galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::destroy ( pointer  ptr) const
inline
template<typename Ty, typename HeapTy>
size_type galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::max_size ( ) const
inlinenoexcept
template<typename Ty, typename HeapTy>
template<typename T1 , typename A1 >
bool galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::operator!= ( const ExternalHeapAllocator< T1, A1 > &  rhs) const
inline
template<typename Ty, typename HeapTy>
template<typename T1 , typename A1 >
bool galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::operator== ( const ExternalHeapAllocator< T1, A1 > &  rhs) const
inline

Member Data Documentation

template<typename Ty, typename HeapTy>
HeapTy* galois::runtime::ExternalHeapAllocator< Ty, HeapTy >::heap

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