LArSoft  v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
Visitor Struct Reference

Public Member Functions

 Visitor ()
 
void operator() (const RTree::Leaf *const leaf)
 
 Visitor ()
 
void operator() (const RTree::Leaf *const leaf)
 

Public Attributes

int count
 
bool ContinueVisiting
 
unsigned int count
 
std::vector< unsigned int > vResult
 
std::set< unsigned int > sResult
 
const bool ContinueVisiting
 

Detailed Description

Definition at line 51 of file main.cpp.

Constructor & Destructor Documentation

Visitor::Visitor ( )
inline

Definition at line 55 of file main.cpp.

Referenced by main().

55 : count(0), ContinueVisiting(true) {};
bool ContinueVisiting
Definition: main.cpp:53
int count
Definition: main.cpp:52
Visitor::Visitor ( )
inline

Definition at line 72 of file DBScanAlg.cxx.

72 : count(0), vResult(), sResult(), ContinueVisiting(true) {};
bool ContinueVisiting
Definition: main.cpp:53
std::vector< unsigned int > vResult
Definition: DBScanAlg.cxx:69
int count
Definition: main.cpp:52
std::set< unsigned int > sResult
Definition: DBScanAlg.cxx:70

Member Function Documentation

void Visitor::operator() ( const RTree::Leaf *const  leaf)
inline

Definition at line 57 of file main.cpp.

References RStarLeaf< BoundedItem, LeafType >::leaf.

58  {
59 #if defined( RANDOM_DATASET )
60  //std::cout << "Visiting " << count << std::endl;
61 #elif defined( GUTTMAN_DATASET )
62  std::cout << "#" << count << ": visited " << leaf->leaf << " with bound " << leaf->bound.ToString() << std::endl;
63 #else
64  #error "Undefined dataset"
65 #endif
66  count++;
67  }
LeafType leaf
Definition: RStarTree.h:59
int count
Definition: main.cpp:52
void Visitor::operator() ( const RTree::Leaf *const  leaf)
inline

Definition at line 73 of file DBScanAlg.cxx.

References RStarLeaf< BoundedItem, LeafType >::leaf.

73  {
74  vResult.push_back(leaf->leaf);
75  sResult.insert(leaf->leaf);
76  count++;
77  }
LeafType leaf
Definition: RStarTree.h:59
std::vector< unsigned int > vResult
Definition: DBScanAlg.cxx:69
int count
Definition: main.cpp:52
std::set< unsigned int > sResult
Definition: DBScanAlg.cxx:70

Member Data Documentation

const bool Visitor::ContinueVisiting

Definition at line 71 of file DBScanAlg.cxx.

int Visitor::count

Definition at line 52 of file main.cpp.

Referenced by cluster::DBScanAlg::InitScan(), and main().

unsigned int Visitor::count

Definition at line 68 of file DBScanAlg.cxx.

std::set< unsigned int > Visitor::sResult

Definition at line 70 of file DBScanAlg.cxx.

Referenced by cluster::DBScanAlg::RegionQuery().

std::vector< unsigned int > Visitor::vResult

Definition at line 69 of file DBScanAlg.cxx.

Referenced by cluster::DBScanAlg::RegionQuery_vector().


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