11#include <dune/common/typetraits.hh>
30 int get ( std::vector< std::vector< int > > &polygons )
33 std::vector< int > polygon;
40 DUNE_THROW(
DGFException,
"Error in " << *
this <<
": Invalid vertex index (" << vtxIdx <<
" not int [" <<
vtxBegin_ <<
", " <<
vtxEnd_ <<
"[)" );
44 polygons.push_back( polygon );
46 return polygons.size();
Include standard header files.
Definition agrid.hh:60
void reset()
Definition basic.hh:51
bool getnextline()
Definition basic.cc:93
bool getnextentry(ENTRY &entry)
Definition basic.hh:63
PolygonBlock(std::istream &in, int numVtx, int vtxOfs)
Definition polygon.hh:26
int get(std::vector< std::vector< int > > &polygons)
Definition polygon.hh:30
int vtxEnd_
Definition polygon.hh:50
int vtxBegin_
Definition polygon.hh:50
exception class for IO errors in the DGF parser
Definition dgfexception.hh:16