From 04372bf5a808c771e38beffab38a0f4db3421b41 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Sun, 21 Jul 2013 22:56:58 +0000 Subject: [PATCH] Provide the same comments for begin_active/end_active as for the other DoFHandler and Triangulation. git-svn-id: https://svn.dealii.org/trunk@30080 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/include/deal.II/hp/dof_handler.h | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/deal.II/include/deal.II/hp/dof_handler.h b/deal.II/include/deal.II/hp/dof_handler.h index 4d0177fc41..1baba27526 100644 --- a/deal.II/include/deal.II/hp/dof_handler.h +++ b/deal.II/include/deal.II/hp/dof_handler.h @@ -315,9 +315,17 @@ namespace hp cell_iterator begin (const unsigned int level = 0) const; /** - * Iterator to the first active - * cell on level @p level. - */ + * Iterator to the first active cell on level @p level. If the + * given level does not contain any active cells (i.e., all cells + * on this level are further refined, then this function returns + * end_active(level) so that loops of the kind + * @code + * for (cell=dof_handler.begin_active(level); cell!=dof_handler.end_active(level); ++cell) + * ... + * @endcode + * have zero iterations, as may be expected if there are no active + * cells on this level. + */ active_cell_iterator begin_active(const unsigned int level = 0) const; /** @@ -339,12 +347,10 @@ namespace hp cell_iterator end (const unsigned int level) const; /** - * Return an active iterator - * which is the first iterator - * not on level. If @p level is - * the last level, then this - * returns end(). - */ + * Return an active iterator which is the first active iterator not + * on the given level. If @p level is the last level, then this + * returns end(). + */ active_cell_iterator end_active (const unsigned int level) const; /*@}*/ -- 2.39.5