Feel++  0.91.4
Public Types | Public Member Functions | List of all members
Feel::Importer< MeshType > Class Template Reference

#include <importer.hpp>

Inheritance diagram for Feel::Importer< MeshType >:
Feel::VisitorBase Feel::Visitor< MeshType > Feel::ImporterGambit< MeshType > Feel::ImporterGmsh< MeshType >

Public Types

typedef MeshType mesh_type
 
typedef mesh_type::point_type point_type
 
typedef point_type::node_type node_type
 
typedef mesh_type::edge_type edge_type
 
typedef mesh_type::face_type face_type
 
typedef mesh_type::element_type element_type
 
- Public Types inherited from Feel::Visitor< MeshType >
typedef void return_type
 

Public Member Functions

 Importer (MeshFormat const &_format=GMSH, WorldComm const &_worldcomm=WorldComm())
 
 Importer (std::string const &_filename, MeshFormat const &_format=GMSH, WorldComm const &_worldcomm=WorldComm())
 
void setFilename (std::string const &__filename)
 
void setFormat (MeshFormat const &__format)
 
std::string const & filename () const
 
MeshFormat format () const
 
WorldComm const & worldComm () const
 
- Public Member Functions inherited from Feel::Visitor< MeshType >
virtual ~Visitor ()
 virtual base destructor
 
virtual return_type visit (MeshType *)=0
 visit a data structure
 
return_type visit (MeshType &__t)
 visit a data structure
 

Detailed Description

template<typename MeshType>
class Feel::Importer< MeshType >

import mesh data formats into Feel mesh data structure.

Author
Christophe Prud'homme chris.nosp@m.toph.nosp@m.e.pru.nosp@m.dhom.nosp@m.me@uj.nosp@m.f-gr.nosp@m.enobl.nosp@m.e.fr

Constructor & Destructor Documentation

template<typename MeshType >
Feel::Importer< MeshType >::Importer ( MeshFormat const &  _format = GMSH,
WorldComm const &  _worldcomm = WorldComm() 
)
inline

default constructor. use GMSH as default mesh format

template<typename MeshType >
Feel::Importer< MeshType >::Importer ( std::string const &  _filename,
MeshFormat const &  _format = GMSH,
WorldComm const &  _worldcomm = WorldComm() 
)
inline

constructor

Parameters
filenamemesh filename to import
formatformat of the file

Member Function Documentation

template<typename MeshType >
std::string const& Feel::Importer< MeshType >::filename ( ) const
inline
Returns
the filename
template<typename MeshType >
MeshFormat Feel::Importer< MeshType >::format ( ) const
inline
Returns
the mesh format
template<typename MeshType >
void Feel::Importer< MeshType >::setFilename ( std::string const &  __filename)
inline

set the file name

Parameters
__filename
template<typename MeshType >
void Feel::Importer< MeshType >::setFormat ( MeshFormat const &  __format)
inline

set the format of the mesh file

Parameters
__formatformat
template<typename MeshType >
WorldComm const& Feel::Importer< MeshType >::worldComm ( ) const
inline
Returns
the world comm