gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Add missing const keywords (+ remove misleading ones) (#67)
0 1 0
default
1 file changed with 20 insertions and 18 deletions:
↑ Collapse diff ↑
Show white space 6 line context
... ...
@@ -76,3 +76,3 @@
76 76
    typedef FindArcTagIndicator<Digraph> FindArcTag;
77
    Arc findArc(const Node& u, const Node& v, const Arc& prev = INVALID) {
77
    Arc findArc(const Node& u, const Node& v, const Arc& prev = INVALID) const {
78 78
      return _digraph->findArc(u, v, prev);
... ...
@@ -83,6 +83,6 @@
83 83

	
84
    void erase(const Node& n) const { _digraph->erase(n); }
85
    void erase(const Arc& a) const { _digraph->erase(a); }
86

	
87
    void clear() const { _digraph->clear(); }
84
    void erase(const Node& n) { _digraph->erase(n); }
85
    void erase(const Arc& a) { _digraph->erase(a); }
86

	
87
    void clear() { _digraph->clear(); }
88 88

	
... ...
@@ -207,3 +207,4 @@
207 207
    typedef FindArcTagIndicator<Graph> FindArcTag;
208
    Arc findArc(const Node& u, const Node& v, const Arc& prev = INVALID) {
208
    Arc findArc(const Node& u, const Node& v,
209
                const Arc& prev = INVALID) const {
209 210
      return _graph->findArc(u, v, prev);
... ...
@@ -212,3 +213,4 @@
212 213
    typedef FindEdgeTagIndicator<Graph> FindEdgeTag;
213
    Edge findEdge(const Node& u, const Node& v, const Edge& prev = INVALID) {
214
    Edge findEdge(const Node& u, const Node& v,
215
                  const Edge& prev = INVALID) const {
214 216
      return _graph->findEdge(u, v, prev);
... ...
@@ -338,3 +340,3 @@
338 340
    Arc findArc(const Node& u, const Node& v,
339
                const Arc& prev = INVALID) {
341
                const Arc& prev = INVALID) const {
340 342
      return Parent::findArc(v, u, prev);
... ...
@@ -477,3 +479,3 @@
477 479
    Arc findArc(const Node& source, const Node& target,
478
                const Arc& prev = INVALID) {
480
                const Arc& prev = INVALID) const {
479 481
      if (!(*_node_filter)[source] || !(*_node_filter)[target]) {
... ...
@@ -620,3 +622,3 @@
620 622
    Arc findArc(const Node& source, const Node& target,
621
                const Arc& prev = INVALID) {
623
                const Arc& prev = INVALID) const {
622 624
      if (!(*_node_filter)[source] || !(*_node_filter)[target]) {
... ...
@@ -946,3 +948,3 @@
946 948
    Arc findArc(const Node& u, const Node& v,
947
                const Arc& prev = INVALID) {
949
                const Arc& prev = INVALID) const {
948 950
      if (!(*_node_filter_map)[u] || !(*_node_filter_map)[v]) {
... ...
@@ -959,3 +961,3 @@
959 961
    Edge findEdge(const Node& u, const Node& v,
960
                  const Edge& prev = INVALID) {
962
                  const Edge& prev = INVALID) const {
961 963
      if (!(*_node_filter_map)[u] || !(*_node_filter_map)[v]) {
... ...
@@ -1145,3 +1147,3 @@
1145 1147
    Arc findArc(const Node& u, const Node& v,
1146
                const Arc& prev = INVALID) {
1148
                const Arc& prev = INVALID) const {
1147 1149
      Arc arc = Parent::findArc(u, v, prev);
... ...
@@ -1155,3 +1157,3 @@
1155 1157
    Edge findEdge(const Node& u, const Node& v,
1156
                  const Edge& prev = INVALID) {
1158
                  const Edge& prev = INVALID) const {
1157 1159
      Edge edge = Parent::findEdge(u, v, prev);
... ...
@@ -2245,3 +2247,3 @@
2245 2247
    Arc findArc(const Node& u, const Node& v,
2246
                const Arc& prev = INVALID) {
2248
                const Arc& prev = INVALID) const {
2247 2249
      Arc arc = prev;
... ...
@@ -3099,6 +3101,6 @@
3099 3101
  class SplitNodes
3100
    : public DigraphAdaptorExtender<SplitNodesBase<_Digraph> > {
3102
    : public DigraphAdaptorExtender<SplitNodesBase<const _Digraph> > {
3101 3103
  public:
3102 3104
    typedef _Digraph Digraph;
3103
    typedef DigraphAdaptorExtender<SplitNodesBase<Digraph> > Parent;
3105
    typedef DigraphAdaptorExtender<SplitNodesBase<const Digraph> > Parent;
3104 3106

	
... ...
@@ -3113,3 +3115,3 @@
3113 3115
    /// Constructor of the adaptor.
3114
    SplitNodes(Digraph& g) {
3116
    SplitNodes(const Digraph& g) {
3115 3117
      Parent::setDigraph(g);
0 comments (0 inline)