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) 2012 Mathieu Lacage | 3 * Copyright (c) 2012 Mathieu Lacage |
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 RNG_SEED_MANAGER_H | 20 #ifndef RNG_SEED_MANAGER_H |
21 #define RNG_SEED_MANAGER_H | 21 #define RNG_SEED_MANAGER_H |
22 | 22 |
23 #include <stdint.h> | 23 #include <stdint.h> |
24 | 24 |
| 25 #include "ns3/ns3-module.h" |
| 26 #define NS3_MODULE NS3_CORE_MODULE |
| 27 #include "ns3/ns3-export.h" |
| 28 |
25 /** | 29 /** |
26 * \file | 30 * \file |
27 * \ingroup randomvariable | 31 * \ingroup randomvariable |
28 * ns3::RngSeedManager declaration. | 32 * ns3::RngSeedManager declaration. |
29 */ | 33 */ |
30 | 34 |
31 namespace ns3 { | 35 namespace ns3 { |
32 | 36 |
33 /** | 37 /** |
34 * \ingroup randomvariable· | 38 * \ingroup randomvariable· |
35 * | 39 * |
36 * Manage the seed number and run number of the underlying | 40 * Manage the seed number and run number of the underlying |
37 * random number generator, and automatic assignment of stream numbers. | 41 * random number generator, and automatic assignment of stream numbers. |
38 */ | 42 */ |
39 class RngSeedManager | 43 class NS3_EXPORT RngSeedManager |
40 { | 44 { |
41 public: | 45 public: |
42 /** | 46 /** |
43 * \brief Set the seed. | 47 * \brief Set the seed. |
44 * | 48 * |
45 * This sets the global initial seed which will be used all | 49 * This sets the global initial seed which will be used all |
46 * subsequently instantiated RandomVariableStream objects. | 50 * subsequently instantiated RandomVariableStream objects. |
47 * | 51 * |
48 * \code | 52 * \code |
49 * RngSeedManger::SetSeed(15); | 53 * RngSeedManger::SetSeed(15); |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 111 |
108 }; | 112 }; |
109 | 113 |
110 /** Alias for compatibility. */ | 114 /** Alias for compatibility. */ |
111 typedef RngSeedManager SeedManager; | 115 typedef RngSeedManager SeedManager; |
112 | 116 |
113 } // namespace ns3 | 117 } // namespace ns3 |
114 | 118 |
115 | 119 |
116 #endif /* RNG_SEED_MANAGER_H */ | 120 #endif /* RNG_SEED_MANAGER_H */ |
OLD | NEW |