dune-vtk 2.8
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Dune::Vtk::DerivedGridCreator< GridCreator, Derived > Struct Template Reference

#include <dune/vtk/gridcreators/derivedgridcreator.hh>

Inheritance diagram for Dune::Vtk::DerivedGridCreator< GridCreator, Derived >:
Inheritance graph

Public Types

using Self = DerivedGridCreator
 
using Super = GridCreatorInterface< typename GridCreator::Grid, Derived >
 
using Grid = typename GridCreator::Grid
 
using GlobalCoordinate = typename Super::GlobalCoordinate
 
using Derived = Derived
 

Public Member Functions

template<class... Args, disableCopyMove< DerivedGridCreator, Args... > = 0>
 DerivedGridCreator (Args &&... args)
 
void insertVerticesImpl (std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &point_ids)
 
void insertElementsImpl (std::vector< std::uint8_t > const &types, std::vector< std::int64_t > const &offsets, std::vector< std::int64_t > const &connectivity)
 
void insertPiecesImpl (std::vector< std::string > const &pieces)
 
void insertVertices (std::vector< GlobalCoordinate > const &points, std::vector< std::uint64_t > const &point_ids)
 Insert all points as vertices into the factory. More...
 
void insertElements (std::vector< std::uint8_t > const &types, std::vector< std::int64_t > const &offsets, std::vector< std::int64_t > const &connectivity)
 Create elements based on type and connectivity description. More...
 
void insertPieces (std::vector< std::string > const &pieces)
 Insert part of a grid stored in file into factory. More...
 
std::unique_ptr< GridcreateGrid () const
 Construct the actual grid using the GridFactory. More...
 
GridFactory< Grid > & factory ()
 Return the associated GridFactory. More...
 
GridFactory< Grid > const & factory () const
 Return the associated (const) GridFactory. More...
 
auto comm () const
 Return the mpi collective communicator. More...
 

Protected Member Functions

DerivedasDerived ()
 
const DerivedasDerived () const
 

Protected Attributes

std::shared_ptr< GridFactory< Grid > > factory_
 

Member Typedef Documentation

◆ Derived

using Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::Derived = Derived
inherited

◆ GlobalCoordinate

template<class GridCreator , class Derived >
using Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::GlobalCoordinate = typename Super::GlobalCoordinate

◆ Grid

template<class GridCreator , class Derived >
using Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::Grid = typename GridCreator::Grid

◆ Self

template<class GridCreator , class Derived >
using Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::Self = DerivedGridCreator

◆ Super

template<class GridCreator , class Derived >
using Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::Super = GridCreatorInterface<typename GridCreator::Grid, Derived>

Constructor & Destructor Documentation

◆ DerivedGridCreator()

template<class GridCreator , class Derived >
template<class... Args, disableCopyMove< DerivedGridCreator, Args... > = 0>
Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::DerivedGridCreator ( Args &&...  args)
inline

Member Function Documentation

◆ asDerived() [1/2]

Derived & Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::asDerived ( )
inlineprotectedinherited

◆ asDerived() [2/2]

const Derived & Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::asDerived ( ) const
inlineprotectedinherited

◆ comm()

auto Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::comm ( ) const
inlineinherited

Return the mpi collective communicator.

◆ createGrid()

std::unique_ptr< Grid > Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::createGrid ( ) const
inlineinherited

Construct the actual grid using the GridFactory.

◆ factory() [1/2]

GridFactory< Grid > & Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::factory ( )
inlineinherited

Return the associated GridFactory.

◆ factory() [2/2]

GridFactory< Grid > const & Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::factory ( ) const
inlineinherited

Return the associated (const) GridFactory.

◆ insertElements()

void Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::insertElements ( std::vector< std::uint8_t > const &  types,
std::vector< std::int64_t > const &  offsets,
std::vector< std::int64_t > const &  connectivity 
)
inlineinherited

Create elements based on type and connectivity description.

◆ insertElementsImpl()

template<class GridCreator , class Derived >
void Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::insertElementsImpl ( std::vector< std::uint8_t > const &  types,
std::vector< std::int64_t > const &  offsets,
std::vector< std::int64_t > const &  connectivity 
)
inline

◆ insertPieces()

void Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::insertPieces ( std::vector< std::string > const &  pieces)
inlineinherited

Insert part of a grid stored in file into factory.

◆ insertPiecesImpl()

template<class GridCreator , class Derived >
void Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::insertPiecesImpl ( std::vector< std::string > const &  pieces)
inline

◆ insertVertices()

void Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::insertVertices ( std::vector< GlobalCoordinate > const &  points,
std::vector< std::uint64_t > const &  point_ids 
)
inlineinherited

Insert all points as vertices into the factory.

◆ insertVerticesImpl()

template<class GridCreator , class Derived >
void Dune::Vtk::DerivedGridCreator< GridCreator, Derived >::insertVerticesImpl ( std::vector< GlobalCoordinate > const &  points,
std::vector< std::uint64_t > const &  point_ids 
)
inline

Member Data Documentation

◆ factory_

std::shared_ptr<GridFactory<Grid> > Dune::Vtk::GridCreatorInterface< GridCreator::Grid , Derived >::factory_
protectedinherited

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