LEFT | RIGHT |
1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ | 1 /* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */ |
2 /* | 2 /* |
3 * Copyright (c) 2015 Lawrence Livermore National Laboratory | 3 * Copyright (c) 2015 Lawrence Livermore National Laboratory |
4 * | 4 * |
5 * This program is free software; you can redistribute it and/or modify | 5 * This program is free software; you can redistribute it and/or modify |
6 * it under the terms of the GNU General Public License version 2 as | 6 * it under the terms of the GNU General Public License version 2 as |
7 * published by the Free Software Foundation; | 7 * published by the Free Software Foundation; |
8 * | 8 * |
9 * This program is distributed in the hope that it will be useful, | 9 * This program is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 212 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 /** | 223 /** |
224 * Sink functions. | 224 * Sink functions. |
225 * @{ | 225 * @{ |
226 */ | 226 */ |
227 template <typename T1, typename T2, typename T3, typename T4, typename T5> | 227 template <typename T1, typename T2, typename T3, typename T4, typename T5> |
228 class TracedCbSink | 228 class TracedCbSink |
229 { | 229 { |
230 public: | 230 public: |
231 static void Sink (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) | 231 static void Sink (T1 a1, T2 a2, T3 a3, T4 a4, T5 a5) |
232 { | 232 { |
233 NS_UNUSED(a1); | |
234 NS_UNUSED(a2); | |
235 NS_UNUSED(a3); | |
236 NS_UNUSED(a4); | |
237 NS_UNUSED(a5); | |
238 SinkIt (5); | 233 SinkIt (5); |
239 } | 234 } |
240 }; | 235 }; |
241 | 236 |
242 template <typename T1, typename T2, typename T3, typename T4> | 237 template <typename T1, typename T2, typename T3, typename T4> |
243 class TracedCbSink<T1, T2, T3, T4, empty> | 238 class TracedCbSink<T1, T2, T3, T4, empty> |
244 { | 239 { |
245 public: | 240 public: |
246 static void Sink (T1 a1, T2 a2, T3 a3, T4 a4) | 241 static void Sink (T1 a1, T2 a2, T3 a3, T4 a4) |
247 { | 242 { |
248 NS_UNUSED(a1); | |
249 NS_UNUSED(a2); | |
250 NS_UNUSED(a3); | |
251 NS_UNUSED(a4); | |
252 SinkIt (4); | 243 SinkIt (4); |
253 } | 244 } |
254 }; | 245 }; |
255 | 246 |
256 template <typename T1, typename T2, typename T3> | 247 template <typename T1, typename T2, typename T3> |
257 class TracedCbSink<T1, T2, T3, empty, empty> | 248 class TracedCbSink<T1, T2, T3, empty, empty> |
258 { | 249 { |
259 public: | 250 public: |
260 static void Sink (T1 a1, T2 a2, T3 a3) | 251 static void Sink (T1 a1, T2 a2, T3 a3) |
261 { | 252 { |
262 NS_UNUSED(a1); | |
263 NS_UNUSED(a2); | |
264 NS_UNUSED(a3); | |
265 SinkIt (3); | 253 SinkIt (3); |
266 } | 254 } |
267 }; | 255 }; |
268 | 256 |
269 template <typename T1, typename T2> | 257 template <typename T1, typename T2> |
270 class TracedCbSink<T1, T2, empty, empty, empty> | 258 class TracedCbSink<T1, T2, empty, empty, empty> |
271 { | 259 { |
272 public: | 260 public: |
273 static void Sink (T1 a1, T2 a2) | 261 static void Sink (T1 a1, T2 a2) |
274 { | 262 { |
275 NS_UNUSED(a1); | |
276 NS_UNUSED(a2); | |
277 SinkIt (2); | 263 SinkIt (2); |
278 } | 264 } |
279 }; | 265 }; |
280 | 266 |
281 template <typename T1> | 267 template <typename T1> |
282 class TracedCbSink< T1, empty, empty, empty, empty> | 268 class TracedCbSink< T1, empty, empty, empty, empty> |
283 { | 269 { |
284 public: | 270 public: |
285 static void Sink (T1 a1) | 271 static void Sink (T1 a1) |
286 { | 272 { |
287 NS_UNUSED(a1); | |
288 SinkIt (1); | 273 SinkIt (1); |
289 } | 274 } |
290 }; | 275 }; |
291 /** @} */ | 276 /** @} */ |
292 | 277 |
293 | 278 |
294 } // unnamed namespace | 279 } // unnamed namespace |
295 | 280 |
296 | 281 |
297 /* | 282 /* |
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
644 | 629 |
645 CHECK (UanMacCw::QueueTracedCallback, | 630 CHECK (UanMacCw::QueueTracedCallback, |
646 Ptr<const Packet>, uint16_t, | 631 Ptr<const Packet>, uint16_t, |
647 empty, empty, empty); | 632 empty, empty, empty); |
648 | 633 |
649 CHECK (UanMacRc::QueueTracedCallback, | 634 CHECK (UanMacRc::QueueTracedCallback, |
650 Ptr<const Packet>, uint32_t, | 635 Ptr<const Packet>, uint32_t, |
651 empty, empty, empty); | 636 empty, empty, empty); |
652 | 637 |
653 CHECK (UanNetDevice::RxTxTracedCallback, | 638 CHECK (UanNetDevice::RxTxTracedCallback, |
654 Ptr<const Packet>, UanAddress, | 639 Ptr<const Packet>, Mac8Address, |
655 empty, empty, empty); | 640 empty, empty, empty); |
656 | 641 |
657 CHECK (UanPhy::TracedCallback, | 642 CHECK (UanPhy::TracedCallback, |
658 Ptr<const Packet>, double, UanTxMode, | 643 Ptr<const Packet>, double, UanTxMode, |
659 empty, empty); | 644 empty, empty); |
660 | 645 |
661 CHECK (UeManager::StateTracedCallback, | 646 CHECK (UeManager::StateTracedCallback, |
662 uint64_t, uint16_t, uint16_t, UeManager::State, UeManager::State); | 647 uint64_t, uint16_t, uint16_t, UeManager::State, UeManager::State); |
663 | 648 |
664 CHECK (WifiMacHeader::TracedCallback, | 649 CHECK (WifiMacHeader::TracedCallback, |
665 const WifiMacHeader &, | 650 const WifiMacHeader &, |
666 empty, empty, empty, empty); | 651 empty, empty, empty, empty); |
667 | 652 |
668 CHECK (WifiPhyStateHelper::RxEndErrorTracedCallback, | 653 CHECK (WifiPhyStateHelper::RxEndErrorTracedCallback, |
669 Ptr<const Packet>, double, | 654 Ptr<const Packet>, double, |
670 empty, empty, empty); | 655 empty, empty, empty); |
671 | 656 |
672 CHECK (WifiPhyStateHelper::RxOkTracedCallback, | 657 CHECK (WifiPhyStateHelper::RxOkTracedCallback, |
673 Ptr<const Packet>, double, WifiMode, WifiPreamble, | 658 Ptr<const Packet>, double, WifiMode, WifiPreamble, |
674 empty); | 659 empty); |
675 | 660 |
676 CHECK (WifiPhyStateHelper::StateTracedCallback, | 661 CHECK (WifiPhyStateHelper::StateTracedCallback, |
677 Time, Time, WifiPhy::State, | 662 Time, Time, WifiPhyState, |
678 empty, empty); | 663 empty, empty); |
679 | 664 |
680 CHECK (WifiPhyStateHelper::TxTracedCallback, | 665 CHECK (WifiPhyStateHelper::TxTracedCallback, |
681 Ptr<const Packet>, WifiMode, WifiPreamble, uint8_t, | 666 Ptr<const Packet>, WifiMode, WifiPreamble, uint8_t, |
682 empty); | 667 empty); |
683 | 668 |
684 CHECK (WifiRemoteStationManager::PowerChangeTracedCallback, | 669 CHECK (WifiRemoteStationManager::PowerChangeTracedCallback, |
685 double, double, Mac48Address, | 670 double, double, Mac48Address, |
686 empty, empty); | 671 empty, empty); |
687 | 672 |
688 CHECK (WifiRemoteStationManager::RateChangeTracedCallback, | 673 CHECK (WifiRemoteStationManager::RateChangeTracedCallback, |
689 DataRate, DataRate, Mac48Address, | 674 DataRate, DataRate, Mac48Address, |
690 empty, empty); | 675 empty, empty); |
691 } | 676 } |
692 | 677 |
693 class TracedCallbackTypedefTestSuite : public TestSuite | 678 class TracedCallbackTypedefTestSuite : public TestSuite |
694 { | 679 { |
695 public: | 680 public: |
696 TracedCallbackTypedefTestSuite (); | 681 TracedCallbackTypedefTestSuite (); |
697 }; | 682 }; |
698 | 683 |
699 TracedCallbackTypedefTestSuite::TracedCallbackTypedefTestSuite () | 684 TracedCallbackTypedefTestSuite::TracedCallbackTypedefTestSuite () |
700 : TestSuite ("traced-callback-typedef", SYSTEM) | 685 : TestSuite ("traced-callback-typedef", SYSTEM) |
701 { | 686 { |
702 AddTestCase (new TracedCallbackTypedefTestCase, TestCase::QUICK); | 687 AddTestCase (new TracedCallbackTypedefTestCase, TestCase::QUICK); |
703 } | 688 } |
704 | 689 |
705 static TracedCallbackTypedefTestSuite tracedCallbackTypedefTestSuite; | 690 static TracedCallbackTypedefTestSuite tracedCallbackTypedefTestSuite; |
LEFT | RIGHT |