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) 2008 INRIA | 3 * Copyright (c) 2008 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 |
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
12 * GNU General Public License for more details. | 12 * GNU General Public License for more details. |
13 * | 13 * |
14 * You should have received a copy of the GNU General Public License | 14 * You should have received a copy of the GNU General Public License |
15 * along with this program; if not, write to the Free Software | 15 * along with this program; if not, write to the Free Software |
16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA | 16 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
17 * | 17 * |
18 */ | 18 */ |
19 | 19 |
20 #ifndef MAKE_EVENT_H | 20 #ifndef MAKE_EVENT_H |
21 #define MAKE_EVENT_H | 21 #define MAKE_EVENT_H |
22 | 22 |
| 23 #include "ns3/ns3-module.h" |
| 24 #define NS3_MODULE NS3_CORE_MODULE |
| 25 #include "ns3/ns3-export.h" |
| 26 |
23 /** | 27 /** |
24 * \file | 28 * \file |
25 * \ingroup events | 29 * \ingroup events |
26 * ns3::MakeEvent function declarations and template implementation. | 30 * ns3::MakeEvent function declarations and template implementation. |
27 */ | 31 */ |
28 | 32 |
29 namespace ns3 { | 33 namespace ns3 { |
30 | 34 |
31 class EventImpl; | 35 class EventImpl; |
32 | 36 |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 * | 185 * |
182 * @{ | 186 * @{ |
183 */ | 187 */ |
184 /** | 188 /** |
185 * Make an EventImpl from a function pointer taking varying numbers | 189 * Make an EventImpl from a function pointer taking varying numbers |
186 * of arguments. | 190 * of arguments. |
187 * | 191 * |
188 * \param [in] f The function pointer. | 192 * \param [in] f The function pointer. |
189 * \returns The constructed EventImpl. | 193 * \returns The constructed EventImpl. |
190 */ | 194 */ |
191 EventImpl * MakeEvent (void (*f)(void)); | 195 NS3_EXPORT EventImpl * MakeEvent (void (*f)(void)); |
192 | 196 |
193 /** | 197 /** |
194 * \copybrief MakeEvent(void(*f)(void)) | 198 * \copybrief MakeEvent(void(*f)(void)) |
195 * \tparam U1 \deduced Formal type of the argument to the function. | 199 * \tparam U1 \deduced Formal type of the argument to the function. |
196 * \tparam T1 \deduced Actual type of the argument to the function. | 200 * \tparam T1 \deduced Actual type of the argument to the function. |
197 * \param [in] f The function pointer. | 201 * \param [in] f The function pointer. |
198 * \param [in] a1 Argument to be bound to the function. | 202 * \param [in] a1 Argument to be bound to the function. |
199 * \returns The constructed EventImpl. | 203 * \returns The constructed EventImpl. |
200 */ | 204 */ |
201 template <typename U1, | 205 template <typename U1, |
(...skipping 596 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
798 typename TypeTraits<T4>::ReferencedType m_a4; | 802 typename TypeTraits<T4>::ReferencedType m_a4; |
799 typename TypeTraits<T5>::ReferencedType m_a5; | 803 typename TypeTraits<T5>::ReferencedType m_a5; |
800 typename TypeTraits<T6>::ReferencedType m_a6; | 804 typename TypeTraits<T6>::ReferencedType m_a6; |
801 } *ev = new EventFunctionImpl6 (f, a1, a2, a3, a4, a5, a6); | 805 } *ev = new EventFunctionImpl6 (f, a1, a2, a3, a4, a5, a6); |
802 return ev; | 806 return ev; |
803 } | 807 } |
804 | 808 |
805 } // namespace ns3 | 809 } // namespace ns3 |
806 | 810 |
807 #endif /* MAKE_EVENT_H */ | 811 #endif /* MAKE_EVENT_H */ |
OLD | NEW |