Dune::GridViewInfo< ctype > Struct Template Reference

structure to hold information about a certain GridView. More...

#include <dune/grid/utility/gridinfo.hh>

Inheritance diagram for Dune::GridViewInfo< ctype >:
Inheritance graph

List of all members.

Public Member Functions

void print (std::ostream &stream, std::string prefix) const
 print the information contained in this object

Public Attributes

std::string gridName
 name of the grid class this information was extracted from
std::string gridViewName
 name of the class of the GridView this information was extracted from
std::string partitionName
 name of the partition this information was extracted from

Related Functions

(Note that these are not member functions.)



template<class ctype >
std::ostream & operator<< (std::ostream &stream, const GridViewInfo< ctype > &info)
 write a GridViewInfo object

Detailed Description

template<class ctype>
struct Dune::GridViewInfo< ctype >

structure to hold information about a certain GridView.

This is a map from GeometryType to EntityInfo structures. The entries in the map are sorted in dimension-first, isNone()-second, and topologyId-last order.


Member Function Documentation

template<class ctype>
void Dune::GridViewInfo< ctype >::print ( std::ostream &  stream,
std::string  prefix 
) const [inline]

print the information contained in this object

Parameters:
stream Stream object to print to.
prefix Prefix to print in front of each line.

Sample output:

prefix>
     * 

If gridName, gridViewName, or partitionName is emtpy, the corresponding line is not printed and no extra indentation is added for the subsequent lines.

References Dune::GridViewInfo< ctype >::gridName, Dune::GridViewInfo< ctype >::gridViewName, and Dune::GridViewInfo< ctype >::partitionName.

Referenced by Dune::GridViewInfo< ctype >::operator<<().


Friends And Related Function Documentation

template<class ctype >
std::ostream & operator<< ( std::ostream &  stream,
const GridViewInfo< ctype > &  info 
) [related]

write a GridViewInfo object

This is equivalent to callinf info.print(stream, "").

References Dune::GridViewInfo< ctype >::print().


Member Data Documentation

template<class ctype>
std::string Dune::GridViewInfo< ctype >::gridName

name of the grid class this information was extracted from

Referenced by Dune::fillGridViewInfoSerial(), and Dune::GridViewInfo< ctype >::print().

template<class ctype>
std::string Dune::GridViewInfo< ctype >::gridViewName

name of the class of the GridView this information was extracted from

Referenced by Dune::fillGridViewInfoSerial(), and Dune::GridViewInfo< ctype >::print().

template<class ctype>
std::string Dune::GridViewInfo< ctype >::partitionName

name of the partition this information was extracted from

May be empty if not applicable (serial grids, for instance) or may be a combination of partitions such as "interior+border".

Referenced by Dune::fillGridViewInfoSerial(), and Dune::GridViewInfo< ctype >::print().


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

Generated on Fri Apr 29 2011 with Doxygen (ver 1.7.1) [doxygen-log,error-log].