Class documentation of Concepts

Loading...
Searching...
No Matches
restriction.hh
Go to the documentation of this file.
1
8#ifndef SPACE_RESTRICTION_HH_
9#define SPACE_RESTRICTION_HH_
10
11#include "space.hh"
12#include "toolbox/set.hh"
13#include "geometry/connector.hh"
14
15namespace concepts {
16
17 // ******************************************************* RestrictionSpace **
18
27 template<class F = Real>
28 class RestrictionSpace : public SpaceOnCells<F> {
29 public:
32
39
40 virtual ~RestrictionSpace();
41
43 virtual Scanner* scan() const { return new concepts::PListScan<ElementWithCell<F> >(*elm_); }
44
46 virtual uint dim() const { return dim_; }
47
49 virtual uint nelm() const { return nelm_; }
50 protected:
51 virtual std::ostream& info(std::ostream& os) const;
52 private:
54 const uint dim_;
56 uint nelm_;
59 };
60
61} // namespace concepts
62
63
64
65#endif /* SPACE_RESTRICTION_HH_ */
virtual Scanner * scan() const
Returns a scanner to iterate over the elements of the space.
virtual std::ostream & info(std::ostream &os) const
Returns information in an output stream.
RestrictionSpace(const SpaceOnCells< F > &spc, const Set< Attribute > attrib)
virtual uint dim() const
Returns the dimension of the space.
virtual uint nelm() const
Returns the number of elements in the space.
Set< F > makeSet(uint n, const F &first,...)
Definition set.hh:320