-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBox.hpp
More file actions
47 lines (32 loc) · 713 Bytes
/
Box.hpp
File metadata and controls
47 lines (32 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Box.hpp
// Helmholtz-potential-evaluation
//
// Created by Eduard on 5/18/23.
//
#ifndef Box_hpp
#define Box_hpp
#include <iostream>
#include <vector>
#include <list>
#include <cmath>
#include "Coordinate.hpp"
#include "Source.hpp"
struct Box{ // node for the tree
//OCF
Box(){}
Box(const Box &aBox);
Box& operator = (const Box &aBox);
~Box(){}
Box* parent;
Box* children[8];
int level;
double length;
int index;
Coordinate edge;
std::list<Source*> Sources;
std::list<Box*> NearField;
std::list<Box*> FarField;
friend std::ostream& operator<<(std::ostream& os, const Box& aBox);
};
#endif /* Box_hpp */