dune-grid 2.9.0
|
Class for constructing grids from DGF files. More...
#include <dune/grid/io/file/dgfparser/gridptr.hh>
Classes | |
struct | DataHandle |
class | mygrid_ptr |
Public Types | |
typedef MPIHelper::MPICommunicator | MPICommunicatorType |
Public Member Functions | |
GridPtr (const std::string &filename, MPICommunicatorType comm=MPIHelper::getCommunicator()) | |
constructor given the name of a DGF file More... | |
GridPtr (std::istream &input, MPICommunicatorType comm=MPIHelper::getCommunicator()) | |
constructor given a std::istream More... | |
GridPtr () | |
Default constructor, creating empty GridPtr. More... | |
GridPtr (GridType *grd) | |
Constructor storing given pointer to internal auto pointer. More... | |
GridPtr (const GridPtr &org)=default | |
Copy constructor, copies internal auto pointer. More... | |
GridPtr & | operator= (const GridPtr &org) |
assignment of grid pointer More... | |
GridPtr & | operator= (GridType *grd) |
assignment of pointer to internal auto pointer More... | |
GridType & | operator* () |
return reference to GridType instance More... | |
GridType * | operator-> () |
return pointer to GridType instance More... | |
const GridType & | operator* () const |
return const reference to GridType instance More... | |
const GridType * | operator-> () const |
return const pointer to GridType instance More... | |
GridType * | release () |
release pointer from internal ownership More... | |
int | nofParameters (int cdim) const |
get number of parameters defined for a given codimension More... | |
template<class Entity > | |
int | nofParameters (const Entity &) const |
get parameters defined for given entity More... | |
template<class GridImp , class IntersectionImp > | |
int | nofParameters (const Intersection< GridImp, IntersectionImp > &intersection) const |
get number of parameters defined for a given intersection More... | |
template<class Entity > | |
const std::vector< double > & | parameters (const Entity &entity) const |
get parameters defined for each codim 0 und dim entity on the grid through the grid file More... | |
template<class GridImp , class IntersectionImp > | |
const DGFBoundaryParameter::type & | parameters (const Intersection< GridImp, IntersectionImp > &intersection) const |
get parameters for intersection More... | |
void | communicate () |
void | loadBalance () |
Static Public Attributes | |
static const int | dimension = GridType::dimension |
Protected Member Functions | |
std::string | getFileExtension (const std::string &filename) const |
void | readGmsh (const std::string &filename, std::integral_constant< bool, true >) |
void | readGmsh (const std::string &filename, std::integral_constant< bool, false >) |
void | initialize (DGFGridFactory< GridType > &dgfFactory) |
void | initialize (GridFactory< GridType > &factory, std::vector< int > &boundaryIds, std::vector< int > &elementIds) |
template<class Entity > | |
std::vector< double > & | params (const Entity &entity) |
void | setNofParams (int cdim, int nofP) |
Static Protected Member Functions | |
template<class Range > | |
static bool | isEmpty (Range &&range) |
Protected Attributes | |
mygrid_ptr | gridPtr_ |
std::vector< std::vector< double > > | elParam_ |
std::vector< std::vector< double > > | vtxParam_ |
std::vector< DGFBoundaryParameter::type > | bndParam_ |
std::vector< int > | bndId_ |
std::vector< double > | emptyParam_ |
int | nofElParam_ |
int | nofVtxParam_ |
bool | haveBndParam_ |
Class for constructing grids from DGF files.
The constructor of the class is given the filename of the DGF file. From that file a pointer to an instance of type GridType is created by reading the given file which is translated to the specific format of the given GridType. The GridPtr class behaves like an auto pointer of GridType. An auto pointer to a grid of type GridType is constructed as follows:
typedef MPIHelper::MPICommunicator Dune::GridPtr< GridType >::MPICommunicatorType |
|
inlineexplicit |
constructor given the name of a DGF file
|
inlineexplicit |
constructor given a std::istream
|
inline |
Default constructor, creating empty GridPtr.
|
inlineexplicit |
Constructor storing given pointer to internal auto pointer.
|
default |
Copy constructor, copies internal auto pointer.
|
inline |
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inlinestaticprotected |
|
inline |
|
inline |
get parameters defined for given entity
|
inline |
get number of parameters defined for a given intersection
|
inline |
get number of parameters defined for a given codimension
|
inline |
return reference to GridType instance
|
inline |
return const reference to GridType instance
|
inline |
return pointer to GridType instance
|
inline |
return const pointer to GridType instance
|
inline |
assignment of grid pointer
|
inline |
assignment of pointer to internal auto pointer
|
inline |
get parameters defined for each codim 0 und dim entity on the grid through the grid file
|
inline |
get parameters for intersection
|
inlineprotected |
|
inlineprotected |
|
inlineprotected |
|
inline |
release pointer from internal ownership
|
inlineprotected |
|
protected |
|
protected |
|
static |
|
protected |
|
protected |
|
mutableprotected |
|
protected |
|
protected |
|
protected |
|
protected |