gravatar
kpeter (Peter Kovacs)
kpeter@inf.elte.hu
Make copy constr and op= of the default maps private (ticket #137)
0 8 0
default
8 files changed with 40 insertions and 16 deletions:
↑ Collapse diff ↑
Ignore white space 6 line context
... ...
@@ -105,2 +105,3 @@
105 105

	
106
  private:
106 107
    /// \brief Constructor to copy a map of the same map type.
... ...
@@ -152,2 +153,3 @@
152 153

	
154
  public:
153 155
    /// \brief The destructor of the map.
Ignore white space 6 line context
... ...
@@ -229,2 +229,3 @@
229 229

	
230
    private:
230 231
      NodeMap& operator=(const NodeMap& cmap) {
... ...
@@ -253,2 +254,3 @@
253 254

	
255
    private:
254 256
      ArcMap& operator=(const ArcMap& cmap) {
... ...
@@ -610,2 +612,3 @@
610 612

	
613
    private:
611 614
      NodeMap& operator=(const NodeMap& cmap) {
... ...
@@ -634,2 +637,3 @@
634 637

	
638
    private:
635 639
      ArcMap& operator=(const ArcMap& cmap) {
... ...
@@ -659,2 +663,3 @@
659 663

	
664
    private:
660 665
      EdgeMap& operator=(const EdgeMap& cmap) {
Ignore white space 6 line context
... ...
@@ -64,2 +64,3 @@
64 64

	
65
  private:
65 66
    MapExtender& operator=(const MapExtender& cmap) {
... ...
@@ -74,2 +75,3 @@
74 75

	
76
  public:
75 77
    class MapIt : public Item {
... ...
@@ -202,2 +204,3 @@
202 204

	
205
  private:
203 206
    SubMapExtender& operator=(const SubMapExtender& cmap) {
... ...
@@ -216,2 +219,3 @@
216 219

	
220
  public:
217 221
    class MapIt : public Item {
Ignore white space 6 line context
... ...
@@ -102,2 +102,3 @@
102 102

	
103
  private:
103 104
    /// \brief Copy constructor
Ignore white space 6 line context
... ...
@@ -436,2 +436,3 @@
436 436

	
437
      private:
437 438
        ///Copy constructor
... ...
@@ -458,2 +459,3 @@
458 459
        ArcMap(const Digraph&, T) { }
460
      private:
459 461
        ///Copy constructor
Ignore white space 2 line context
... ...
@@ -514,2 +514,3 @@
514 514

	
515
      private:
515 516
        ///Copy constructor
... ...
@@ -537,2 +538,3 @@
537 538
        ArcMap(const Graph&, T) { }
539
      private:
538 540
        ///Copy constructor
... ...
@@ -560,2 +562,3 @@
560 562
        EdgeMap(const Graph&, T) { }
563
      private:
561 564
        ///Copy constructor
Ignore white space 6 line context
... ...
@@ -1007,2 +1007,4 @@
1007 1007
      GraphMap(const Graph&, const Value&) {}
1008

	
1009
    private:
1008 1010
      /// \brief Copy constructor.
... ...
@@ -1023,2 +1025,3 @@
1023 1025

	
1026
    public:
1024 1027
      template<typename _Map>
... ...
@@ -1032,9 +1035,10 @@
1032 1035
          // Copy constructor.
1033
          _Map b(c);
1036
          // _Map b(c);
1034 1037

	
1035
          ReadMap<Key, Value> cmap;
1036
          b = cmap;
1038
          // ReadMap<Key, Value> cmap;
1039
          // b = cmap;
1037 1040

	
1041
          ignore_unused_variable_warning(a);
1038 1042
          ignore_unused_variable_warning(a2);
1039
          ignore_unused_variable_warning(b);
1043
          // ignore_unused_variable_warning(b);
1040 1044
        }
... ...
@@ -1084,2 +1088,3 @@
1084 1088

	
1089
      private:
1085 1090
        /// \brief Copy constructor.
... ...
@@ -1121,2 +1126,3 @@
1121 1126

	
1127
      private:
1122 1128
        /// \brief Copy constructor.
... ...
@@ -1217,2 +1223,3 @@
1217 1223

	
1224
      private:
1218 1225
        /// \brief Copy constructor.
Ignore white space 6 line context
... ...
@@ -214,6 +214,6 @@
214 214

	
215
    map = constMap<Node>(12);
216
    for (NodeIt it(G); it != INVALID; ++it) {
217
      check(map[it] == 12, "Wrong operator[].");
218
    }
215
    // map = constMap<Node>(12);
216
    // for (NodeIt it(G); it != INVALID; ++it) {
217
    //   check(map[it] == 12, "Wrong operator[].");
218
    // }
219 219
  }
... ...
@@ -244,6 +244,6 @@
244 244

	
245
    map = constMap<Arc>(12);
246
    for (ArcIt it(G); it != INVALID; ++it) {
247
      check(map[it] == 12, "Wrong operator[].");
248
    }
245
    // map = constMap<Arc>(12);
246
    // for (ArcIt it(G); it != INVALID; ++it) {
247
    //   check(map[it] == 12, "Wrong operator[].");
248
    // }
249 249
  }
... ...
@@ -274,6 +274,6 @@
274 274

	
275
    map = constMap<Edge>(12);
276
    for (EdgeIt it(G); it != INVALID; ++it) {
277
      check(map[it] == 12, "Wrong operator[].");
278
    }
275
    // map = constMap<Edge>(12);
276
    // for (EdgeIt it(G); it != INVALID; ++it) {
277
    //   check(map[it] == 12, "Wrong operator[].");
278
    // }
279 279
  }
0 comments (0 inline)