dune-grid  2.1.1
Classes | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | Friends
Dune::dgf::IntervalBlock Struct Reference

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

Inheritance diagram for Dune::dgf::IntervalBlock:
Inheritance graph

List of all members.

Classes

struct  Interval

Public Member Functions

 IntervalBlock (std::istream &in)
void get (std::vector< std::vector< double > > &vtx, int &nofvtx, std::vector< std::vector< unsigned int > > &simplex, int &nofsimpl)
void get (std::vector< std::vector< double > > &vtx, int &nofvtx)
const Intervalget (int block) const
int numIntervals () const
int dimw () const
int getVtx (int block, std::vector< std::vector< double > > &vtx) const
int getHexa (int block, std::vector< std::vector< unsigned int > > &cubes, int offset=0) const
int nofvtx (int block) const
int nofhexa (int block) const
bool isactive ()
bool isempty ()
int & noflines ()
int linenumber ()

Static Public Attributes

static const char * ID = "Interval"

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::IntervalBlock::IntervalBlock ( std::istream &  in) [explicit]

Member Function Documentation

int Dune::dgf::IntervalBlock::dimw ( ) const [inline]
bool Dune::dgf::BasicBlock::findtoken ( std::string  token) [protected, inherited]
void Dune::dgf::IntervalBlock::get ( std::vector< std::vector< double > > &  vtx,
int &  nofvtx,
std::vector< std::vector< unsigned int > > &  simplex,
int &  nofsimpl 
) [inline]
void Dune::dgf::IntervalBlock::get ( std::vector< std::vector< double > > &  vtx,
int &  nofvtx 
) [inline]

References getVtx(), and nofvtx().

const Interval& Dune::dgf::IntervalBlock::get ( int  block) const [inline]
int Dune::dgf::IntervalBlock::getHexa ( int  block,
std::vector< std::vector< unsigned int > > &  cubes,
int  offset = 0 
) const

References dimw(), Dune::dgf::IntervalBlock::Interval::n, and nofhexa().

Referenced by get().

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]
int Dune::dgf::IntervalBlock::getVtx ( int  block,
std::vector< std::vector< double > > &  vtx 
) const
bool Dune::dgf::BasicBlock::isactive ( ) [inline, inherited]
bool Dune::dgf::BasicBlock::isempty ( ) [inline, inherited]
int Dune::dgf::BasicBlock::linenumber ( ) [inline, inherited]
int Dune::dgf::IntervalBlock::nofhexa ( int  block) const [inline]
int& Dune::dgf::BasicBlock::noflines ( ) [inline, inherited]
int Dune::dgf::IntervalBlock::nofvtx ( int  block) const [inline]

References Dune::dgf::IntervalBlock::Interval::n.

Referenced by get(), and getVtx().

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

Friends And Related Function Documentation

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

Member Data Documentation

const char * Dune::dgf::IntervalBlock::ID = "Interval" [static]
std::stringstream Dune::dgf::BasicBlock::line [protected, inherited]

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