[dune-functions] Documenting BSplineBasis constructors

Carsten Gräser graeser at mi.fu-berlin.de
Thu Sep 24 12:39:24 CEST 2015


Hi Oliver,

Am 24.09.2015 um 11:27 schrieb Oliver Sander:
> Dear C++ experts,
> I just noticed that none of our basis implementations appears in the doxygen list-of-classes.
> The reason is obvious: none of the is a class; they are all aliases to DefaultGlobalBasis.
> That's still annoying though, because the list of classes is where many people start to look
> for information.  It is particularly annoying for the BSplineBasis, which has non-trivial
> constructors.  Any ideas on how to improve the situation?
we could derive from DefaultGlobalBasis and, to minimize boiler plate code,
inherit the constructors. E.g. for PQk

  template<typename GV, int k, class ST = std::size_t>
    class PQkNodalBasis :
  public DefaultGlobalBasis<PQkNodeFactory<GV, k, FlatMultiIndex<ST>, ST> >
  {
    using Base = DefaultGlobalBasis<PQkNodeFactory<GV, k, FlatMultiIndex<ST>, ST> >;
  public:
    using Base::Base;
  };

Best,
Carsten

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: OpenPGP digital signature
URL: <https://lists.dune-project.org/pipermail/dune-functions/attachments/20150924/0085aaf3/attachment.sig>


More information about the dune-functions mailing list