GenericMeshReader< ELEMENT_DIM, SPACE_DIM > Class Template Reference

#include <GenericMeshReader.hpp>

Inheritance diagram for GenericMeshReader< ELEMENT_DIM, SPACE_DIM >:

Inheritance graph
[legend]
Collaboration diagram for GenericMeshReader< ELEMENT_DIM, SPACE_DIM >:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 GenericMeshReader (std::string pathBaseName)
 ~GenericMeshReader ()
unsigned GetNumNodes () const
unsigned GetNumElements () const
unsigned GetNumFaces () const
unsigned GetNumElementAttributes () const
unsigned GetNumFaceAttributes () const
void Reset ()
std::vector< double > GetNextNode ()
ElementData GetNextElementData ()
ElementData GetNextFaceData ()
std::string GetMeshFileBaseName ()

Private Attributes

AbstractMeshReader
< ELEMENT_DIM, SPACE_DIM > * 
mpMeshReader


Detailed Description

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
class GenericMeshReader< ELEMENT_DIM, SPACE_DIM >

A generic mesh reader Uses a delegated member variable of type AbstractMeshReader to probe for files which may be read via

Probing is done during construction.

Thereafter all public methods use the public methods of the delegated class and exceptions are passed back to the caller without being caught locally

Definition at line 51 of file GenericMeshReader.hpp.


Constructor & Destructor Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GenericMeshReader ( std::string  pathBaseName  )  [inline]

Constructor.

Parameters:
pathBaseName the base name of the files from which to read the mesh data (either absolute, or relative to the current directory)

Definition at line 65 of file GenericMeshReader.hpp.

References EXCEPTION, Exception::GetShortMessage(), and GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::~GenericMeshReader (  )  [inline]

Destructor

Definition at line 107 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.


Member Function Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumNodes (  )  const [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 116 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElements (  )  const [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 124 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaces (  )  const [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 132 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumElementAttributes (  )  const [inline, virtual]

Method uses the public method of the delegated mesh reader

Reimplemented from AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 139 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
unsigned GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNumFaceAttributes (  )  const [inline, virtual]

Method uses the public method of the delegated mesh reader

Reimplemented from AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 147 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
void GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::Reset (  )  [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 155 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::vector<double> GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextNode (  )  [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 163 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
ElementData GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextElementData (  )  [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 171 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
ElementData GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetNextFaceData (  )  [inline, virtual]

Method uses the public method of the delegated mesh reader

Implements AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 178 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
std::string GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::GetMeshFileBaseName (  )  [inline, virtual]

Get the base name (less any extension) for mesh files. Only implemented for some mesh types. Method uses the public method of the delegated mesh reader

Reimplemented from AbstractMeshReader< ELEMENT_DIM, SPACE_DIM >.

Definition at line 187 of file GenericMeshReader.hpp.

References GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader.


Member Data Documentation

template<unsigned ELEMENT_DIM, unsigned SPACE_DIM>
AbstractMeshReader<ELEMENT_DIM, SPACE_DIM>* GenericMeshReader< ELEMENT_DIM, SPACE_DIM >::mpMeshReader [private]


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

Generated on Mon Nov 1 12:36:45 2010 for Chaste by  doxygen 1.5.5