IMP.bff
Loading...
Searching...
No Matches
PathMapTileEdge.h
Go to the documentation of this file.
1
9#ifndef IMPBFF_PATHMAPTILEEDGE_H
10#define IMPBFF_PATHMAPTILEEDGE_H
11
12#include <IMP/bff/bff_config.h>
13
14#include <vector>
15
16#include <IMP/bff/PathMap.h>
17#include <IMP/bff/PathMapTile.h>
18
19IMPBFF_BEGIN_NAMESPACE
20
21class PathMap;
22class PathMapTile;
23
24
26
27friend class PathMapTile;
28friend class PathMap;
29
30
31protected:
32
34 float length;
35
36public:
37
39 float get_length() const{
40 return length;
41 }
42
49 int edge_target = -1,
50 float edge_cost = std::numeric_limits<float>::max()
51 ) :
52 tile_idx(edge_target), length(edge_cost){}
53};
54
55
56IMPBFF_END_NAMESPACE
57
58#endif //IMPBFF_PATHMAPTILEEDGE_H
Definition PathMap.h:44
Definition PathMapTileEdge.h:25
int tile_idx
Definition PathMapTileEdge.h:33
float length
The tile the edge is pointing to.
Definition PathMapTileEdge.h:34
float get_length() const
the path length / cost of going to the tile
Definition PathMapTileEdge.h:39
PathMapTileEdge(int edge_target=-1, float edge_cost=std::numeric_limits< float >::max())
Definition PathMapTileEdge.h:48
Definition PathMapTile.h:50