Loading [MathJax]/extensions/tex2jax.js

dune-mmesh (1.4)

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_MMESH_INTERFACE_ENTITYSEED_HH
4#define DUNE_MMESH_INTERFACE_ENTITYSEED_HH
5
11namespace Dune
12{
13
19 template<int codim, class GridImp>
21 {
22 protected:
23 // Entity type of the hostgrid
24 typedef typename GridImp::template MMeshInterfaceEntity<codim> HostGridEntity;
25
26 public:
27 enum {codimension = codim};
28
32 MMeshInterfaceGridEntitySeed() : valid_( false ) {}
33
38 : hostEntity_( hostEntity ), valid_( true )
39 {}
40
45 {
46 hostEntity_ = seed.hostEntity_;
47 valid_ = seed.valid_;
48 return seed;
49 }
50
54 bool isValid() const
55 {
56 return valid_;
57 }
58
62 const HostGridEntity& hostEntity() const
63 {
64 return hostEntity_;
65 }
66
67 private:
69 HostGridEntity hostEntity_;
70 bool valid_;
71 };
72
73} // namespace Dune
74
75#endif
The EntitySeed class provides the minimal information needed to restore an Entity using the grid....
Definition: entityseed.hh:21
MMeshInterfaceGridEntitySeed(const HostGridEntity &hostEntity)
Construct a seed from a host entity.
Definition: entityseed.hh:37
const HostGridEntity & hostEntity() const
Return host entity.
Definition: entityseed.hh:62
bool isValid() const
Check whether it is safe to create an Entity from this Seed.
Definition: entityseed.hh:54
MMeshInterfaceGridEntitySeed()
Construct empty seed.
Definition: entityseed.hh:32
MMeshInterfaceGridEntitySeed operator=(const MMeshInterfaceGridEntitySeed< codim, GridImp > &seed)
Construct a seed from another seed.
Definition: entityseed.hh:44
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Apr 6, 22:49, 2025)