VulkanRaytracingCycles 0.0.0
Cycles Render Engine With VulkanRaytracingShaderModules. ( Experiment , in progress)
vkmm::StlAllocator< T > Class Template Reference

#include <AllocatorVk.h>

Public Types

typedef T value_type
 

Public Member Functions

 StlAllocator ()
 
 StlAllocator (const VkAllocationCallbacks *pCallbacks)
 
template<typename U >
 StlAllocator (const StlAllocator< U > &src)
 
T * allocate (size_t n)
 
void deallocate (T *p, size_t n)
 
template<typename U >
bool operator== (const StlAllocator< U > &rhs) const
 
template<typename U >
bool operator!= (const StlAllocator< U > &rhs) const
 
StlAllocatoroperator= (const StlAllocator &x)=delete
 

Public Attributes

const VkAllocationCallbacks *const m_pCallbacks
 

Detailed Description

template<typename T>
class vkmm::StlAllocator< T >

Definition at line 875 of file AllocatorVk.h.

Member Typedef Documentation

◆ value_type

template<typename T >
typedef T vkmm::StlAllocator< T >::value_type

Definition at line 879 of file AllocatorVk.h.

Constructor & Destructor Documentation

◆ StlAllocator() [1/3]

template<typename T >
vkmm::StlAllocator< T >::StlAllocator ( )
inline

Definition at line 880 of file AllocatorVk.h.

880:m_pCallbacks(nullptr) { };
const VkAllocationCallbacks *const m_pCallbacks
Definition: AllocatorVk.h:878

◆ StlAllocator() [2/3]

template<typename T >
vkmm::StlAllocator< T >::StlAllocator ( const VkAllocationCallbacks *  pCallbacks)
inline

Definition at line 881 of file AllocatorVk.h.

881: m_pCallbacks(pCallbacks) { }

◆ StlAllocator() [3/3]

template<typename T >
template<typename U >
vkmm::StlAllocator< T >::StlAllocator ( const StlAllocator< U > &  src)
inline

Definition at line 882 of file AllocatorVk.h.

882: m_pCallbacks(src.m_pCallbacks) { }

Member Function Documentation

◆ allocate()

template<typename T >
T * vkmm::StlAllocator< T >::allocate ( size_t  n)
inline

Definition at line 884 of file AllocatorVk.h.

884{ return AllocateArray<T>(m_pCallbacks, n); }

◆ deallocate()

template<typename T >
void vkmm::StlAllocator< T >::deallocate ( T *  p,
size_t  n 
)
inline

Definition at line 885 of file AllocatorVk.h.

885{ Free(m_pCallbacks, p); }
void Free(Allocator hAllocator, void *ptr)

◆ operator!=()

template<typename T >
template<typename U >
bool vkmm::StlAllocator< T >::operator!= ( const StlAllocator< U > &  rhs) const
inline

Definition at line 893 of file AllocatorVk.h.

894 {
895 return m_pCallbacks != rhs.m_pCallbacks;
896 }

◆ operator=()

template<typename T >
StlAllocator & vkmm::StlAllocator< T >::operator= ( const StlAllocator< T > &  x)
delete

◆ operator==()

template<typename T >
template<typename U >
bool vkmm::StlAllocator< T >::operator== ( const StlAllocator< U > &  rhs) const
inline

Definition at line 888 of file AllocatorVk.h.

889 {
890 return m_pCallbacks == rhs.m_pCallbacks;
891 }

Member Data Documentation

◆ m_pCallbacks

template<typename T >
const VkAllocationCallbacks* const vkmm::StlAllocator< T >::m_pCallbacks

Definition at line 878 of file AllocatorVk.h.


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