Commit 6b9c7c1c authored by Timo Koch's avatar Timo Koch

[seed] Fix indent

parent 2d5c3978
Pipeline #12315 failed with stage
in 2 minutes and 5 seconds
......@@ -19,46 +19,45 @@ namespace Dune {
template<int codim, class GridImp>
class FoamGridEntitySeed
{
enum {dimgrid = GridImp::dimension};
enum {dimworld = GridImp::dimensionworld};
enum {mydim = dimgrid-codim};
enum { dimgrid = GridImp::dimension };
enum { dimworld = GridImp::dimensionworld };
enum { mydim = dimgrid-codim };
// Entity type of the hostgrid
typedef FoamGridEntityImp<mydim, dimgrid, dimworld> EntityImplType;
// Entity type of the underlying implementation
using EntityImplType = FoamGridEntityImp<mydim, dimgrid, dimworld> ;
public:
public:
enum {codimension = codim};
enum {codimension = codim};
//! default construct an invalid entity seed
FoamGridEntitySeed() :
target_(nullptr)
{}
//! default construct an invalid entity seed
FoamGridEntitySeed()
: target_(nullptr)
{}
//! construct entity seed from entity
FoamGridEntitySeed(const FoamGridEntity<codim, dimgrid, GridImp>& entity) :
target_(entity.target_)
{}
//! construct entity seed from entity
FoamGridEntitySeed(const FoamGridEntity<codim, dimgrid, GridImp>& entity)
: target_(entity.target_)
{}
FoamGridEntitySeed(const FoamGridEntity<codim, dimgrid, GridImp>* target) :
target_(target)
{}
FoamGridEntitySeed(const FoamGridEntity<codim, dimgrid, GridImp>* target)
: target_(target)
{}
/** \brief check whether it is safe to create an Entity from this Seed */
bool isValid() const
{
return target_ != nullptr;
}
/** \brief check whether it is safe to create an Entity from this Seed */
bool isValid() const
{
return target_ != nullptr;
}
/** \brief Access to the underlying FoamGrid data structure */
const EntityImplType* target() const
{
return target_;
}
/** \brief Access to the underlying FoamGrid data structure */
const EntityImplType* target() const
{
return target_;
}
private:
const EntityImplType* target_;
private:
const EntityImplType* target_;
};
} // namespace Dune
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment