Main Page
Namespaces
Classes
Files
File List
File Members
include
micros_swarm
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
31
class
CheckNeighborInterface
{
32
public
:
33
virtual
float
getNeighborDistance
() = 0;
34
virtual
bool
isNeighbor
(
const
Base
&
self
,
const
Base
& neighbor) = 0;
35
};
36
37
class
CheckNeighbor
:
public
CheckNeighborInterface
{
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
micros_swarm::CheckNeighborInterface::getNeighborDistance
virtual float getNeighborDistance()=0
micros_swarm
Definition:
app_manager.h:44
micros_swarm::CheckNeighborInterface
Definition:
check_neighbor.h:31
data_type.h
micros_swarm::CheckNeighbor
Definition:
check_neighbor.h:37
micros_swarm::CheckNeighbor::neighbor_distance_
const float & neighbor_distance_
Definition:
check_neighbor.h:43
micros_swarm::Base
Definition:
data_type.h:38
micros_swarm::CheckNeighborInterface::isNeighbor
virtual bool isNeighbor(const Base &self, const Base &neighbor)=0
micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06