aboutsummaryrefslogtreecommitdiff
path: root/Carpet/CarpetLib/src/bboxtree.hh
blob: 6a062d22c01be4ed5aa5726fcefc3dec46d0b265 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#ifndef BBOXTREE_HH
#define BBOXTREE_HH

#include <vector>

using namespace std;

template <typename T, int D>
class bboxtree {
  struct node {
    T lower, upper;
    bboxtree<T,D-1>* branch;
  };
  vector<node> bs;
};

template <typename T>
class bboxtree <T, 0> {
  // empty
};

#endif  // #ifndef BBOXTREE_HH