Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
dune-common
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
Package registry
Model registry
Operate
Environments
Terraform modules
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
Tobias Leibner
dune-common
Commits
ce93b359
Commit
ce93b359
authored
19 years ago
by
Oliver Sander
Browse files
Options
Downloads
Patches
Plain Diff
the OneDGridEntityPointer class
[[Imported from SVN: r1951]]
parent
8b401479
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
grid/onedgrid/onedgridentitypointer.hh
+47
-0
47 additions, 0 deletions
grid/onedgrid/onedgridentitypointer.hh
with
47 additions
and
0 deletions
grid/onedgrid/onedgridentitypointer.hh
0 → 100644
+
47
−
0
View file @
ce93b359
// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
// vi: set et ts=4 sw=2 sts=2:
#ifndef DUNE_ONEDGRID_ENTITY_POINTER_HH
#define DUNE_ONEDGRID_ENTITY_POINTER_HH
namespace
Dune
{
/*! Acts as a pointer to an entities of a given codimension.
*/
template
<
int
codim
,
class
GridImp
>
class
OneDGridEntityPointer
:
public
EntityPointerDefault
<
codim
,
GridImp
,
Dune
::
OneDGridEntityPointer
<
codim
,
GridImp
>
>
{
enum
{
dim
=
GridImp
::
dimension
};
public
:
typedef
typename
GridImp
::
template
codim
<
codim
>
::
Entity
Entity
;
//! equality
bool
equals
(
const
OneDGridEntityPointer
<
codim
,
GridImp
>&
other
)
const
{
return
other
.
virtualEntity_
.
target
()
==
virtualEntity_
.
target
();
}
//! dereferencing
Entity
&
dereference
()
const
{
return
virtualEntity_
;}
//! ask for level of entity
int
level
()
const
{
return
virtualEntity_
->
level
();}
OneDGridEntityPointer
()
{}
protected
:
/** \brief Constructor from a given iterator */
OneDGridEntityPointer
(
OneDEntityImp
<
dim
-
codim
>*
it
)
{
virtualEntity_
.
setToTarget
(
it
);
};
protected
:
mutable
OneDEntityWrapper
<
codim
,
GridImp
::
dimension
,
GridImp
>
virtualEntity_
;
};
}
// end namespace Dune
#endif
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