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

#include "RStarVisitor.h"

Public Member Functions

 RStarRemoveSpecificLeaf (const typename Leaf::leaf_type &leaf, bool remove_duplicates=false)
 
bool operator() (const Leaf *const leaf) const
 

Public Attributes

bool ContinueVisiting
 
bool m_remove_duplicates
 
const Leaf::leaf_type & m_leaf
 

Private Member Functions

 RStarRemoveSpecificLeaf ()
 

Detailed Description

template<typename Leaf>
struct RStarRemoveSpecificLeaf< Leaf >

Definition at line 146 of file RStarVisitor.h.

Constructor & Destructor Documentation

template<typename Leaf >
RStarRemoveSpecificLeaf< Leaf >::RStarRemoveSpecificLeaf ( const typename Leaf::leaf_type &  leaf,
bool  remove_duplicates = false 
)
inlineexplicit

Definition at line 152 of file RStarVisitor.h.

152  :
153  ContinueVisiting(true), m_remove_duplicates(remove_duplicates), m_leaf(leaf) {}
const Leaf::leaf_type & m_leaf
Definition: RStarVisitor.h:150
template<typename Leaf >
RStarRemoveSpecificLeaf< Leaf >::RStarRemoveSpecificLeaf ( )
inlineprivate

Definition at line 166 of file RStarVisitor.h.

Member Function Documentation

template<typename Leaf >
bool RStarRemoveSpecificLeaf< Leaf >::operator() ( const Leaf *const  leaf) const
inline

Definition at line 155 of file RStarVisitor.h.

156  {
157  if (ContinueVisiting && m_leaf == leaf->leaf)
158  {
159  if (!m_remove_duplicates)
160  ContinueVisiting = false;
161  return true;
162  }
163  return false;
164  }
const Leaf::leaf_type & m_leaf
Definition: RStarVisitor.h:150

Member Data Documentation

template<typename Leaf >
bool RStarRemoveSpecificLeaf< Leaf >::ContinueVisiting
mutable

Definition at line 148 of file RStarVisitor.h.

template<typename Leaf >
const Leaf::leaf_type& RStarRemoveSpecificLeaf< Leaf >::m_leaf

Definition at line 150 of file RStarVisitor.h.

template<typename Leaf >
bool RStarRemoveSpecificLeaf< Leaf >::m_remove_duplicates

Definition at line 149 of file RStarVisitor.h.


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