FPGA Resource Manager C++ API  1.5
inaccel::allocator< T > Class Template Reference

Custom allocator intended for std::vector. More...

Inheritance diagram for inaccel::allocator< T >:
Collaboration diagram for inaccel::allocator< T >:

Data Structures

struct  rebind
 

Public Types

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

Public Member Functions

 allocator () throw ()
 
 allocator (const allocator &a) throw ()
 
 ~allocator () throw ()
 
pointer address (reference value) const
 
const_pointer address (const_reference value) const
 
void construct (pointer p, reference value)
 
pointer allocate (size_type n, const void *hint=0)
 
void deallocate (pointer p, size_type n)
 

Data Fields

int id
 

Detailed Description

template<typename T>
class inaccel::allocator< T >

Custom allocator intended for std::vector.

This class should by no means be considered as a standalone class since it is implemented to support the inaccel::vector data structure.

Member Typedef Documentation

template<typename T >
typedef const T* inaccel::allocator< T >::const_pointer
template<typename T >
typedef const T& inaccel::allocator< T >::const_reference
template<typename T >
typedef std::ptrdiff_t inaccel::allocator< T >::difference_type
template<typename T >
typedef T* inaccel::allocator< T >::pointer
template<typename T >
typedef T& inaccel::allocator< T >::reference
template<typename T >
typedef std::size_t inaccel::allocator< T >::size_type
template<typename T >
typedef T inaccel::allocator< T >::value_type

Constructor & Destructor Documentation

template<typename T >
inaccel::allocator< T >::allocator ( )
throw (
)
inline
template<typename T >
inaccel::allocator< T >::allocator ( const allocator< T > &  a)
throw (
)
inline
template<typename T >
inaccel::allocator< T >::~allocator ( )
throw (
)
inline

Member Function Documentation

template<typename T >
pointer inaccel::allocator< T >::address ( reference  value) const
inline
template<typename T >
const_pointer inaccel::allocator< T >::address ( const_reference  value) const
inline
template<typename T >
pointer inaccel::allocator< T >::allocate ( size_type  n,
const void *  hint = 0 
)
inline
template<typename T >
void inaccel::allocator< T >::construct ( pointer  p,
reference  value 
)
inline
template<typename T >
void inaccel::allocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline

Field Documentation

template<typename T >
int inaccel::allocator< T >::id