Jolt Physics
A multi core friendly Game Physics Engine
Loading...
Searching...
No Matches
STLTempAllocator< T > Class Template Reference

STL allocator that wraps around TempAllocator. More...

#include <STLTempAllocator.h>

Classes

struct  rebind
 Converting to allocator for other type. More...
 

Public Types

using value_type = T
 
using pointer = T *
 Pointer to type.
 
using const_pointer = const T *
 
using reference = T &
 
using const_reference = const T &
 
using size_type = size_t
 
using difference_type = ptrdiff_t
 
using is_always_equal = std::false_type
 The allocator is not stateless (depends on the temp allocator)
 

Public Member Functions

 STLTempAllocator (TempAllocator &inAllocator)
 Constructor.
 
template<typename T2 >
 STLTempAllocator (const STLTempAllocator< T2 > &inRHS)
 Constructor from other allocator.
 
pointer allocate (size_type inN)
 Allocate memory.
 
void deallocate (pointer inPointer, size_type inN)
 Free memory.
 
bool operator== (const STLTempAllocator< T > &inRHS) const
 Allocators are not-stateless, assume if allocator address matches that the allocators are the same.
 
bool operator!= (const STLTempAllocator< T > &inRHS) const
 
TempAllocatorGetAllocator () const
 Get our temp allocator.
 

Detailed Description

template<typename T>
class STLTempAllocator< T >

STL allocator that wraps around TempAllocator.

Member Typedef Documentation

◆ const_pointer

template<typename T >
using STLTempAllocator< T >::const_pointer = const T *

◆ const_reference

template<typename T >
using STLTempAllocator< T >::const_reference = const T &

◆ difference_type

template<typename T >
using STLTempAllocator< T >::difference_type = ptrdiff_t

◆ is_always_equal

template<typename T >
using STLTempAllocator< T >::is_always_equal = std::false_type

The allocator is not stateless (depends on the temp allocator)

◆ pointer

template<typename T >
using STLTempAllocator< T >::pointer = T *

Pointer to type.

◆ reference

template<typename T >
using STLTempAllocator< T >::reference = T &

Reference to type. Can be removed in C++20.

◆ size_type

template<typename T >
using STLTempAllocator< T >::size_type = size_t

◆ value_type

template<typename T >
using STLTempAllocator< T >::value_type = T

Constructor & Destructor Documentation

◆ STLTempAllocator() [1/2]

template<typename T >
STLTempAllocator< T >::STLTempAllocator ( TempAllocator inAllocator)
inline

Constructor.

◆ STLTempAllocator() [2/2]

template<typename T >
template<typename T2 >
STLTempAllocator< T >::STLTempAllocator ( const STLTempAllocator< T2 > &  inRHS)
inlineexplicit

Constructor from other allocator.

Member Function Documentation

◆ allocate()

template<typename T >
pointer STLTempAllocator< T >::allocate ( size_type  inN)
inline

Allocate memory.

◆ deallocate()

template<typename T >
void STLTempAllocator< T >::deallocate ( pointer  inPointer,
size_type  inN 
)
inline

Free memory.

◆ GetAllocator()

template<typename T >
TempAllocator & STLTempAllocator< T >::GetAllocator ( ) const
inline

Get our temp allocator.

◆ operator!=()

template<typename T >
bool STLTempAllocator< T >::operator!= ( const STLTempAllocator< T > &  inRHS) const
inline

◆ operator==()

template<typename T >
bool STLTempAllocator< T >::operator== ( const STLTempAllocator< T > &  inRHS) const
inline

Allocators are not-stateless, assume if allocator address matches that the allocators are the same.


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