Class documentation of Concepts

Loading...
Searching...
No Matches
space1D.hh
Go to the documentation of this file.
1
6#ifndef linSpace1D_hh
7#define linSpace1D_hh
8
9#include "element1D.hh"
10#include "basics/typedefs.hh"
11#include "space/space.hh"
12#include "space/element.hh"
14#include "toolbox/dynArray.hh"
15
16namespace concepts {
17
18 // forward declarations
19 class Mesh1;
20 class BoundaryConditions;
21
22 // ************************************************************** Scanners **
23
24 template<>
25 class Scan<linearFEM::Line> : public Scan<linearFEM::Element> {
26 public:
27 virtual linearFEM::Line& operator++(int) = 0;
28 };
29
30} // namespace concepts
31
32namespace linearFEM {
33
34 // ************************************************************** Linear1d **
35
39 class Linear1d : public concepts::Space<Real> {
40 public:
42 typedef void (*SMap)(const concepts::TColumn<Real>&,
49 Linear1d(concepts::Mesh1& msh, uint level,
51 virtual ~Linear1d();
52 virtual uint dim() const { return dim_; }
53 virtual uint nelm() const { return nelm_; }
54 virtual Scan* scan() const { return new concepts::PListScan<Line>(*elm_); }
55 protected:
56 virtual std::ostream& info(std::ostream& os) const;
57 private:
59 uint dim_;
61 uint nelm_;
63 concepts::Mesh1& msh_;
77 void enforceBC_(concepts::Cell1& cell, uint level,
90 void constructor_(concepts::Cell1& cell, uint level,
92 const concepts::DynArray<uint>& bcMap);
93 };
94
95} // namespace linearFEM
96
97#endif // linSpace1D_hh
One dimensional cell.
Definition cell.hh:75
virtual linearFEM::Line & operator++(int)=0
Returns the next element in the scanned set.
virtual Scan * scan() const
Returns a scanner to iterate over the elements of the space.
Definition space1D.hh:54
Linear1d(concepts::Mesh1 &msh, uint level, concepts::BoundaryConditions *bc=0)
virtual uint dim() const
Returns the dimension of the space.
Definition space1D.hh:52
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
virtual uint nelm() const
Returns the number of elements in the space.
Definition space1D.hh:53
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320