Dune Core Modules (2.8.0)

entityseed.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_GRID_COMMON_ENTITY_SEED_HH
4#define DUNE_GRID_COMMON_ENTITY_SEED_HH
5
7
12namespace Dune {
13
22 template<class GridImp, class EntitySeedImp>
24 {
25 public:
26
28 enum { codimension = EntitySeedImp::codimension };
29
35 typedef EntitySeedImp Implementation;
36
39 {}
40
42 EntitySeed(const EntitySeedImp& implementation)
43 : implementation_(implementation)
44 {}
45
47 bool isValid() const
48 {
49 return implementation_.isValid();
50 }
51
57 Implementation& impl() { return implementation_; }
58
64 const Implementation& impl() const { return implementation_; }
65
66 private:
68 EntitySeedImp implementation_;
69 };
70
71} // end namespace Dune
72
73#endif
Store a reference to an entity with a minimal memory footprint.
Definition: entityseed.hh:24
Implementation & impl()
access to the underlying implementation
Definition: entityseed.hh:57
EntitySeedImp Implementation
type of underlying implementation
Definition: entityseed.hh:35
EntitySeed(const EntitySeedImp &implementation)
Construct from implementation class.
Definition: entityseed.hh:42
EntitySeed()
Construct an empty (i.e. isValid() == false) seed.
Definition: entityseed.hh:38
const Implementation & impl() const
access to the underlying implementation
Definition: entityseed.hh:64
bool isValid() const
check whether it is safe to create an Entity from this Seed
Definition: entityseed.hh:47
Different resources needed by all grid implementations.
Dune namespace.
Definition: alignedallocator.hh:11
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 21, 23:30, 2024)