dune-grid
2.2.0
|
#include <dune/grid/io/file/dgfparser/blocks/basic.hh>
Public Member Functions | |
BasicBlock (std::istream &in, const char *id) | |
bool | isactive () |
bool | isempty () |
int & | noflines () |
int | linenumber () |
const std::string & | id () const |
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 | |
std::stringstream | line |
Friends | |
std::ostream & | operator<< (std::ostream &os, const BasicBlock &b) |
Dune::dgf::BasicBlock::BasicBlock | ( | std::istream & | in, |
const char * | id | ||
) |
References Dune::dgf::makeupcase(), and reset().
bool Dune::dgf::BasicBlock::findtoken | ( | std::string | token | ) | [protected] |
References getnextline(), Dune::dgf::makeupcase(), and 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().
bool Dune::dgf::BasicBlock::getnextentry | ( | ENTRY & | entry | ) | [inline, protected] |
References 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] |
bool Dune::dgf::BasicBlock::gettokenparam | ( | std::string | token, |
std::string & | entry | ||
) | [protected] |
References getnextline(), Dune::dgf::makeupcase(), and reset().
Referenced by Dune::dgf::SimplexGenerationBlock::SimplexGenerationBlock().
const std::string& Dune::dgf::BasicBlock::id | ( | ) | const [inline] |
Referenced by Dune::dgf::BoundaryDomBlock::BoundaryDomBlock(), and Dune::dgf::VertexBlock::VertexBlock().
bool Dune::dgf::BasicBlock::isactive | ( | ) | [inline] |
bool Dune::dgf::BasicBlock::isempty | ( | ) | [inline] |
Referenced by Dune::dgf::DimBlock::DimBlock(), and Dune::dgf::GridParameterBlock::GridParameterBlock().
int Dune::dgf::BasicBlock::linenumber | ( | ) | [inline] |
int& Dune::dgf::BasicBlock::noflines | ( | ) | [inline] |
void Dune::dgf::BasicBlock::reset | ( | ) | [inline, protected] |
Reimplemented in Dune::dgf::BoundaryDomBlock.
Referenced by BasicBlock(), findtoken(), Dune::dgf::VertexBlock::get(), Dune::dgf::CubeBlock::get(), gettokenparam(), and Dune::dgf::IntervalBlock::IntervalBlock().
std :: ostream& operator<< | ( | std::ostream & | os, |
const BasicBlock & | b | ||
) | [friend] |
std::stringstream Dune::dgf::BasicBlock::line [protected] |
Referenced by Dune::dgf::BoundaryDomBlock::BoundaryDomBlock(), Dune::dgf::DimBlock::DimBlock(), and getnextentry().