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

#include <AllocatorVk.h>

Classes

struct  rebind
 

Public Types

typedef Allocator< T > base_allocator_type
 
typedef base_allocator_type::value_type value_type
 
typedef base_allocator_type::pointer pointer
 
typedef base_allocator_type::const_pointer const_pointer
 
typedef base_allocator_type::reference reference
 
typedef base_allocator_type::const_reference const_reference
 
typedef base_allocator_type::size_type size_type
 
typedef base_allocator_type::difference_type difference_type
 

Public Member Functions

 debug_allocator () throw ()
 
 debug_allocator (const debug_allocator &a) throw ()
 
template<typename U >
 debug_allocator (const debug_allocator< U > &a) throw ()
 
pointer allocate (const size_type n, const void *hint=0)
 

Detailed Description

template<typename T, template< typename X > class Allocator = std::allocator>
class front::debug_allocator< T, Allocator >

Definition at line 356 of file AllocatorVk.h.

Inheritance diagram for front::debug_allocator< T, Allocator >:

Member Typedef Documentation

◆ base_allocator_type

template<typename T , template< typename X > class Allocator = std::allocator>
typedef Allocator<T> front::debug_allocator< T, Allocator >::base_allocator_type

Definition at line 359 of file AllocatorVk.h.

◆ const_pointer

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::const_pointer front::debug_allocator< T, Allocator >::const_pointer

Definition at line 362 of file AllocatorVk.h.

◆ const_reference

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::const_reference front::debug_allocator< T, Allocator >::const_reference

Definition at line 364 of file AllocatorVk.h.

◆ difference_type

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::difference_type front::debug_allocator< T, Allocator >::difference_type

Definition at line 366 of file AllocatorVk.h.

◆ pointer

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::pointer front::debug_allocator< T, Allocator >::pointer

Definition at line 361 of file AllocatorVk.h.

◆ reference

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::reference front::debug_allocator< T, Allocator >::reference

Definition at line 363 of file AllocatorVk.h.

◆ size_type

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::size_type front::debug_allocator< T, Allocator >::size_type

Definition at line 365 of file AllocatorVk.h.

◆ value_type

template<typename T , template< typename X > class Allocator = std::allocator>
typedef base_allocator_type::value_type front::debug_allocator< T, Allocator >::value_type

Definition at line 360 of file AllocatorVk.h.

Constructor & Destructor Documentation

◆ debug_allocator() [1/3]

template<typename T , template< typename X > class Allocator = std::allocator>
front::debug_allocator< T, Allocator >::debug_allocator ( )
throw (
)
inline

Definition at line 371 of file AllocatorVk.h.

371{ }

◆ debug_allocator() [2/3]

template<typename T , template< typename X > class Allocator = std::allocator>
front::debug_allocator< T, Allocator >::debug_allocator ( const debug_allocator< T, Allocator > &  a)
throw (
)
inline

Definition at line 372 of file AllocatorVk.h.

372: base_allocator_type(a) { }
Allocator< T > base_allocator_type
Definition: AllocatorVk.h:359

◆ debug_allocator() [3/3]

template<typename T , template< typename X > class Allocator = std::allocator>
template<typename U >
front::debug_allocator< T, Allocator >::debug_allocator ( const debug_allocator< U > &  a)
throw (
)
inline

Definition at line 374 of file AllocatorVk.h.

374: base_allocator_type(Allocator<U>(a)) { }

Member Function Documentation

◆ allocate()

template<typename T , template< typename X > class Allocator = std::allocator>
pointer front::debug_allocator< T, Allocator >::allocate ( const size_type  n,
const void *  hint = 0 
)
inline

Definition at line 376 of file AllocatorVk.h.

376 {
377 pointer ptr = base_allocator_type::allocate(n, hint);
378 std::memset((void*)ptr, 0xE3E3E3E3, n * sizeof(value_type));
379 return ptr;
380 }
base_allocator_type::pointer pointer
Definition: AllocatorVk.h:361
base_allocator_type::value_type value_type
Definition: AllocatorVk.h:360

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