LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
RStarAcceptEnclosing< Node, Leaf > Struct Template Reference

#include "RStarVisitor.h"

Public Member Functions

 RStarAcceptEnclosing (const typename Node::BoundingBox &bound)
 
bool operator() (const Node *const node) const
 
bool operator() (const Leaf *const leaf) const
 

Public Attributes

const Node::BoundingBoxm_bound
 

Private Member Functions

 RStarAcceptEnclosing ()
 

Detailed Description

template<typename Node, typename Leaf>
struct RStarAcceptEnclosing< Node, Leaf >

Definition at line 77 of file RStarVisitor.h.

Constructor & Destructor Documentation

template<typename Node , typename Leaf >
RStarAcceptEnclosing< Node, Leaf >::RStarAcceptEnclosing ( const typename Node::BoundingBox bound)
inlineexplicit

Definition at line 80 of file RStarVisitor.h.

80 : m_bound(bound) {}
const Node::BoundingBox & m_bound
Definition: RStarVisitor.h:79
template<typename Node , typename Leaf >
RStarAcceptEnclosing< Node, Leaf >::RStarAcceptEnclosing ( )
inlineprivate

Definition at line 92 of file RStarVisitor.h.

Member Function Documentation

template<typename Node , typename Leaf >
bool RStarAcceptEnclosing< Node, Leaf >::operator() ( const Node *const  node) const
inline

Definition at line 82 of file RStarVisitor.h.

83  {
84  return m_bound.overlaps(node->bound);
85  }
const Node::BoundingBox & m_bound
Definition: RStarVisitor.h:79
template<typename Node , typename Leaf >
bool RStarAcceptEnclosing< Node, Leaf >::operator() ( const Leaf *const  leaf) const
inline

Definition at line 87 of file RStarVisitor.h.

88  {
89  return m_bound.encloses(leaf->bound);
90  }
const Node::BoundingBox & m_bound
Definition: RStarVisitor.h:79

Member Data Documentation

template<typename Node , typename Leaf >
const Node::BoundingBox& RStarAcceptEnclosing< Node, Leaf >::m_bound

Definition at line 79 of file RStarVisitor.h.


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