Nori

GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext Struct Reference

Per-thread context used to manage memory allocations, also records some useful statistics. More...

#include <gkdtree.h>

List of all members.

Public Member Functions

 BuildContext (SizeType primCount, SizeType binCount)
size_t size ()
void accumulateStatisticsFrom (const BuildContext &ctx)

Public Attributes

OrderedChunkAllocator leftAlloc
OrderedChunkAllocator rightAlloc
BlockedVector< KDNode,
NORI_KD_BLOCKSIZE_KD > 
nodes
BlockedVector< IndexType,
NORI_KD_BLOCKSIZE_IDX > 
indices
ClassificationStorage classStorage
MinMaxBins minMaxBins
SizeType leafNodeCount
SizeType nonemptyLeafNodeCount
SizeType innerNodeCount
SizeType primIndexCount
SizeType retractedSplits
SizeType pruned

Detailed Description

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
struct GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext

Per-thread context used to manage memory allocations, also records some useful statistics.

Definition at line 1178 of file gkdtree.h.


Constructor & Destructor Documentation

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::BuildContext ( SizeType  primCount,
SizeType  binCount 
) [inline]

Definition at line 1192 of file gkdtree.h.


Member Function Documentation

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
void GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::accumulateStatisticsFrom ( const BuildContext ctx) [inline]

Definition at line 1210 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
size_t GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::size ( ) [inline]

Definition at line 1203 of file gkdtree.h.


Member Data Documentation

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
ClassificationStorage GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::classStorage

Definition at line 1182 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
BlockedVector<IndexType, NORI_KD_BLOCKSIZE_IDX> GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::indices

Definition at line 1181 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::innerNodeCount

Definition at line 1187 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::leafNodeCount

Definition at line 1185 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
OrderedChunkAllocator GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::leftAlloc

Definition at line 1179 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
MinMaxBins GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::minMaxBins

Definition at line 1183 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
BlockedVector<KDNode, NORI_KD_BLOCKSIZE_KD> GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::nodes

Definition at line 1180 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::nonemptyLeafNodeCount

Definition at line 1186 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::primIndexCount

Definition at line 1188 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::pruned

Definition at line 1190 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
SizeType GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::retractedSplits

Definition at line 1189 of file gkdtree.h.

template<typename BoundingBoxType, typename TreeConstructionHeuristic, typename Derived>
OrderedChunkAllocator GenericKDTree< BoundingBoxType, TreeConstructionHeuristic, Derived >::BuildContext::rightAlloc

Definition at line 1179 of file gkdtree.h.


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