Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1313)

Unified Diff: src/core/model/random-variable-stream.h

Issue 342120043: New patch for core module changes (Closed)
Patch Set: Updated core patch Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/core/model/random-variable-stream.h
===================================================================
--- a/src/core/model/random-variable-stream.h
+++ b/src/core/model/random-variable-stream.h
@@ -31,6 +31,10 @@
#include "attribute-helper.h"
#include <stdint.h>
+#include "ns3/ns3-module.h"
+#define NS3_MODULE NS3_CORE_MODULE
+#include "ns3/ns3-export.h"
+
/**
* \file
* \ingroup randomvariable
@@ -94,7 +98,7 @@
* See the documentation for the specific distributions to see
* how this modifies the returned values.
*/
-class RandomVariableStream : public Object
+class NS3_EXPORT RandomVariableStream : public Object
{
public:
/**
@@ -231,7 +235,7 @@
* - Compute the distance from the maximum, \f$y = max - x\f$
* - Return \f$x' = min + y = min + (max - x)\f$:
*/
-class UniformRandomVariable : public RandomVariableStream
+class NS3_EXPORT UniformRandomVariable : public RandomVariableStream
{
public:
/**
@@ -315,7 +319,7 @@
*
* This RNG ignores the antithetic setting.
*/
-class ConstantRandomVariable : public RandomVariableStream
+class NS3_EXPORT ConstantRandomVariable : public RandomVariableStream
{
public:
/**
@@ -396,7 +400,7 @@
*
* This RNG ignores the antithetic setting.
*/
-class SequentialRandomVariable : public RandomVariableStream
+class NS3_EXPORT SequentialRandomVariable : public RandomVariableStream
{
public:
/**
@@ -535,7 +539,7 @@
*
* where again \f$u\f$ is a uniform random variable on \f$[0,1)\f$.
*/
-class ExponentialRandomVariable : public RandomVariableStream
+class NS3_EXPORT ExponentialRandomVariable : public RandomVariableStream
{
public:
/**
@@ -637,7 +641,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class ParetoRandomVariable : public RandomVariableStream
+class NS3_EXPORT ParetoRandomVariable : public RandomVariableStream
{
public:
/**
@@ -861,7 +865,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class WeibullRandomVariable : public RandomVariableStream
+class NS3_EXPORT WeibullRandomVariable : public RandomVariableStream
{
public:
/**
@@ -1047,7 +1051,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class NormalRandomVariable : public RandomVariableStream
+class NS3_EXPORT NormalRandomVariable : public RandomVariableStream
{
public:
/** Large constant to bound the range. */
@@ -1296,7 +1300,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class LogNormalRandomVariable : public RandomVariableStream
+class NS3_EXPORT LogNormalRandomVariable : public RandomVariableStream
{
public:
/**
@@ -1505,7 +1509,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class GammaRandomVariable : public RandomVariableStream
+class NS3_EXPORT GammaRandomVariable : public RandomVariableStream
{
public:
/**
@@ -1682,7 +1686,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class ErlangRandomVariable : public RandomVariableStream
+class NS3_EXPORT ErlangRandomVariable : public RandomVariableStream
{
public:
/**
@@ -1834,7 +1838,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class TriangularRandomVariable : public RandomVariableStream
+class NS3_EXPORT TriangularRandomVariable : public RandomVariableStream
{
public:
/**
@@ -2097,7 +2101,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class ZipfRandomVariable : public RandomVariableStream
+class NS3_EXPORT ZipfRandomVariable : public RandomVariableStream
{
public:
/**
@@ -2237,7 +2241,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class ZetaRandomVariable : public RandomVariableStream
+class NS3_EXPORT ZetaRandomVariable : public RandomVariableStream
{
public:
/**
@@ -2357,7 +2361,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class DeterministicRandomVariable : public RandomVariableStream
+class NS3_EXPORT DeterministicRandomVariable : public RandomVariableStream
{
public:
/**
@@ -2439,7 +2443,7 @@
* double value = x->GetValue ();
* \endcode
*/
-class EmpiricalRandomVariable : public RandomVariableStream
+class NS3_EXPORT EmpiricalRandomVariable : public RandomVariableStream
{
public:
/**
@@ -2489,7 +2493,7 @@
private:
/** Helper to hold one point of the CDF. */
- class ValueCDF
+ class NS3_EXPORT ValueCDF
{
public:
/** Constructor. */

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b