SPH
Public Member Functions | Public Attributes | List of all members
LeafNode< TBase > Struct Template Reference

Leaf (bucket) node of K-d tree. More...

#include <KdTree.h>

Inheritance diagram for LeafNode< TBase >:

Public Member Functions

 LeafNode (const KdNode::Type &type)
 
INLINE Size size () const
 Returns the number of points in the leaf. Can be zero. More...
 

Public Attributes

Size from
 First index of particlse belonging to the leaf. More...
 
Size to
 One-past-last index of particles belonging to the leaf. More...
 
Size padding
 Unused, used so that LeafNode and InnerNode have the same size. More...
 

Detailed Description

template<typename TBase>
struct LeafNode< TBase >

Leaf (bucket) node of K-d tree.

Definition at line 61 of file KdTree.h.

Constructor & Destructor Documentation

◆ LeafNode()

template<typename TBase >
LeafNode< TBase >::LeafNode ( const KdNode::Type type)
inline

Definition at line 71 of file KdTree.h.

Member Function Documentation

◆ size()

template<typename TBase >
INLINE Size LeafNode< TBase >::size ( ) const
inline

Returns the number of points in the leaf. Can be zero.

Definition at line 75 of file KdTree.h.

Member Data Documentation

◆ from

template<typename TBase >
Size LeafNode< TBase >::from

First index of particlse belonging to the leaf.

Definition at line 63 of file KdTree.h.

◆ padding

template<typename TBase >
Size LeafNode< TBase >::padding

Unused, used so that LeafNode and InnerNode have the same size.

Definition at line 69 of file KdTree.h.

◆ to

template<typename TBase >
Size LeafNode< TBase >::to

One-past-last index of particles belonging to the leaf.

Definition at line 66 of file KdTree.h.


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