Class documentation of Concepts

Loading...
Searching...
No Matches
meshImport2Dgmsh.hh
Go to the documentation of this file.
1
8#ifndef MESHIMPORT2DGMSH_HH
9#define MESHIMPORT2DGMSH_HH
10
11#include "basics.hh"
12#include "geometry.hh"
13
14namespace concepts {
15
39 class Import2DMeshGmsh : public Mesh2 {
40 public:
46 Import2DMeshGmsh(const std::string& filename);
47
48 virtual ~Import2DMeshGmsh();
49
50 unsigned int ncell() const {
51 return cell_.size();
52 }
53
55 return new concepts::PStlVectorScan<concepts::Cell2 > (cell_.begin(), cell_.end());
56 }
57 virtual std::ostream& info(std::ostream& os) const;
58
59 private:
60 bool isOrderedCounterClockwise(int idx1, int idx2, int idx3, int idx4) const;
61
67
68 };
69
78 public:
85 GmshInputException(const std::string& error, const std::string& filename,
86 const uint& lineNr, const std::string& line) throw ();
87
88 virtual const char* what() const throw();
89
92 virtual std::ostream& info(std::ostream& os) const throw ();
93 private:
95 std::string error_;
97 std::string filename_;
99 uint lineNr_;
101 std::string line_;
102
103 mutable std::string outputMessage_ ;
104 };
105
106
107
108} // namespace concepts
109
110#endif /* MESHIMPORT2DGMSH_HH */
111
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
GmshInputException(const std::string &error, const std::string &filename, const uint &lineNr, const std::string &line)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
unsigned int ncell() const
Returns the number of cells in the mesh.
Import2DMeshGmsh(const std::string &filename)
A scanner for a 2D mesh.
Definition mesh.hh:44
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320