OmniSciDB  49c0524acb
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ColumnBitmap Class Reference

#include <ColumnarResults.h>

Public Member Functions

 ColumnBitmap (const size_t num_elements)
 
bool get (const size_t index) const
 
void set (const size_t index, const bool val)
 

Private Attributes

std::vector< bool > bitmap_
 

Detailed Description

A helper data structure to track non-empty entries in the input buffer Currently only used for direct columnarization with columnar outputs.

Definition at line 38 of file ColumnarResults.h.

Constructor & Destructor Documentation

ColumnBitmap::ColumnBitmap ( const size_t  num_elements)
inline

Definition at line 40 of file ColumnarResults.h.

40 : bitmap_(num_elements, false) {}
std::vector< bool > bitmap_

Member Function Documentation

bool ColumnBitmap::get ( const size_t  index) const
inline

Definition at line 42 of file ColumnarResults.h.

References bitmap_, and CHECK.

42  {
43  CHECK(index < bitmap_.size());
44  return bitmap_[index];
45  }
std::vector< bool > bitmap_
#define CHECK(condition)
Definition: Logger.h:187
void ColumnBitmap::set ( const size_t  index,
const bool  val 
)
inline

Definition at line 47 of file ColumnarResults.h.

References bitmap_, and CHECK.

47  {
48  CHECK(index < bitmap_.size());
49  bitmap_[index] = val;
50  }
std::vector< bool > bitmap_
#define CHECK(condition)
Definition: Logger.h:187

Member Data Documentation

std::vector<bool> ColumnBitmap::bitmap_
private

Definition at line 53 of file ColumnarResults.h.

Referenced by get(), and set().


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