Main Page | Namespace List | Class Hierarchy | Compound List | File List | Namespace Members | Compound Members | File Members

Pl2BTree::ValidCriterion Class Reference

Collaboration diagram for Pl2BTree::ValidCriterion:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ValidCriterion (const vector< BuildTreeRecord > &new_btr_vec)
bool operator() (const BuildTreeRecord &btr1, const BuildTreeRecord &btr2) const

Public Attributes

const vector< BuildTreeRecord > & btr_vec

Constructor & Destructor Documentation

Pl2BTree::ValidCriterion::ValidCriterion const vector< BuildTreeRecord > &  new_btr_vec  )  [inline]
 

Definition at line 238 of file pltobtree.h.

00240    : btr_vec(new_btr_vec)
00241 {}


Member Function Documentation

bool Pl2BTree::ValidCriterion::operator() const BuildTreeRecord btr1,
const BuildTreeRecord btr2
const
 

Definition at line 226 of file pltobtree.cxx.

References btr_vec, Pl2BTree::BuildTreeRecord::parent, and Pl2BTree::BuildTreeRecord::used.

00228 {
00229    if (btr1.used)
00230       return false;
00231    
00232    else if (btr2.used) // btr1 is not used
00233       return true;
00234       
00235    else if (!btr_vec[btr1.parent].used)
00236       return false;
00237 
00238    else if (!btr_vec[btr2.parent].used) // parent of btr1 is used
00239       return true;
00240    
00241    else
00242       return btr1 < btr2;
00243 }


Member Data Documentation

const vector<BuildTreeRecord>& Pl2BTree::ValidCriterion::btr_vec
 

Definition at line 106 of file pltobtree.h.

Referenced by operator()().


The documentation for this class was generated from the following files:
Generated on Mon Apr 25 01:15:10 2005 for Parquete by doxygen 1.3.2