Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

vhdABTTree Class Reference

A cache-oblivious ABT Tree implementation. More...

#include <vhdABTTree.h>

Collaboration diagram for vhdABTTree:

Collaboration graph
[legend]
List of all members.

Public Types

typedef bool( vhdABTTreeIsVisibleVisitFunc )(const vhdAxisAlignedBox &)
typedef void( vhdABTTreeVisitFunc )(unsigned int uiCurrentPos, unsigned int uiIndex, const vhdAxisAlignedBox &bbox)

Public Member Functions

 vhdABTTree ()
void traversal ()
void create (uint32 nObjects)
void create (unsigned int nCacheLineSize, unsigned int nLeafSize)
void destroy ()

Public Attributes

vhdABTTreeIsVisibleVisitFunc * funcIsVisible
vhdABTTreeVisitFunc * funcVisit
vhdABTTreeNode * _pNode
vhdABTTreeLeaf * _pLeaf

Detailed Description

A cache-oblivious ABT Tree implementation.

This class provided in a single instance the creation and execution routine of an effective cache-oblivious implementation of the ABT Tree The user have to choose the proper cache line size among the end-user platform. Most hardware provide 32/64 bytes (see manufaturer docs) modify the ABTTREE_CACHE_LINE_BYTES accordingly

Author:
Sebastien Schertenleib Sebastien.Schertenleib@epfl.ch
Version:
0.0.1

Definition at line 89 of file vhdABTTree.h.


Member Typedef Documentation

typedef bool( vhdABTTree::vhdABTTreeIsVisibleVisitFunc)(const vhdAxisAlignedBox &)
 

callback for catching the is visible testDefinition at line 107 of file vhdABTTree.h.


Constructor & Destructor Documentation

vhdABTTree::vhdABTTree (   ) 
 

constructorDefinition at line 88 of file vhdABTTree.cpp.

References funcIsVisible, and funcVisit.


Member Function Documentation

void vhdABTTree::create (  unsigned int  nCacheLineSize,
unsigned int  nLeafSize
) 
 

create (can be used when size are already known)

nCacheLineSize cache line size nLeafSize leaves's numberDefinition at line 133 of file vhdABTTree.cpp.

void vhdABTTree::create (  uint32  nObjects  ) 
 

create

Parameters:
nObjects nb object in the tree
Definition at line 99 of file vhdABTTree.cpp.

References vhdSceneConverterABTTree::findGlobalAABB(), and vhdSceneConverterABTTree::getChildren().

void vhdABTTree::destroy (   ) 
 

destroyDefinition at line 126 of file vhdABTTree.cpp.

void vhdABTTree::traversal (   ) 
 

tree traversalDefinition at line 592 of file vhdABTTree.cpp.


Member Data Documentation

vhdABTTreeIsVisibleVisitFunc* vhdABTTree::funcIsVisible
 

A callback function for visiting a ABT-tree node. If this function returns true the traversal will continue.

Parameters:
box the AxisAlignedBox to test!
Returns:
true if the current axix aligned box is visible or not
Definition at line 115 of file vhdABTTree.h.

Referenced by vhdABTTree().

vhdABTTreeVisitFunc* vhdABTTree::funcVisit
 

A callback function informing that a particular leaf is visible.Definition at line 120 of file vhdABTTree.h.

Referenced by vhdABTTree().


Generated on Sun Oct 3 16:32:22 2004 for vhdABTTree by doxygen 1.3.8