]> https://gitweb.dealii.org/ - dealii.git/commit
SparsityPattern::Iterator - add a constructor for initalizing an iterator from an...
authorMatthias Maier <tamiko@43-1.org>
Thu, 28 Feb 2019 20:23:12 +0000 (14:23 -0600)
committerMatthias Maier <tamiko@43-1.org>
Thu, 28 Feb 2019 20:23:12 +0000 (14:23 -0600)
commit2b541384f0210bbf8140d7442ede9039fee4a831
treee572dd128e2e0dd7398630a4fa5e8c77381f4f1f
parentc9d05d5f3294da30ae470caf8cc59fcdc2403841
SparsityPattern::Iterator  - add a constructor for initalizing an iterator from an accessor

When trying to increment a sparsity pattern iterator:

  auto iterator = sparsity_pattern.begin();
  iterator++;

The corresponding function in LinearIndexIterator:

  template <class DerivedIterator, class AccessorType>
  inline DerivedIterator
  LinearIndexIterator<DerivedIterator, AccessorType>::operator++(int)
  {
    const DerivedIterator copy(this->accessor);
    operator+=(1);
    return copy;
  }

creates a copy that is initialized by the accessor. Thus, we need a
constructor that can create an interator from an accessor.
include/deal.II/lac/sparsity_pattern.h

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.