dune-grid  2.4.1
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends | 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 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
 
const Expressionfunction (const std::string &name) const
 
bool isactive ()
 
bool isempty ()
 
int & noflines ()
 
int linenumber ()
 
const std::string & id () const
 

Protected Types

typedef std::map< std::string,
const Expression * > 
FunctionMap
 
typedef std::pair< std::vector
< unsigned int >, const
Expression * > 
BoundaryFunction
 

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_
 
const ExpressiondefaultFunction_
 
std::vector< BoundaryFunctionboundaryFunctions_
 
std::stringstream line
 

Friends

std::ostream & operator<< (std::ostream &, const Token &)
 

Member Typedef Documentation

typedef std::pair< std::vector< unsigned int >, const Expression * > Dune::dgf::ProjectionBlock::BoundaryFunction
protected
typedef std::map< std::string, const Expression * > Dune::dgf::ProjectionBlock::FunctionMap
protected

Constructor & Destructor Documentation

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

Member Function Documentation

const std::vector< unsigned int >& Dune::dgf::ProjectionBlock::boundaryFace ( const size_t  i) const
inline
template<int dimworld>
const DuneBoundaryProjection< dimworld >* Dune::dgf::ProjectionBlock::boundaryProjection ( const size_t  i) const
inline
template<int dimworld>
const DuneBoundaryProjection< dimworld >* Dune::dgf::ProjectionBlock::defaultProjection ( ) const
inline

References defaultFunction_.

bool Dune::dgf::BasicBlock::findtoken ( std::string  token)
protectedinherited
const Expression* Dune::dgf::ProjectionBlock::function ( const std::string &  name) const
inline
template<class ENTRY >
bool Dune::dgf::BasicBlock::getnextentry ( ENTRY &  entry)
inlineprotectedinherited
bool Dune::dgf::BasicBlock::getnextline ( )
protectedinherited
bool Dune::dgf::BasicBlock::gettokenparam ( std::string  token,
std::string &  entry 
)
protectedinherited
const std::string& Dune::dgf::BasicBlock::id ( ) const
inlineinherited
bool Dune::dgf::BasicBlock::isactive ( )
inlineinherited
bool Dune::dgf::BasicBlock::isempty ( )
inlineinherited
int Dune::dgf::BasicBlock::linenumber ( )
inlineinherited
int& Dune::dgf::BasicBlock::noflines ( )
inlineinherited
size_t Dune::dgf::ProjectionBlock::numBoundaryProjections ( ) const
inline

References boundaryFunctions_.

Referenced by boundaryFace(), and boundaryProjection().

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

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Token &   
)
friend

Member Data Documentation

std::vector< BoundaryFunction > Dune::dgf::ProjectionBlock::boundaryFunctions_
protected
const Expression* Dune::dgf::ProjectionBlock::defaultFunction_
protected

Referenced by defaultProjection().

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

Referenced by function().

std::stringstream Dune::dgf::BasicBlock::line
protectedinherited
Token Dune::dgf::ProjectionBlock::token
protected

Referenced by ProjectionBlock().


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