Boundary.h 611 Bytes
Newer Older
JasonPries's avatar
JasonPries committed
1
2
3
4
5
6
7
8
9
10
11
12
#ifndef OERSTED_BOUNDARY_H
#define OERSTED_BOUNDARY_H

template<size_t Dimension>
class Boundary {
};

template<>
class Boundary<2> {
public:
    Boundary(std::vector<size_t> nodes) : Nodes{nodes} {};

JasonPries's avatar
JasonPries committed
13
14
15
16
    size_t size() const { return Nodes.size(); };

    std::vector<size_t> &nodes() { return Nodes; };

JasonPries's avatar
JasonPries committed
17
18
    std::vector<size_t> const &nodes() const { return Nodes; };

JasonPries's avatar
JasonPries committed
19
20
    size_t node(size_t i) { return Nodes[i]; };

JasonPries's avatar
JasonPries committed
21
22
    size_t const &node(size_t i) const { return Nodes[i]; };

JasonPries's avatar
JasonPries committed
23

JasonPries's avatar
JasonPries committed
24
25
26
27
protected:
    std::vector<size_t> Nodes;
};

JasonPries's avatar
JasonPries committed
28
29
30
31
32
template <size_t Dimension>
class BoundaryPair {

};

JasonPries's avatar
JasonPries committed
33
#endif //OERSTED_BOUNDARY_H