Ticket #6368: clear_queue.patch
File clear_queue.patch, 7.1 KB (added by , 11 years ago) |
---|
-
boost/spirit/home/support/iterators/detail/combine_policies.hpp
41 41 Input::destroy(mp); 42 42 Storage::destroy(mp); 43 43 } 44 44 45 void swap(multi_pass_unique& x) 45 46 { 46 47 this->Ownership::swap(x); … … 48 49 this->Input::swap(x); 49 50 this->Storage::swap(x); 50 51 } 52 53 template <typename MultiPass> 54 inline static void clear_queue(MultiPass& mp) 55 { 56 Checking::clear_queue(mp); 57 Storage::clear_queue(mp); 58 } 51 59 }; 52 60 #else 53 61 /////////////////////////////////////////////////////////////////////////// … … 78 86 Input::destroy(mp); 79 87 Storage::destroy(mp); 80 88 } 89 81 90 void swap(multi_pass_unique& x) 82 91 { 83 92 this->Ownership::swap(x); … … 85 94 this->Input::swap(x); 86 95 this->Storage::swap(x); 87 96 } 97 98 template <typename MultiPass> 99 inline static void clear_queue(MultiPass& mp) 100 { 101 Checking::clear_queue(mp); 102 Storage::clear_queue(mp); 103 } 88 104 }; 89 105 90 106 /////////////////////////////////////////////////////////////////////////// … … 105 121 Input::destroy(mp); 106 122 Storage::destroy(mp); 107 123 } 124 108 125 void swap(multi_pass_unique& x) 109 126 { 110 127 this->Ownership::swap(x); … … 112 129 this->Storage::swap(x); 113 130 } 114 131 132 template <typename MultiPass> 133 inline static void clear_queue(MultiPass& mp) 134 { 135 Checking::clear_queue(mp); 136 Storage::clear_queue(mp); 137 } 138 115 139 // implement input policy functions by forwarding to the Input type 116 140 template <typename MultiPass> 117 141 inline static void advance_input(MultiPass& mp) … … 148 172 Input::destroy(mp); 149 173 Storage::destroy(mp); 150 174 } 175 151 176 void swap(multi_pass_unique& x) 152 177 { 153 178 this->Ownership::swap(x); … … 155 180 this->Storage::swap(x); 156 181 } 157 182 183 template <typename MultiPass> 184 inline static void clear_queue(MultiPass& mp) 185 { 186 Checking::clear_queue(mp); 187 Storage::clear_queue(mp); 188 } 189 158 190 // checking policy functions are forwarded to the Checking type 159 191 template <typename MultiPass> 160 192 inline static void docheck(MultiPass const& mp) 161 193 { Checking::docheck(mp); } 162 163 template <typename MultiPass>164 inline static void clear_queue(MultiPass& mp)165 { Checking::clear_queue(mp); }166 194 }; 167 195 168 196 /////////////////////////////////////////////////////////////////////////// … … 182 210 Input::destroy(mp); 183 211 Storage::destroy(mp); 184 212 } 213 185 214 void swap(multi_pass_unique& x) 186 215 { 187 216 this->Ownership::swap(x); 188 217 this->Storage::swap(x); 189 218 } 190 219 220 template <typename MultiPass> 221 inline static void clear_queue(MultiPass& mp) 222 { 223 Checking::clear_queue(mp); 224 Storage::clear_queue(mp); 225 } 226 191 227 // implement input policy functions by forwarding to the Input type 192 228 template <typename MultiPass> 193 229 inline static void advance_input(MultiPass& mp) … … 209 245 template <typename MultiPass> 210 246 inline static void docheck(MultiPass const& mp) 211 247 { Checking::docheck(mp); } 212 213 template <typename MultiPass>214 inline static void clear_queue(MultiPass& mp)215 { Checking::clear_queue(mp); }216 248 }; 217 249 218 250 /////////////////////////////////////////////////////////////////////////// … … 233 265 Input::destroy(mp); 234 266 Storage::destroy(mp); 235 267 } 268 236 269 void swap(multi_pass_unique& x) 237 270 { 238 271 this->Checking::swap(x); … … 240 273 this->Storage::swap(x); 241 274 } 242 275 276 template <typename MultiPass> 277 inline static void clear_queue(MultiPass& mp) 278 { 279 Checking::clear_queue(mp); 280 Storage::clear_queue(mp); 281 } 282 243 283 // ownership policy functions are forwarded to the Ownership type 244 284 template <typename MultiPass> 245 285 inline static void clone(MultiPass& mp) … … 271 311 Input::destroy(mp); 272 312 Storage::destroy(mp); 273 313 } 314 274 315 void swap(multi_pass_unique& x) 275 316 { 276 317 this->Checking::swap(x); 277 318 this->Storage::swap(x); 278 319 } 279 320 321 template <typename MultiPass> 322 inline static void clear_queue(MultiPass& mp) 323 { 324 Checking::clear_queue(mp); 325 Storage::clear_queue(mp); 326 } 327 280 328 // implement input policy functions by forwarding to the Input type 281 329 template <typename MultiPass> 282 330 inline static void advance_input(MultiPass& mp) … … 325 373 Input::destroy(mp); 326 374 Storage::destroy(mp); 327 375 } 376 328 377 void swap(multi_pass_unique& x) 329 378 { 330 379 this->Input::swap(x); 331 380 this->Storage::swap(x); 332 381 } 333 382 383 template <typename MultiPass> 384 inline static void clear_queue(MultiPass& mp) 385 { 386 Checking::clear_queue(mp); 387 Storage::clear_queue(mp); 388 } 389 334 390 // checking policy functions are forwarded to the Checking type 335 391 template <typename MultiPass> 336 392 inline static void docheck(MultiPass const& mp) 337 393 { Checking::docheck(mp); } 338 394 339 template <typename MultiPass>340 inline static void clear_queue(MultiPass& mp)341 { Checking::clear_queue(mp); }342 343 395 // ownership policy functions are forwarded to the Ownership type 344 396 template <typename MultiPass> 345 397 inline static void clone(MultiPass& mp) … … 370 422 Input::destroy(mp); 371 423 Storage::destroy(mp); 372 424 } 425 373 426 void swap(multi_pass_unique& x) 374 427 { 375 428 this->Storage::swap(x); 376 429 } 377 430 431 template <typename MultiPass> 432 inline static void clear_queue(MultiPass& mp) 433 { 434 Checking::clear_queue(mp); 435 Storage::clear_queue(mp); 436 } 437 378 438 // implement input policy functions by forwarding to the Input type 379 439 template <typename MultiPass> 380 440 inline static void advance_input(MultiPass& mp) … … 397 457 inline static void docheck(MultiPass const& mp) 398 458 { Checking::docheck(mp); } 399 459 400 template <typename MultiPass>401 inline static void clear_queue(MultiPass& mp)402 { Checking::clear_queue(mp); }403 404 460 // ownership policy functions are forwarded to the Ownership type 405 461 template <typename MultiPass> 406 462 inline static void clone(MultiPass& mp)