Class documentation of Concepts

Loading...
Searching...
No Matches
meshes1D.hh
Go to the documentation of this file.
1
8#ifndef meshes1D_hh
9#define meshes1D_hh
10
11#include "mesh.hh"
12
13namespace concepts {
14
15 // ******************************************************************* Line **
16
23 class Line : public Mesh1 {
24 public:
31 Line(const uint n = 1);
32
34 Line(Real left, Real right);
36 Line(Real left, Real mid, Real right);
39
40
41 virtual ~Line();
42 unsigned int ncell() const { return n_; }
43 Scan1* scan() { return new PStlVectorScan<Cell1>(cell_); }
44 virtual std::ostream& info(std::ostream& os) const;
45 private:
46 // Number of cells
47 const uint n_;
48
52
53 void construct_(const Array<Real> coord);
54 };
55
56} // namespace concepts
57
58#endif // meshes1D_hh
Line(const uint n=1)
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
Line(Real left, Real right)
Constructor for two vertices.
Line(Real left, Real mid, Real right)
Constructor for three vertices.
Scan1 * scan()
Definition meshes1D.hh:43
Line(Real v0, Real v1, Real v2, Real v3)
Constructor for four vertices.
unsigned int ncell() const
Returns the number of cells in the mesh.
Definition meshes1D.hh:42
A scanner for a 1D mesh.
Definition mesh.hh:36
double Real
Definition typedefs.hh:39
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320