Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-grid
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Core Modules
dune-grid
Commits
6e52c76e
There was a problem fetching the pipeline summary.
Commit
6e52c76e
authored
8 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
Stop EntityIterator inheriting from EntityPointer
parent
34ef450a
Branches
Branches containing commit
Tags
Tags containing commit
1 merge request
!164
Remove the file entitypointer.hh
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dune/grid/common/entityiterator.hh
+12
-15
12 additions, 15 deletions
dune/grid/common/entityiterator.hh
with
12 additions
and
15 deletions
dune/grid/common/entityiterator.hh
+
12
−
15
View file @
6e52c76e
...
...
@@ -6,18 +6,14 @@
#include
<cstddef>
#include
<iterator>
#include
<dune/grid/common/entitypointer.hh>
namespace
Dune
{
/** \class EntityIterator
* \brief interface class for an iterator over grid entities
* \ingroup GIEntityPointer
*
* An entity iterator is an iterator over a subset of entities within a
* hierarchical grid. It is an extension of the Dune::EntityPointer
* interface.
* hierarchical grid.
*
* Examples of entity iterators are:
* - iterators over the leaf level (LeafGridView::Iterator)
...
...
@@ -25,24 +21,28 @@ namespace Dune
* - iterators over the children of an entity (Grid::HierarchicIterator)
* .
*
* See also the documentation of Dune::EntityPointer.
*
* \tparam codim codimension of entities this iterator walks over
* \tparam Grid type of the grid implementation
* \tparam IteratorImp type of the iterator implementation
*/
template
<
int
codim
,
class
Grid
,
class
IteratorImp
>
class
EntityIterator
:
public
EntityPointer
<
Grid
,
IteratorImp
>
{
typedef
EntityPointer
<
Grid
,
IteratorImp
>
Base
;
protected:
using
Base
::
realIterator
;
IteratorImp
realIterator
;
public:
typedef
typename
Grid
::
template
Codim
<
codim
>
::
Entity
Entity
;
/** \brief Tpy of the reference used when derefencing the Ptr */
typedef
typename
std
::
conditional
<
std
::
is_lvalue_reference
<
decltype
(
realIterator
.
dereference
())
>::
value
,
const
Entity
&
,
Entity
>::
type
Reference
;
/** \brief prefix increment operator */
EntityIterator
&
operator
++
()
{
...
...
@@ -58,9 +58,6 @@ namespace Dune
return
tmp
;
}
// The dereferencing operators are overridden here to avoid calling
// the deprecated versions in the EntityPointer facade.
// The behavior when dereferencing the EntityIterator facade depends on
// the way the grid implementation handles returning entities. The implementation
// may either return a reference to an entity stored inside the EntityIterator
...
...
@@ -127,7 +124,7 @@ namespace Dune
/** \brief copy constructor from implementaton */
EntityIterator
(
const
IteratorImp
&
imp
)
:
Base
(
imp
)
:
realIterator
(
imp
)
{}
/** \} */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment