dune-grid  2.2.0
Classes | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
Dune::dgf::ProjectionBlock Class Reference

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

Inheritance diagram for Dune::dgf::ProjectionBlock:
Dune::dgf::BasicBlock

List of all members.

Classes

class  BoundaryProjection
struct  Expression
struct  Token

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 &)
std::ostream & operator<< (std::ostream &os, const BasicBlock &b)

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) [protected, inherited]
const Expression* Dune::dgf::ProjectionBlock::function ( const std::string &  name) const [inline]
template<class ENTRY >
bool Dune::dgf::BasicBlock::getnextentry ( ENTRY &  entry) [inline, protected, inherited]
bool Dune::dgf::BasicBlock::getnextline ( ) [protected, inherited]
bool Dune::dgf::BasicBlock::gettokenparam ( std::string  token,
std::string &  entry 
) [protected, inherited]
const std::string& Dune::dgf::BasicBlock::id ( ) const [inline, inherited]
bool Dune::dgf::BasicBlock::isactive ( ) [inline, inherited]
bool Dune::dgf::BasicBlock::isempty ( ) [inline, inherited]
int Dune::dgf::BasicBlock::linenumber ( ) [inline, inherited]
int& Dune::dgf::BasicBlock::noflines ( ) [inline, inherited]

References boundaryFunctions_.

Referenced by boundaryFace(), and boundaryProjection().

void Dune::dgf::BasicBlock::reset ( ) [inline, protected, inherited]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  ,
const Token &   
) [friend]
std :: ostream& operator<< ( std::ostream &  os,
const BasicBlock b 
) [friend, inherited]

Member Data Documentation

Referenced by defaultProjection().

Referenced by function().

std::stringstream Dune::dgf::BasicBlock::line [protected, inherited]

Referenced by ProjectionBlock().


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