Skip to content
Snippets Groups Projects
Commit 7e68b16c authored by Robert Klöfkorn's avatar Robert Klöfkorn
Browse files

minor changes.

[[Imported from SVN: r1385]]
parent 33952cac
No related branches found
No related tags found
No related merge requests found
......@@ -8,20 +8,21 @@
//! level <= the desired level
template < class A > class leaf_or_has_level
{
int lvl;
int lvl_;
public:
// Constructor storing the level
leaf_or_has_level (int i = 0) : lvl (i) { }
//! \todo Please doc me!
//! Constructor storing the level
leaf_or_has_level (int i = 0) : lvl_ (i) { }
//! check if go next
int operator () (const A * x) const
{
return ((x->level () == lvl) || (x->leaf () && (x->level () <= lvl) )) ? 1 : 0 ;
return ((x->level () == lvl_) || (x->leaf () && (x->level () <= lvl_) )) ? 1 : 0 ;
}
//! \todo Please doc me!
//! check if go next
int operator () (const A & x) const
{
return ((x.level () == lvl) || (x.leaf () && (x.level () <= lvl) )) ? 1 : 0 ;
return ((x.level () == lvl_) || (x.leaf () && (x.level () <= lvl_) )) ? 1 : 0 ;
}
};
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment