OmniSciDB  04ee39c94c
RenderAllocatorMap Class Reference

#include <RenderAllocator.h>

Classes

struct  HostBufferDeleter
 

Public Member Functions

 RenderAllocatorMap (::QueryRenderer::QueryRenderManager *render_manager, const unsigned block_size_x, const unsigned grid_size_x)
 
 ~RenderAllocatorMap ()
 
RenderAllocatorgetRenderAllocator (size_t device_id)
 
RenderAllocatoroperator[] (size_t device_id)
 
size_t size () const
 
void bufferData (int8_t *data, const size_t num_data_bytes, const size_t device_id)
 
void setDataLayout (const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)
 
void prepForRendering (const std::shared_ptr<::QueryRenderer::QueryDataLayout > &query_data_layout)
 

Private Types

using HostBufPtrType = std::unique_ptr< int8_t, HostBufferDeleter >
 

Private Attributes

::QueryRenderer::QueryRenderManager * render_manager_
 
std::vector< RenderAllocatorrender_allocator_map_
 
HostBufPtrType host_render_buffer_
 

Detailed Description

Definition at line 88 of file RenderAllocator.h.

Member Typedef Documentation

◆ HostBufPtrType

using RenderAllocatorMap::HostBufPtrType = std::unique_ptr<int8_t, HostBufferDeleter>
private

Definition at line 115 of file RenderAllocator.h.

Constructor & Destructor Documentation

◆ RenderAllocatorMap()

RenderAllocatorMap::RenderAllocatorMap ( ::QueryRenderer::QueryRenderManager *  render_manager,
const unsigned  block_size_x,
const unsigned  grid_size_x 
)

Definition at line 65 of file RenderAllocator.cpp.

References CHECK.

68  {
69  CHECK(false);
70 }
#define CHECK(condition)
Definition: Logger.h:187

◆ ~RenderAllocatorMap()

RenderAllocatorMap::~RenderAllocatorMap ( )

Definition at line 72 of file RenderAllocator.cpp.

72 {}

Member Function Documentation

◆ bufferData()

void RenderAllocatorMap::bufferData ( int8_t *  data,
const size_t  num_data_bytes,
const size_t  device_id 
)

Definition at line 84 of file RenderAllocator.cpp.

References CHECK.

86  {
87  CHECK(false);
88 }
#define CHECK(condition)
Definition: Logger.h:187

◆ getRenderAllocator()

RenderAllocator * RenderAllocatorMap::getRenderAllocator ( size_t  device_id)

Definition at line 74 of file RenderAllocator.cpp.

References CHECK.

Referenced by anonymous_namespace{QueryMemoryInitializer.cpp}::alloc_group_by_buffer(), and QueryExecutionContext::launchGpuCode().

74  {
75  CHECK(false);
76  return nullptr;
77 }
#define CHECK(condition)
Definition: Logger.h:187
+ Here is the caller graph for this function:

◆ operator[]()

RenderAllocator * RenderAllocatorMap::operator[] ( size_t  device_id)

Definition at line 79 of file RenderAllocator.cpp.

References CHECK.

79  {
80  CHECK(false);
81  return nullptr;
82 }
#define CHECK(condition)
Definition: Logger.h:187

◆ prepForRendering()

void RenderAllocatorMap::prepForRendering ( const std::shared_ptr<::QueryRenderer::QueryDataLayout > &  query_data_layout)

Definition at line 95 of file RenderAllocator.cpp.

References CHECK.

96  {
97  CHECK(false);
98 }
#define CHECK(condition)
Definition: Logger.h:187

◆ setDataLayout()

void RenderAllocatorMap::setDataLayout ( const std::shared_ptr<::QueryRenderer::QueryDataLayout > &  query_data_layout)

Definition at line 90 of file RenderAllocator.cpp.

References CHECK.

91  {
92  CHECK(false);
93 }
#define CHECK(condition)
Definition: Logger.h:187

◆ size()

size_t RenderAllocatorMap::size ( ) const
inline

Definition at line 97 of file RenderAllocator.h.

97 { return render_allocator_map_.size(); }
std::vector< RenderAllocator > render_allocator_map_

Member Data Documentation

◆ host_render_buffer_

HostBufPtrType RenderAllocatorMap::host_render_buffer_
private

Definition at line 116 of file RenderAllocator.h.

◆ render_allocator_map_

std::vector<RenderAllocator> RenderAllocatorMap::render_allocator_map_
private

Definition at line 107 of file RenderAllocator.h.

◆ render_manager_

::QueryRenderer::QueryRenderManager* RenderAllocatorMap::render_manager_
private

Definition at line 106 of file RenderAllocator.h.


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