OLD | NEW |
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) 2006 INRIA | 3 * Copyright (c) 2006 INRIA |
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 17 matching lines...) Expand all Loading... |
28 #include "tag.h" | 28 #include "tag.h" |
29 #include "ns3/fatal-error.h" | 29 #include "ns3/fatal-error.h" |
30 #include "ns3/log.h" | 30 #include "ns3/log.h" |
31 #include <string.h> | 31 #include <string.h> |
32 | 32 |
33 NS_LOG_COMPONENT_DEFINE ("PacketTagList"); | 33 NS_LOG_COMPONENT_DEFINE ("PacketTagList"); |
34 | 34 |
35 namespace ns3 { | 35 namespace ns3 { |
36 | 36 |
37 bool | 37 bool |
38 PacketTagList::COWTraverse (Tag & tag, PacketTagList::COWWriter_fp Writer) | 38 PacketTagList::COWTraverse (Tag & tag, PacketTagList::COWWriter Writer) |
39 { | 39 { |
40 TypeId tid = tag.GetInstanceTypeId (); | 40 TypeId tid = tag.GetInstanceTypeId (); |
41 NS_LOG_FUNCTION (this << tid); | 41 NS_LOG_FUNCTION (this << tid); |
42 NS_LOG_INFO ("looking for " << tid); | 42 NS_LOG_INFO ("looking for " << tid); |
43 | 43 |
44 // trivial case when list is empty | 44 // trivial case when list is empty |
45 if (m_next == 0) | 45 if (m_next == 0) |
46 { | 46 { |
47 return false; | 47 return false; |
48 } | 48 } |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
280 } | 280 } |
281 | 281 |
282 const struct PacketTagList::TagData * | 282 const struct PacketTagList::TagData * |
283 PacketTagList::Head (void) const | 283 PacketTagList::Head (void) const |
284 { | 284 { |
285 return m_next; | 285 return m_next; |
286 } | 286 } |
287 | 287 |
288 } // namespace ns3 | 288 } // namespace ns3 |
289 | 289 |
OLD | NEW |