[Ns-bugs] [Bug 147] base class for reference counted objects
bugzilla-daemon@nsnam-www.ece.gatech.edu
bugzilla-daemon at nsnam-www.ece.gatech.edu
Mon Mar 17 07:51:10 PDT 2008
http://www.nsnam.org/bugzilla/show_bug.cgi?id=147
------- Comment #2 from mathieu.lacage at sophia.inria.fr 2008-03-17 10:51 -------
(In reply to comment #0)
> As discussed in November, a base class for providing implementations of
> Ref/Unref for classes that do not derive from ns3::Object.
>
> Written by George, with proposed rename by Tom from "SmartPointer" to
> "RefCountBase".
>
> We need to decide which classes use this base class. Should any of the below
> be specifically excluded from this class?:
> AttributeAccessor
> AttributeChecker
> Packet
> Object
> TraceSourceAccessor
Object should not because the implementation is very different/incompatible.
All the others could but they already derive from the ObjectBase class so doing
what you suggest now would require some multiple inheritance which I would
rather avoid.
Since I plan to remove eventually the ObjectBase class from their inheritance
tree, could we defer using RefCountBase in the classes which derive from
ObjectBase until I have done that removal ?
Other than that, looks good to me.
--
Configure bugmail: http://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Ns-bugs
mailing list