ESyS-Particle  2.3.2
quadtuple.h
Go to the documentation of this file.
1 
2 // //
3 // Copyright (c) 2003-2014 by The University of Queensland //
4 // Centre for Geoscience Computing //
5 // http://earth.uq.edu.au/centre-geoscience-computing //
6 // //
7 // Primary Business: Brisbane, Queensland, Australia //
8 // Licensed under the Open Software License version 3.0 //
9 // http://www.opensource.org/licenses/osl-3.0.php //
10 // //
12 
13 
14 #ifndef ESYS_LSMQUADTUPLE_H
15 #define ESYS_LSMQUADTUPLE_H
16 
17 #include <boost/tuple/tuple.hpp>
18 
19 namespace esys
20 {
21  namespace lsm
22  {
23  template <typename T1, typename T2, typename T3, typename T4>
24  class quadtuple : public boost::tuple<T1,T2,T3,T4>
25  {
26  public:
27  typedef boost::tuple<T1,T2,T3,T4> inherited;
28  inline quadtuple() : inherited()
29  {
30  }
31 
32  inline quadtuple(const T1 &t1, const T2 &t2, const T3 &t3, const T4 &t4)
33  : inherited(t1,t2,t3,t4)
34  {
35  }
36 
37  inline quadtuple(const quadtuple &quad)
38  : inherited(quad)
39  {
40  }
41 
42  inline quadtuple &operator=(const quadtuple &quad)
43  {
45  return *this;
46  }
47  };
48  }
49 }
50 
51 #endif