LArSoft  v06_85_00
Liquid Argon Software toolkit - http://larsoft.org/
RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover > Struct Template Reference

#include "RStarTree.h"

Inheritance diagram for RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >:

Public Member Functions

 RemoveLeafFunctor (const Acceptor &a, LeafRemover &r, std::size_t *s)
 
bool operator() (BoundedItem *item) const
 

Public Attributes

const Acceptor & accept
 
LeafRemover & remove
 
std::size_t * size
 

Detailed Description

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
struct RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >

Definition at line 653 of file RStarTree.h.

Constructor & Destructor Documentation

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >::RemoveLeafFunctor ( const Acceptor &  a,
LeafRemover &  r,
std::size_t *  s 
)
inlineexplicit

Definition at line 660 of file RStarTree.h.

660  :
661  accept(a), remove(r), size(s) {}
Float_t s
Definition: plot.C:23
const Acceptor & accept
Definition: RStarTree.h:656

Member Function Documentation

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
bool RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >::operator() ( BoundedItem item) const
inline

Definition at line 663 of file RStarTree.h.

References RStarLeaf< BoundedItem, LeafType >::leaf.

663  {
664  Leaf * leaf = static_cast<Leaf *>(item);
665 
666  if (accept(leaf) && remove(leaf))
667  {
668  --(*size);
669  delete leaf;
670  return true;
671  }
672 
673  return false;
674  }
const Acceptor & accept
Definition: RStarTree.h:656
RStarLeaf< BoundedItem, LeafType > Leaf
Definition: RStarTree.h:95

Member Data Documentation

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
const Acceptor& RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >::accept

Definition at line 656 of file RStarTree.h.

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
LeafRemover& RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >::remove

Definition at line 657 of file RStarTree.h.

template<typename LeafType, std::size_t dimensions, std::size_t min_child_items, std::size_t max_child_items>
template<typename Acceptor, typename LeafRemover>
std::size_t* RStarTree< LeafType, dimensions, min_child_items, max_child_items >::RemoveLeafFunctor< Acceptor, LeafRemover >::size

Definition at line 658 of file RStarTree.h.


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