Hoops Visualize HPS  version 2018-SP2
Hoops Visualize HPS 3D Rendering Engine
Looking for a senior C++ dev?
I'm looking for work. Hire me!
HPS::Allocator< T > Class Template Reference

The Allocator class is a memory allocator suitable for STL container classes that uses memory in the Visualize memory space. More...

#include <hps.h>

Classes

struct  rebind
 

Public Types

typedef T value_type
 
typedef value_typepointer
 
typedef value_type const * const_pointer
 
typedef value_typereference
 
typedef value_type const & const_reference
 
typedef size_t size_type
 
typedef ptrdiff_t difference_type
 

Public Member Functions

 Allocator ()
 
 Allocator (Allocator< T > const &in_that)
 
 ~Allocator ()
 
template<typename U >
 Allocator (Allocator< U > const &)
 
pointer address (reference x) const
 
const_pointer address (const_reference x) const
 
pointer allocate (size_type n, void *v=0)
 
void deallocate (pointer p, size_type n)
 
template<typename U , typename... Args>
void construct (U *p, Args &&... args)
 
void destroy (pointer p)
 
size_type max_size () const
 

Detailed Description

template<typename T>
class HPS::Allocator< T >

The Allocator class is a memory allocator suitable for STL container classes that uses memory in the Visualize memory space.

Member Typedef Documentation

◆ const_pointer

template<typename T>
typedef value_type const* HPS::Allocator< T >::const_pointer

◆ const_reference

template<typename T>
typedef value_type const& HPS::Allocator< T >::const_reference

◆ difference_type

template<typename T>
typedef ptrdiff_t HPS::Allocator< T >::difference_type

◆ pointer

template<typename T>
typedef value_type* HPS::Allocator< T >::pointer

◆ reference

template<typename T>
typedef value_type& HPS::Allocator< T >::reference

◆ size_type

template<typename T>
typedef size_t HPS::Allocator< T >::size_type

◆ value_type

template<typename T>
typedef T HPS::Allocator< T >::value_type

Constructor & Destructor Documentation

◆ Allocator() [1/3]

template<typename T>
HPS::Allocator< T >::Allocator ( )
inline

◆ Allocator() [2/3]

template<typename T>
HPS::Allocator< T >::Allocator ( Allocator< T > const &  in_that)
inline

◆ ~Allocator()

template<typename T>
HPS::Allocator< T >::~Allocator ( )
inline

◆ Allocator() [3/3]

template<typename T>
template<typename U >
HPS::Allocator< T >::Allocator ( Allocator< U > const &  )
inline

Member Function Documentation

◆ address() [1/2]

template<typename T>
pointer HPS::Allocator< T >::address ( reference  x) const
inline

◆ address() [2/2]

template<typename T>
const_pointer HPS::Allocator< T >::address ( const_reference  x) const
inline

◆ allocate()

template<typename T>
pointer HPS::Allocator< T >::allocate ( size_type  n,
void *  v = 0 
)
inline
Here is the call graph for this function:

◆ construct()

template<typename T>
template<typename U , typename... Args>
void HPS::Allocator< T >::construct ( U p,
Args &&...  args 
)
inline

◆ deallocate()

template<typename T>
void HPS::Allocator< T >::deallocate ( pointer  p,
size_type  n 
)
inline
Here is the call graph for this function:

◆ destroy()

template<typename T>
void HPS::Allocator< T >::destroy ( pointer  p)
inline

◆ max_size()

template<typename T>
size_type HPS::Allocator< T >::max_size ( ) const
inline

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