Walls And Holes  1
triplet.h
Go to the documentation of this file.
1 #ifndef TRIPLET_H
2 #define TRIPLET_H
3 
4 
5 template< typename First, typename Second, typename Third >
6 class Triplet
7 {
8 public:
9 
10  using FirstType = First;
11  using SecondType = Second;
12  using ThirdType = Third;
13 
15  : first(),
16  second(),
17  third()
18  {
19 
20  }
21 
22  Triplet(First f, Second s, Third t)
23  : first(f),
24  second(s),
25  third(t)
26  {
27 
28  }
29 
30 
31  const First &getFirst() const { return first; }
32  const Second &getSecond() const { return second; }
33  const Third &getThird() const { return third; }
34 
35  First &getFirst() { return first; }
36  Second &getSecond() { return second; }
37  Third &getThird() { return third; }
38 
39 private:
40  First first;
41  Second second;
42  Third third;
43 };
44 
45 #endif // TRIPLET_H
Triplet()
Definition: triplet.h:14
Triplet(First f, Second s, Third t)
Definition: triplet.h:22
const First & getFirst() const
Definition: triplet.h:31
Second SecondType
Definition: triplet.h:11
Definition: triplet.h:6
First FirstType
Definition: triplet.h:10
const Third & getThird() const
Definition: triplet.h:33
Third & getThird()
Definition: triplet.h:37
Second & getSecond()
Definition: triplet.h:36
const Second & getSecond() const
Definition: triplet.h:32
Third ThirdType
Definition: triplet.h:12
First & getFirst()
Definition: triplet.h:35