MineLink
 All Data Structures Functions Variables Pages
arcs.h
1 #ifndef __ARC_H__
2 #define __ARC_H__
3 #include "../bm/blockmodel.h"
4 
5 namespace delphos{
6 
21 class Arc {
22 private:
23  BlockIndexType _first;
24  BlockIndexType _second;
25 public:
32  Arc(const delphos::BlockIndexType & first, const delphos::BlockIndexType & second);
33 
39  Arc(const delphos::Arc & other);
40 
51  delphos::BlockIndexType First() const;
52 
61  delphos::BlockIndexType Second() const;
62 
69  delphos::BlockIndexType From() const;
70 
77  delphos::BlockIndexType To() const;
78 };
79 }
80 #endif
81 
delphos::BlockIndexType To() const
Return the first element in the arc (the tail). Equivalent to First().
Definition: arcs.cpp:33
delphos::BlockIndexType First() const
Return the first element in the arc (the tail). Equivalent to To().
Definition: arcs.cpp:15
A class that abstracts a relation between two indexes that represent two block ids.
Definition: arcs.h:21
delphos::BlockIndexType From() const
Return the head of the arc. Equivalent to Second().
Definition: arcs.cpp:27
delphos::BlockIndexType Second() const
Return the second element in the arc (the head). Equivalent to From().
Definition: arcs.cpp:21
Arc(const delphos::BlockIndexType &first, const delphos::BlockIndexType &second)
Creates a new arc between the given blocks referenced by indexes.
Definition: arcs.cpp:5