Public Member Functions | Public Attributes | List of all members
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.

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

Definition at line 58 of file DBScanAlg.cxx.

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

Member Function Documentation

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

Definition at line 57 of file main.cpp.

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
QTextStream & endl(QTextStream &s)
void Visitor::operator() ( const RTree::Leaf *const  leaf)
inline

Definition at line 60 of file DBScanAlg.cxx.

61  {
62  vResult.push_back(leaf->leaf);
63  sResult.insert(leaf->leaf);
64  count++;
65  }
LeafType leaf
Definition: RStarTree.h:59
std::set< unsigned int > sResult
Definition: DBScanAlg.cxx:56
std::vector< unsigned int > vResult
Definition: DBScanAlg.cxx:55
int count
Definition: main.cpp:52

Member Data Documentation

bool Visitor::ContinueVisiting

Definition at line 53 of file main.cpp.

const bool Visitor::ContinueVisiting

Definition at line 57 of file DBScanAlg.cxx.

int Visitor::count

Definition at line 52 of file main.cpp.

unsigned int Visitor::count

Definition at line 54 of file DBScanAlg.cxx.

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

Definition at line 56 of file DBScanAlg.cxx.

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

Definition at line 55 of file DBScanAlg.cxx.


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