dune-grid
2.2.0
|
#include <dune/grid/io/file/dgfparser/blocks/projection.hh>
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 Expression * | function (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 Expression * | defaultFunction_ |
std::vector< BoundaryFunction > | boundaryFunctions_ |
std::stringstream | line |
Friends | |
std::ostream & | operator<< (std::ostream &, const Token &) |
std::ostream & | operator<< (std::ostream &os, const BasicBlock &b) |
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] |
Dune::dgf::ProjectionBlock::ProjectionBlock | ( | std::istream & | in, |
int | dimworld | ||
) |
References Dune::dgf::BasicBlock::getnextline(), and token.
const std::vector< unsigned int >& Dune::dgf::ProjectionBlock::boundaryFace | ( | const size_t | i | ) | const [inline] |
References boundaryFunctions_, and numBoundaryProjections().
const DuneBoundaryProjection< dimworld >* Dune::dgf::ProjectionBlock::boundaryProjection | ( | const size_t | i | ) | const [inline] |
References boundaryFunctions_, and numBoundaryProjections().
const DuneBoundaryProjection< dimworld >* Dune::dgf::ProjectionBlock::defaultProjection | ( | ) | const [inline] |
References defaultFunction_.
bool Dune::dgf::BasicBlock::findtoken | ( | std::string | token | ) | [protected, inherited] |
References Dune::dgf::BasicBlock::getnextline(), Dune::dgf::makeupcase(), and Dune::dgf::BasicBlock::reset().
Referenced by Dune::dgf::BoundaryDomBlock::BoundaryDomBlock(), Dune::dgf::GridParameterBlock::GridParameterBlock(), Dune::dgf::SimplexGenerationBlock::SimplexGenerationBlock(), Dune::dgf::UGGridParameterBlock::UGGridParameterBlock(), Dune::dgf::VertexBlock::VertexBlock(), and Dune::dgf::YaspGridParameterBlock::YaspGridParameterBlock().
const Expression* Dune::dgf::ProjectionBlock::function | ( | const std::string & | name | ) | const [inline] |
References functions_.
Referenced by Dune::DGFCoordFunctionFactory< HostGrid, DGFCoordFunction< dimD, dimR >, false >::create().
bool Dune::dgf::BasicBlock::getnextentry | ( | ENTRY & | entry | ) | [inline, protected, inherited] |
References Dune::dgf::BasicBlock::line.
Referenced by Dune::dgf::BoundaryDomBlock::BoundaryDomBlock(), Dune::dgf::GridParameterBlock::GridParameterBlock(), Dune::dgf::IntervalBlock::IntervalBlock(), Dune::dgf::SimplexGenerationBlock::SimplexGenerationBlock(), Dune::dgf::UGGridParameterBlock::UGGridParameterBlock(), Dune::dgf::VertexBlock::VertexBlock(), and Dune::dgf::YaspGridParameterBlock::YaspGridParameterBlock().
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] |
Referenced by Dune::dgf::BoundaryDomBlock::BoundaryDomBlock(), and Dune::dgf::VertexBlock::VertexBlock().
bool Dune::dgf::BasicBlock::isactive | ( | ) | [inline, inherited] |
bool Dune::dgf::BasicBlock::isempty | ( | ) | [inline, inherited] |
Referenced by Dune::dgf::DimBlock::DimBlock(), and Dune::dgf::GridParameterBlock::GridParameterBlock().
int Dune::dgf::BasicBlock::linenumber | ( | ) | [inline, inherited] |
int& Dune::dgf::BasicBlock::noflines | ( | ) | [inline, inherited] |
size_t Dune::dgf::ProjectionBlock::numBoundaryProjections | ( | ) | const [inline] |
References boundaryFunctions_.
Referenced by boundaryFace(), and boundaryProjection().
void Dune::dgf::BasicBlock::reset | ( | ) | [inline, protected, inherited] |
std::ostream& operator<< | ( | std::ostream & | , |
const Token & | |||
) | [friend] |
std :: ostream& operator<< | ( | std::ostream & | os, |
const BasicBlock & | b | ||
) | [friend, inherited] |
std::vector< BoundaryFunction > Dune::dgf::ProjectionBlock::boundaryFunctions_ [protected] |
Referenced by boundaryFace(), boundaryProjection(), and numBoundaryProjections().
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 [protected, inherited] |
Token Dune::dgf::ProjectionBlock::token [protected] |
Referenced by ProjectionBlock().