check_neighbor.h
Go to the documentation of this file.
1 
23 #ifndef CHECK_NEIGHBOR_H_
24 #define CHECK_NEIGHBOR_H_
25 
26 #include <iostream>
27 #include "micros_swarm/data_type.h"
28 
29 namespace micros_swarm{
30 
32  public:
33  virtual float getNeighborDistance() = 0;
34  virtual bool isNeighbor(const Base& self, const Base& neighbor) = 0;
35  };
36 
38  public:
39  CheckNeighbor(const float& neighbor_distance);
40  float getNeighborDistance();
41  bool isNeighbor(const Base& self, const Base& neighbor);
42  private:
43  const float& neighbor_distance_;
44  };
45 };
46 
47 #endif
const float & neighbor_distance_
virtual bool isNeighbor(const Base &self, const Base &neighbor)=0


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06