OmniSciDB  d2f719934e
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
RenderAllocator Class Reference

#include <RenderAllocator.h>

+ Inheritance diagram for RenderAllocator:
+ Collaboration diagram for RenderAllocator:

Public Member Functions

 RenderAllocator (int8_t *preallocated_ptr, const size_t preallocated_size, const size_t device_id)
 
int8_t * alloc (const size_t bytes) final
 
void markChunkComplete ()
 
size_t getCurrentChunkOffset () const
 
size_t getCurrentChunkSize () const
 
size_t getAllocatedSize () const
 
int8_t * getBasePtr () const
 
- Public Member Functions inherited from Allocator
 Allocator ()
 
virtual ~Allocator ()
 

Private Attributes

int8_t * preallocated_ptr_
 
const size_t preallocated_size_
 
const size_t device_id_
 
size_t crt_chunk_offset_bytes_
 
size_t crt_allocated_bytes_
 
std::unique_ptr< std::mutex > alloc_mtx_ptr_
 

Detailed Description

Definition at line 52 of file RenderAllocator.h.

Constructor & Destructor Documentation

RenderAllocator::RenderAllocator ( int8_t *  preallocated_ptr,
const size_t  preallocated_size,
const size_t  device_id 
)

Definition at line 21 of file RenderAllocator.cpp.

24  : preallocated_size_{preallocated_size}, device_id_{device_id} {
25  CHECK(false);
26 }
const size_t preallocated_size_
const size_t device_id_
#define CHECK(condition)
Definition: Logger.h:211

Member Function Documentation

int8_t * RenderAllocator::alloc ( const size_t  bytes)
finalvirtual

Implements Allocator.

Definition at line 28 of file RenderAllocator.cpp.

References CHECK.

28  {
29  CHECK(false);
30  return 0;
31 }
#define CHECK(condition)
Definition: Logger.h:211
size_t RenderAllocator::getAllocatedSize ( ) const

Definition at line 47 of file RenderAllocator.cpp.

References CHECK.

Referenced by QueryMemoryInitializer::createAndInitializeGroupByBufferGpu().

47  {
48  CHECK(false);
49  return 0;
50 }
#define CHECK(condition)
Definition: Logger.h:211

+ Here is the caller graph for this function:

int8_t * RenderAllocator::getBasePtr ( ) const

Definition at line 52 of file RenderAllocator.cpp.

References CHECK.

52  {
53  CHECK(false);
54  return nullptr;
55 }
#define CHECK(condition)
Definition: Logger.h:211
size_t RenderAllocator::getCurrentChunkOffset ( ) const

Definition at line 37 of file RenderAllocator.cpp.

References CHECK.

37  {
38  CHECK(false);
39  return 0;
40 }
#define CHECK(condition)
Definition: Logger.h:211
size_t RenderAllocator::getCurrentChunkSize ( ) const

Definition at line 42 of file RenderAllocator.cpp.

References CHECK.

42  {
43  CHECK(false);
44  return 0;
45 }
#define CHECK(condition)
Definition: Logger.h:211
void RenderAllocator::markChunkComplete ( )

Definition at line 33 of file RenderAllocator.cpp.

References CHECK.

33  {
34  CHECK(false);
35 }
#define CHECK(condition)
Definition: Logger.h:211

Member Data Documentation

std::unique_ptr<std::mutex> RenderAllocator::alloc_mtx_ptr_
private

Definition at line 75 of file RenderAllocator.h.

size_t RenderAllocator::crt_allocated_bytes_
private

Definition at line 73 of file RenderAllocator.h.

size_t RenderAllocator::crt_chunk_offset_bytes_
private

Definition at line 72 of file RenderAllocator.h.

const size_t RenderAllocator::device_id_
private

Definition at line 71 of file RenderAllocator.h.

int8_t* RenderAllocator::preallocated_ptr_
private

Definition at line 69 of file RenderAllocator.h.

const size_t RenderAllocator::preallocated_size_
private

Definition at line 70 of file RenderAllocator.h.


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