--- a/src/core/param-spec-helper.h Mon Feb 04 22:47:26 2008 +0100
+++ b/src/core/param-spec-helper.h Mon Feb 04 22:48:26 2008 +0100
@@ -31,7 +31,8 @@
virtual bool Set (ObjectBase * object, PValue value) const;
virtual bool Get (const ObjectBase * object, PValue value) const;
virtual bool Check (PValue value) const;
- virtual PValue CreateInitialValue (void) const;
+ virtual PValue GetInitialValue (void) const;
+ virtual PValue CreateValue (void) const;
private:
virtual void DoSet (T *object, const U *v) const = 0;
@@ -244,11 +245,18 @@
}
template <typename T, typename U, typename CHECKER>
PValue
-ParamSpecHelper<T,U,CHECKER>::CreateInitialValue (void) const
+ParamSpecHelper<T,U,CHECKER>::GetInitialValue (void) const
{
return m_initialValue;
}
+template <typename T, typename U, typename CHECKER>
+PValue
+ParamSpecHelper<T,U,CHECKER>::CreateValue (void) const
+{
+ return m_initialValue.Copy ();
+}
+
} // namespace ns3
#endif /* PARAM_SPEC_HELPER_H */