[dune-pdelab] ISTLBlockVectorContainer::size() method
Markus Blatt
Markus.Blatt at iwr.uni-heidelberg.de
Thu Sep 1 16:30:31 CEST 2011
On Thu, Sep 01, 2011 at 04:25:26PM +0200, Christian Engwer wrote:
> Hi,
>
> > It appears that ISTLBlockVectorContainer has no size method,
> > although it wraps around BlockVector, which does.
> > Instead it wraps BlockVector's N() method, which does exactly the same
> > thing(currently) as size().
> > Please add the size() method to ISTLBlockVectorContainer,
> > and possibly deprecate N() method in BlockVector, unless it serves some purpose.
>
> a) the interface is what it is ;-)
> b) the size method is not exported on purpose. The
> ISTLBlockVectorContainer should encapsulate the BlockVector, and
> not extend it. It does provide a very different semantic. If you
> want to access methods of the BlockVector, you can access the
> encapsulated block vector and then call the method.
by doing
T cont;
...
typename T::Container& base = cont.base();
Markus
More information about the dune-pdelab
mailing list