version 3.10-dev
Dumux::GeometriesEntitySet< GeoType > Class Template Reference

An interface for a set of geometric entities. More...

#include <dumux/geometry/geometricentityset.hh>

Description

template<class GeoType>
class Dumux::GeometriesEntitySet< GeoType >
Note
This can be used e.g. to construct a bounding box volume hierarchy of a grid It defines the minimum requirement for such a set

Public Types

enum  { dimensionworld = Entity::Geometry::coorddimension }
 The world dimension of the entity set. More...
 
using Entity = Detail::GeometricEntity::EntityWrapper< GeoType >
 
using ctype = typename Entity::Geometry::ctype
 the coordinate type More...
 

Public Member Functions

 GeometriesEntitySet (std::initializer_list< typename Entity::Geometry > &&geometries)
 Constructor for initializer_list. More...
 
 GeometriesEntitySet (const std::vector< typename Entity::Geometry > &geometries)
 Constructor for a vector of geometries. More...
 
 GeometriesEntitySet (std::vector< typename Entity::Geometry > &&geometries)
 Constructor for a vector of geometries. More...
 
decltype(auto) size () const
 the number of entities in this set More...
 
decltype(auto) begin () const
 begin iterator to enable range-based for iteration More...
 
decltype(auto) end () const
 end iterator to enable range-based for iteration More...
 
template<class Entity >
std::size_t index (const Entity &e) const
 get an entities index More...
 
const Entityentity (std::size_t index) const
 get an entity from an index More...
 

Member Typedef Documentation

◆ ctype

template<class GeoType >
using Dumux::GeometriesEntitySet< GeoType >::ctype = typename Entity::Geometry::ctype

◆ Entity

template<class GeoType >
using Dumux::GeometriesEntitySet< GeoType >::Entity = Detail::GeometricEntity::EntityWrapper<GeoType>

Member Enumeration Documentation

◆ anonymous enum

template<class GeoType >
anonymous enum
Enumerator
dimensionworld 

Constructor & Destructor Documentation

◆ GeometriesEntitySet() [1/3]

template<class GeoType >
Dumux::GeometriesEntitySet< GeoType >::GeometriesEntitySet ( std::initializer_list< typename Entity::Geometry > &&  geometries)
inline

◆ GeometriesEntitySet() [2/3]

template<class GeoType >
Dumux::GeometriesEntitySet< GeoType >::GeometriesEntitySet ( const std::vector< typename Entity::Geometry > &  geometries)
inline

◆ GeometriesEntitySet() [3/3]

template<class GeoType >
Dumux::GeometriesEntitySet< GeoType >::GeometriesEntitySet ( std::vector< typename Entity::Geometry > &&  geometries)
inline

Member Function Documentation

◆ begin()

template<class GeoType >
decltype(auto) Dumux::GeometriesEntitySet< GeoType >::begin ( ) const
inline

◆ end()

template<class GeoType >
decltype(auto) Dumux::GeometriesEntitySet< GeoType >::end ( ) const
inline

◆ entity()

template<class GeoType >
const Entity & Dumux::GeometriesEntitySet< GeoType >::entity ( std::size_t  index) const
inline

◆ index()

template<class GeoType >
template<class Entity >
std::size_t Dumux::GeometriesEntitySet< GeoType >::index ( const Entity e) const
inline

◆ size()

template<class GeoType >
decltype(auto) Dumux::GeometriesEntitySet< GeoType >::size ( ) const
inline

The documentation for this class was generated from the following file: