Nori

ClassificationStorage Class Reference

Compact storage for primitive classifcation. More...

#include <gkdtree.h>

List of all members.

Public Member Functions

 ClassificationStorage ()
 ~ClassificationStorage ()
void setPrimitiveCount (size_t size)
void set (uint32_t index, int value)
int get (uint32_t index) const
size_t size () const

Detailed Description

Compact storage for primitive classifcation.

When classifying primitives with respect to a split plane, a data structure is needed to hold the tertiary result of this operation. This class implements a compact storage (2 bits per entry) in the spirit of the std::vector<bool> specialization.

Author:
Wenzel Jakob

Definition at line 347 of file gkdtree.h.


Constructor & Destructor Documentation

ClassificationStorage::ClassificationStorage ( ) [inline]

Definition at line 349 of file gkdtree.h.

ClassificationStorage::~ClassificationStorage ( ) [inline]

Definition at line 352 of file gkdtree.h.


Member Function Documentation

int ClassificationStorage::get ( uint32_t  index) const [inline]

Definition at line 374 of file gkdtree.h.

void ClassificationStorage::set ( uint32_t  index,
int  value 
) [inline]

Definition at line 368 of file gkdtree.h.

void ClassificationStorage::setPrimitiveCount ( size_t  size) [inline]

Definition at line 357 of file gkdtree.h.

size_t ClassificationStorage::size ( ) const [inline]

Definition at line 380 of file gkdtree.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines