get rid of Attribute class. Use AttributeValue subclasses directly.
This commit is contained in:
1 parent
db81db32a8
commit
4ff40c4a07
132 files changed
+1345
-1628
No files matched your search
@@ -299,20 +299,6 @@ RandomVariable::Peek (void) const
|
||||
{
|
||||
return m_variable;
|
||||
}
|
||||
RandomVariable::RandomVariable (Attribute value)
|
||||
: m_variable (0)
|
||||
{
|
||||
const RandomVariableValue *v = value.DynCast<const RandomVariableValue *> ();
|
||||
if (v == 0)
|
||||
{
|
||||
NS_FATAL_ERROR ("Unexpected type of value. Expected \"RandomVariableValue\"");
|
||||
}
|
||||
*this = v->Get ();
|
||||
}
|
||||
RandomVariable::operator Attribute () const
|
||||
{
|
||||
return Attribute (ns3::Create<RandomVariableValue> (*this));
|
||||
}
|
||||
|
||||
ATTRIBUTE_VALUE_IMPLEMENT (RandomVariable);
|
||||
ATTRIBUTE_CHECKER_IMPLEMENT (RandomVariable);
|
||||
@@ -1267,7 +1253,7 @@ EmpiricalVariable::CDF(double v, double c)
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
//-----------------------------------------------------------------------------
|
||||
// Integer EmpiricalVariableImpl methods
|
||||
// IntegerValue EmpiricalVariableImpl methods
|
||||
class IntEmpiricalVariableImpl : public EmpiricalVariableImpl {
|
||||
public:
|
||||
|
||||
|
||||
Reference in new issue
Block a user