-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBucket.cpp
55 lines (42 loc) · 848 Bytes
/
Bucket.cpp
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
48
49
50
51
52
53
54
55
#include "Bucket.h"
Bucket::Bucket(void)
{
}
Bucket::Bucket(Point3D pos)
{
this->position = pos;
}
Bucket::~Bucket(void)
{
}
std::vector<Particle> Bucket::getContents(){
return this->contents;
}
std::vector<int> Bucket::getNeighbors(){
return this->neighbors;
}
std::vector<Bucket*> Bucket::getBuckets(){
return this->buckets;
}
Point3D Bucket::getPosition(){
return this->position;
}
void Bucket::addParticle(Particle p){
this->contents.push_back(p);
}
void Bucket::setContents(std::vector<Particle> list){
this->contents = list;
}
void Bucket::setNeighbors(std::vector<int> list){
this->neighbors = list;
}
void Bucket::addNeighbor(int n){
this->neighbors.push_back(n);
}
void Bucket::removeParticle(Point3D position){
unsigned int c = 0;
while(c < this->contents.size()){
//if(this->contents[c].getPosition
c++;
}
}