src/core/param-spec-helper.h
changeset 2380 64dbfb5cf589
parent 2375 6f8733409b3b
child 2393 025986c8b400
--- 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 */