dune-grid  2.2.0
Public Member Functions | Protected Member Functions | Protected Attributes | Friends | List of all members
Dune::dgf::BasicBlock Class Reference

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

Inheritance diagram for Dune::dgf::BasicBlock:
Dune::dgf::BoundaryDomBlock Dune::dgf::BoundarySegBlock Dune::dgf::CubeBlock Dune::dgf::DimBlock Dune::dgf::GridParameterBlock Dune::dgf::IntervalBlock Dune::dgf::PeriodicFaceTransformationBlock Dune::dgf::ProjectionBlock Dune::dgf::SimplexBlock Dune::dgf::SimplexGenerationBlock Dune::dgf::VertexBlock

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)

Constructor & Destructor Documentation

Dune::dgf::BasicBlock::BasicBlock ( std::istream &  in,
const char *  id 
)

References Dune::dgf::makeupcase(), and reset().

Member Function Documentation

bool Dune::dgf::BasicBlock::findtoken ( std::string  token)
protected
template<class ENTRY >
bool Dune::dgf::BasicBlock::getnextentry ( ENTRY &  entry)
inlineprotected
bool Dune::dgf::BasicBlock::getnextline ( )
protected
bool Dune::dgf::BasicBlock::gettokenparam ( std::string  token,
std::string &  entry 
)
protected
const std::string& Dune::dgf::BasicBlock::id ( ) const
inline
bool Dune::dgf::BasicBlock::isactive ( )
inline
bool Dune::dgf::BasicBlock::isempty ( )
inline
int Dune::dgf::BasicBlock::linenumber ( )
inline
int& Dune::dgf::BasicBlock::noflines ( )
inline
void Dune::dgf::BasicBlock::reset ( )
inlineprotected

Friends And Related Function Documentation

std :: ostream& operator<< ( std::ostream &  os,
const BasicBlock b 
)
friend

Member Data Documentation

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

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