From: wolf Date: Wed, 6 Jul 2005 02:52:22 +0000 (+0000) Subject: Allow to query the number of entries in a subsection and its children. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5c622fbb649c5191f3822b0488d21a9730714029;p=dealii-svn.git Allow to query the number of entries in a subsection and its children. git-svn-id: https://svn.dealii.org/trunk@11074 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/deal.II/base/include/base/parameter_handler.h b/deal.II/base/include/base/parameter_handler.h index e33c7f905c..0e7325ef2c 100644 --- a/deal.II/base/include/base/parameter_handler.h +++ b/deal.II/base/include/base/parameter_handler.h @@ -1509,8 +1509,24 @@ class ParameterHandler */ struct Section { + /** + * Destructor + */ ~Section (); + /** + * Number of entries that this + * section has plus all the + * non-subsection entries of all its + * decendents. + */ + unsigned int accumulated_no_of_entries () const; + + /** + * Value of an entry in this section, + * including documentation and the + * pattern it conforms to. + */ struct EntryContent { std::string value;