From e37ad3a491ae6da2dc89e4f478413519822e744d Mon Sep 17 00:00:00 2001 From: wolf Date: Wed, 24 Jul 2002 13:36:07 +0000 Subject: [PATCH] vector2d::rowaccessor::size git-svn-id: https://svn.dealii.org/trunk@6270 0785d39b-7218-0410-832d-ea1e28bc413d --- deal.II/base/include/base/vector2d.h | 38 ++++++++++++++++++++++++++++ deal.II/doc/news/2002/c-3-4.html | 9 +++++++ 2 files changed, 47 insertions(+) diff --git a/deal.II/base/include/base/vector2d.h b/deal.II/base/include/base/vector2d.h index 3a8123f26f..abbf9ccde1 100644 --- a/deal.II/base/include/base/vector2d.h +++ b/deal.II/base/include/base/vector2d.h @@ -105,6 +105,15 @@ class vector2d : public Subscriptor * this row. */ const_iterator end () const; + + /** + * Return the number of + * elements between @p{begin} + * and @p{end}, i.e. the + * number of columns of the + * matrix. + */ + unsigned int size () const; protected: /** @@ -206,6 +215,15 @@ class vector2d : public Subscriptor * version. */ iterator end (); + + /** + * Return the number of + * elements between @p{begin} + * and @p{end}, i.e. the + * number of columns of the + * matrix. + */ + unsigned int size () const; private: /** @@ -532,6 +550,16 @@ vector2d::ConstRowAccessor::end () const +template +inline +unsigned int +vector2d::ConstRowAccessor::size () const +{ + return parent.n_cols(); +}; + + + template inline vector2d::NonConstRowAccessor:: @@ -588,6 +616,16 @@ vector2d::NonConstRowAccessor::end () +template +inline +unsigned int +vector2d::NonConstRowAccessor::size () const +{ + return parent.n_cols(); +}; + + + template inline vector2d::~vector2d () diff --git a/deal.II/doc/news/2002/c-3-4.html b/deal.II/doc/news/2002/c-3-4.html index 739cf1fd11..3cfcd15f6a 100644 --- a/deal.II/doc/news/2002/c-3-4.html +++ b/deal.II/doc/news/2002/c-3-4.html @@ -95,6 +95,15 @@ contributor's names are abbreviated by WB (Wolfgang Bangerth), GK

base

    +
  1. + New: Row accessors for the vector2d + class now have a member function size that returns the size of the row, + i.e. the number of columns of the table. +
    + (WB 2002/07/24) +

    +
  2. Fixed: In EPS output, colors were set to invalid values if the values of the field that is used for coloring are all -- 2.39.5