dune-grid 2.9.0
Classes | Public Types | Public Member Functions | Static Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
Dune::dgf::ProjectionBlock Class Reference

#include <dune/grid/io/file/dgfparser/blocks/projection.hh>

Inheritance diagram for Dune::dgf::ProjectionBlock:
Inheritance graph

Classes

struct  Expression
 

Public Types

typedef std::shared_ptr< ExpressionExpressionPointer
 
typedef std::pair< ExpressionPointer, std::string > ExpressionPair
 

Public Member Functions

 ProjectionBlock (std::istream &in, int dimworld)
 
template<int dimworld>
const DuneBoundaryProjection< dimworld > * defaultProjection () const
 
size_t numBoundaryProjections () const
 
const std::vector< unsigned int > & boundaryFace (const size_t i) const
 
template<int dimworld>
const DuneBoundaryProjection< dimworld > * boundaryProjection (const size_t i) const
 
ExpressionPointer function (const std::string &name) const
 
ExpressionPair lastFunctionInserted () const
 
bool isactive ()
 
bool isempty ()
 
int & noflines ()
 
int linenumber ()
 
const std::string & id () const
 

Static Public Member Functions

static ProjectionBlock::ExpressionPair createExpression (const std::string &funcexpr, const int dimworld)
 

Protected Types

typedef std::map< std::string, ExpressionPairFunctionMap
 
typedef std::pair< std::vector< unsigned int >, ExpressionPairBoundaryFunction
 

Protected Member Functions

void reset ()
 
bool getnextline ()
 
template<class ENTRY >
bool getnextentry (ENTRY &entry)
 
bool gettokenparam (std ::string token, std ::string &entry)
 
bool findtoken (std ::string token)
 

Protected Attributes

Token token
 
FunctionMap functions_
 
ExpressionPair defaultFunction_
 
std::vector< BoundaryFunctionboundaryFunctions_
 
std::stringstream line
 

Member Typedef Documentation

◆ BoundaryFunction

typedef std::pair< std::vector< unsigned int >, ExpressionPair > Dune::dgf::ProjectionBlock::BoundaryFunction
protected

◆ ExpressionPair

◆ ExpressionPointer

◆ FunctionMap

typedef std::map< std::string, ExpressionPair > Dune::dgf::ProjectionBlock::FunctionMap
protected

Constructor & Destructor Documentation

◆ ProjectionBlock()

Dune::dgf::ProjectionBlock::ProjectionBlock ( std::istream &  in,
int  dimworld 
)

Member Function Documentation

◆ boundaryFace()

const std::vector< unsigned int > & Dune::dgf::ProjectionBlock::boundaryFace ( const size_t  i) const
inline

◆ boundaryProjection()

template<int dimworld>
const DuneBoundaryProjection< dimworld > * Dune::dgf::ProjectionBlock::boundaryProjection ( const size_t  i) const
inline

◆ createExpression()

static ProjectionBlock::ExpressionPair Dune::dgf::ProjectionBlock::createExpression ( const std::string &  funcexpr,
const int  dimworld 
)
inlinestatic

◆ defaultProjection()

template<int dimworld>
const DuneBoundaryProjection< dimworld > * Dune::dgf::ProjectionBlock::defaultProjection ( ) const
inline

◆ findtoken()

bool Dune::dgf::BasicBlock::findtoken ( std ::string  token)
protectedinherited

◆ function()

ExpressionPointer Dune::dgf::ProjectionBlock::function ( const std::string &  name) const
inline

◆ getnextentry()

template<class ENTRY >
bool Dune::dgf::BasicBlock::getnextentry ( ENTRY &  entry)
inlineprotectedinherited

◆ getnextline()

bool Dune::dgf::BasicBlock::getnextline ( )
protectedinherited

◆ gettokenparam()

bool Dune::dgf::BasicBlock::gettokenparam ( std ::string  token,
std ::string &  entry 
)
protectedinherited

◆ id()

const std::string & Dune::dgf::BasicBlock::id ( ) const
inlineinherited

◆ isactive()

bool Dune::dgf::BasicBlock::isactive ( )
inlineinherited

◆ isempty()

bool Dune::dgf::BasicBlock::isempty ( )
inlineinherited

◆ lastFunctionInserted()

ExpressionPair Dune::dgf::ProjectionBlock::lastFunctionInserted ( ) const
inline

◆ linenumber()

int Dune::dgf::BasicBlock::linenumber ( )
inlineinherited

◆ noflines()

int & Dune::dgf::BasicBlock::noflines ( )
inlineinherited

◆ numBoundaryProjections()

size_t Dune::dgf::ProjectionBlock::numBoundaryProjections ( ) const
inline

◆ reset()

void Dune::dgf::BasicBlock::reset ( )
inlineprotectedinherited

Member Data Documentation

◆ boundaryFunctions_

std::vector< BoundaryFunction > Dune::dgf::ProjectionBlock::boundaryFunctions_
protected

◆ defaultFunction_

ExpressionPair Dune::dgf::ProjectionBlock::defaultFunction_
protected

◆ functions_

FunctionMap Dune::dgf::ProjectionBlock::functions_
protected

◆ line

std::stringstream Dune::dgf::BasicBlock::line
protected

◆ token

Token Dune::dgf::ProjectionBlock::token
protected

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