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 |
|
Definition at line 238 of file pltobtree.h.
00240 : btr_vec(new_btr_vec) 00241 {} |
|
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 } |
|
Definition at line 106 of file pltobtree.h. Referenced by operator()(). |