SheafSystem  0.0.0.0
geometry::d_tree_point_locator_path< DC, DB > Class Template Reference

A path in an d_tree_point_locator search structure. More...

#include <d_tree_point_locator_path.h>

D_TREE_POINT_LOCATOR_PATH FACET

typedef sheaf::size_type size_type
 An unsigned integral type used to represent sizes and capacities. More...
 
static const size_type DEGREE = 1<<DC
 The maximum number of branches at each node. More...
 
d_tree_point_locator_path< DC, DB > & operator= (const d_tree_point_locator_path< DC, DB > &xother)
 Assignment operator. More...
 
virtual bool invariant () const
 Class invariant. More...
 
 d_tree_point_locator_path (const d_tree_point_locator_path< DC, DB > &xother)
 Copy constructor. More...
 
virtual ~d_tree_point_locator_path ()
 Destructor. More...
 
 d_tree_point_locator_path (const d_bin_coordinates< DC, DB > &xpt, const d_tree_point_locator< DC, DB > *xtree)
 Creates a path for point xpt in tree xtree. More...
 
 d_tree_point_locator_path (const d_tree_point_locator< DC, DB > *xtree)
 Creates an empty path for tree xtree. More...
 
size_type depth () const
 The current depth. More...
 
size_type height () const
 The current height. More...
 
d_tree_point_locator< DC, DB > * tree () const
 The tree this is a path in. More...
 
size_type head () const
 The branch index of the head of the path. More...
 
void ascend ()
 Ascend one level in the path. More...
 
void descend ()
 Descend one level in the path. More...
 
void put_head (size_type xhead)
 Set the current head to xhead. More...
 
void reset ()
 Sets depth to 0. More...
 
bool intersects (const d_bounding_box< DC, DB > *xbox) const
 True if the tree box represented by the current head intersects the box with lower bound xlb and upper bound xub. More...
 
const d_bin_coordinates< DC, DB > & path () const
 The representation of the path. More...
 
static size_type max_height ()
 The height of the root of the longest representable path. More...
 
static size_type max_depth ()
 The depth of the head of the longest representable path. More...
 
static size_type degree ()
 The degree of the tree this is a path for. More...
 

Detailed Description

template<int DC, int DB>
class geometry::d_tree_point_locator_path< DC, DB >

A path in an d_tree_point_locator search structure.

Definition at line 54 of file d_tree_point_locator_node.h.

Member Typedef Documentation

◆ size_type

template<int DC, int DB>
typedef sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::size_type

An unsigned integral type used to represent sizes and capacities.

Definition at line 64 of file d_tree_point_locator_path.h.

Constructor & Destructor Documentation

◆ d_tree_point_locator_path() [1/3]

template<int DC, int DB>
geometry::d_tree_point_locator_path< DC, DB >::d_tree_point_locator_path ( const d_tree_point_locator_path< DC, DB > &  xother)

◆ ~d_tree_point_locator_path()

◆ d_tree_point_locator_path() [2/3]

template<int DC, int DB>
geometry::d_tree_point_locator_path< DC, DB >::d_tree_point_locator_path ( const d_bin_coordinates< DC, DB > &  xpt,
const d_tree_point_locator< DC, DB > *  xtree 
)

Creates a path for point xpt in tree xtree.

Postcondition

Definition at line 101 of file d_tree_point_locator_path.impl.h.

◆ d_tree_point_locator_path() [3/3]

template<int DC, int DB>
geometry::d_tree_point_locator_path< DC, DB >::d_tree_point_locator_path ( const d_tree_point_locator< DC, DB > *  xtree)

Creates an empty path for tree xtree.

Postcondition

Definition at line 125 of file d_tree_point_locator_path.impl.h.

References geometry::d_tree_point_locator_path< DC, DB >::depth().

Member Function Documentation

◆ ascend()

◆ degree()

template<int DC, int DB>
sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::degree ( )
static

The degree of the tree this is a path for.

Definition at line 379 of file d_tree_point_locator_path.impl.h.

Referenced by geometry::d_tree_point_locator_path< DC, DB >::path().

◆ depth()

◆ descend()

◆ head()

template<int DC, int DB>
sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::head ( ) const

The branch index of the head of the path.

Postcondition
  • result < DEGREE

Definition at line 203 of file d_tree_point_locator_path.impl.h.

References geometry::d_tree_point_locator_path< DC, DB >::ascend().

Referenced by geometry::d_tree_point_locator_node< DC, DB >::box_list(), and geometry::d_tree_point_locator_path< DC, DB >::tree().

◆ height()

template<int DC, int DB>
sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::height ( ) const

◆ intersects()

template<int DC, int DB>
bool geometry::d_tree_point_locator_path< DC, DB >::intersects ( const d_bounding_box< DC, DB > *  xbox) const

◆ invariant()

template<int DC, int DB>
bool geometry::d_tree_point_locator_path< DC, DB >::invariant ( ) const
virtual

◆ max_depth()

template<int DC, int DB>
sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::max_depth ( )
static

The depth of the head of the longest representable path.

Definition at line 187 of file d_tree_point_locator_path.impl.h.

References geometry::d_tree_point_locator_path< DC, DB >::tree().

Referenced by geometry::d_tree_point_locator_path< DC, DB >::max_height().

◆ max_height()

template<int DC, int DB>
sheaf::size_type geometry::d_tree_point_locator_path< DC, DB >::max_height ( )
static

◆ operator=()

template<int DC, int DB>
d_tree_point_locator_path< DC, DB > & geometry::d_tree_point_locator_path< DC, DB >::operator= ( const d_tree_point_locator_path< DC, DB > &  xother)

Assignment operator.

Definition at line 63 of file d_tree_point_locator_path.impl.h.

References geometry::d_tree_point_locator_path< DC, DB >::invariant().

◆ path()

template<int DC, int DB>
const d_bin_coordinates< DC, DB > & geometry::d_tree_point_locator_path< DC, DB >::path ( ) const

◆ put_head()

◆ reset()

template<int DC, int DB>
void geometry::d_tree_point_locator_path< DC, DB >::reset ( )

◆ tree()

Member Data Documentation

◆ DEGREE

template<int DC, int DB>
const size_type geometry::d_tree_point_locator_path< DC, DB >::DEGREE = 1<<DC
static

The maximum number of branches at each node.

Definition at line 69 of file d_tree_point_locator_path.h.


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