Class documentation of Concepts

Loading...
Searching...
No Matches
meshImport2Dez4u.hh
Go to the documentation of this file.
1
7#ifndef meshImport2Dez4u_hh
8#define meshImport2Dez4u_hh
9
10#include "basics.hh"
11#include "toolbox.hh"
12#include "geometry.hh"
13
14namespace concepts {
15
16 // ********************************************************* Import2dMeshEz4u **
17
33 class Import2dMeshEz4u : public Mesh2 {
34 public:
40 Import2dMeshEz4u(const std::string filename);
41 virtual ~Import2dMeshEz4u();
42
43 inline uint ncell() const {return cell_.size(); }
44 inline Scan2* scan() {
45 return new PStlVectorScan<Cell2>(cell_.begin(), cell_.end());
46 }
47
48 virtual std::ostream& info(std::ostream& os) const;
49 private:
50 // sequence of the coordinates
51 Sequence<Real2d> coord_;
52 // sequence of the topological vertices
54 // multi-array, used for identify unique nodes
56 // sequence of the topological edges
57 Sequence<Edge*> edg_;
58 // multi-array, used for identify unique edges, commutable
60 // sequence of the topological quads
61 Sequence<Quad*> quad_;
62 // sequence of the cells
63 Sequence<Cell2*> cell_;
64 // multi-array for the element attribute
65 MultiArray<1,int> Attrib_elm_;
66 // multi-array for the edge attribute, non-commutable
67 MultiArray<2,int> Attrib_edg_;
68 // multi-array for the vtx attribute
69 MultiArray<1,int> Attrib_vtx_;
70 };
71
72
73 // ********************************************************** Ez4uException **
74
83 public:
91 Ez4uException(const std::string& error, const std::string& filename,
92 const uint lineNr, const std::string& line) throw();
93
94 virtual ~Ez4uException() throw();
96 virtual std::ostream& info(std::ostream& os) const throw();
97 private:
99 std::string error_;
101 std::string filename_;
103 uint lineNr_;
105 std::string line_;
106 };
107
108} // namespace concepts
109
110#endif //meshImport2Dez4u_hh
Ez4uException(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.
Import2dMeshEz4u(const std::string filename)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
uint ncell() const
Returns the number of cells in the mesh.
A scanner for a 2D mesh.
Definition mesh.hh:44
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320