dune-mmesh 1.4.1-git
Loading...
Searching...
No Matches
interface/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
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
void seed(const Vertex &vertex)
The EntitySeed class provides the minimal information needed to restore an Entity using the grid....
Definition interface/entityseed.hh:19
MMeshInterfaceGridEntitySeed(const HostGridEntity &hostEntity)
Construct a seed from a host entity.
Definition interface/entityseed.hh:35
const HostGridEntity & hostEntity() const
Return host entity.
Definition interface/entityseed.hh:56
bool isValid() const
Check whether it is safe to create an Entity from this Seed.
Definition interface/entityseed.hh:51
GridImp::template MMeshInterfaceEntity< codim > HostGridEntity
Definition interface/entityseed.hh:22
MMeshInterfaceGridEntitySeed()
Construct empty seed.
Definition interface/entityseed.hh:30
@ codimension
Definition interface/entityseed.hh:25
MMeshInterfaceGridEntitySeed operator=(const MMeshInterfaceGridEntitySeed< codim, GridImp > &seed)
Construct a seed from another seed.
Definition interface/entityseed.hh:41