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

A fixed size block 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

 FixedSizeAllocator () noexcept
 
template<class U >
 FixedSizeAllocator (const FixedSizeAllocator< U > &) noexcept
 
pointer address (reference val) const
 
const_pointer address (const_reference val) const
 
pointer allocate (size_type size)
 
void deallocate (pointer ptr, size_type GALOIS_USED_ONLY_IN_DEBUG(len))
 
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 >
bool operator!= (const FixedSizeAllocator< T1 > &rhs) const
 
template<typename T1 >
bool operator== (const FixedSizeAllocator< T1 > &rhs) const
 

Detailed Description

template<typename Ty>
class galois::runtime::FixedSizeAllocator< Ty >

A fixed size block allocator.

Member Typedef Documentation

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

Constructor & Destructor Documentation

template<typename Ty>
galois::runtime::FixedSizeAllocator< Ty >::FixedSizeAllocator ( )
inlinenoexcept
template<typename Ty>
template<class U >
galois::runtime::FixedSizeAllocator< Ty >::FixedSizeAllocator ( const FixedSizeAllocator< U > &  )
inlinenoexcept

Member Function Documentation

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

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