From 7e68b16c20e1034df1dfb4ed201039ffb8428d1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Kl=C3=B6fkorn?= <robertk@dune-project.org> Date: Thu, 20 Jan 2005 14:05:47 +0000 Subject: [PATCH] minor changes. [[Imported from SVN: r1385]] --- grid/bsgrid/leafwalk.hh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/grid/bsgrid/leafwalk.hh b/grid/bsgrid/leafwalk.hh index 306ec19e2..7689e73f1 100644 --- a/grid/bsgrid/leafwalk.hh +++ b/grid/bsgrid/leafwalk.hh @@ -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 ; } }; -- GitLab