dune-mmesh (unstable)

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
18template <int codim, class GridImp>
20 protected:
21 // Entity type of the hostgrid
22 typedef typename GridImp::template MMeshInterfaceEntity<codim> HostGridEntity;
23
24 public:
25 enum { codimension = codim };
26
30 MMeshInterfaceGridEntitySeed() : valid_(false) {}
31
36 : hostEntity_(hostEntity), valid_(true) {}
37
43 hostEntity_ = seed.hostEntity_;
44 valid_ = seed.valid_;
45 return seed;
46 }
47
51 bool isValid() const { return valid_; }
52
56 const HostGridEntity& hostEntity() const { return hostEntity_; }
57
58 private:
60 HostGridEntity hostEntity_;
61 bool valid_;
62};
63
64} // namespace Dune
65
66#endif
The EntitySeed class provides the minimal information needed to restore an Entity using the grid....
Definition: entityseed.hh:19
MMeshInterfaceGridEntitySeed(const HostGridEntity &hostEntity)
Construct a seed from a host entity.
Definition: entityseed.hh:35
const HostGridEntity & hostEntity() const
Return host entity.
Definition: entityseed.hh:56
bool isValid() const
Check whether it is safe to create an Entity from this Seed.
Definition: entityseed.hh:51
MMeshInterfaceGridEntitySeed()
Construct empty seed.
Definition: entityseed.hh:30
MMeshInterfaceGridEntitySeed operator=(const MMeshInterfaceGridEntitySeed< codim, GridImp > &seed)
Construct a seed from another seed.
Definition: entityseed.hh:41
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden & Uni Heidelberg  |  generated with Hugo v0.111.3 (Sep 4, 22:38, 2025)