amino
Lightweight Robot Utility Library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
amino::RegionAllocator< T > Class Template Reference

An STL allocator that allocates out of a memory region. More...

#include <mem.hpp>

Classes

struct  rebind
 

Public Types

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

Public Member Functions

 RegionAllocator (aa_mem_region_t *r)
 
 RegionAllocator (const RegionAllocator &other)
 
template<class U >
 RegionAllocator (const RegionAllocator< U > &other)
 
pointer address (reference r)
 
const_pointer address (const_reference r)
 
pointer allocate (size_type cnt, typename std::allocator< void >::const_pointer=0)
 
void deallocate (pointer p, size_type)
 
size_type max_size () const
 
template<class U >
RegionAllocatoroperator= (const RegionAllocator< U > &)
 
void construct (pointer p, const T &t)
 
void destroy (pointer p)
 
bool operator== (RegionAllocator const &a)
 
bool operator!= (RegionAllocator const &a)
 

Public Attributes

aa_mem_regionregion
 

Detailed Description

template<class T>
class amino::RegionAllocator< T >

An STL allocator that allocates out of a memory region.

Definition at line 74 of file mem.hpp.


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