Article View: comp.std.c++
Article #2957Re: auto_ptr and deep copy semantics
From: Martin Prange
Date: Wed, 20 Dec 1995 18:36
Date: Wed, 20 Dec 1995 18:36
67 lines
3088 bytes
3088 bytes
Distribution: In article <4ahrti$2i3@oznet03.ozemail.com.au> John Max Skaller <maxtal@suphys.physics.su.oz.au> writes: >From: John Max Skaller <maxtal@suphys.physics.su.oz.au> [deleted...] > I have a SET of reference counting pointer classes under development >for public release (email for beta test): the problem is not so simple. >(Coplien wrote a book on it :-) > > I currently provide or plan [names yet to be fixed!]: > > AutoPtr (NOT copyable!! not actually ref counted) > InvasivePtr (Kanze technique, invasive) > InvasiveBasePtr (Manual copy by cloning) > InvasiveLeafPtr (Manual copy by ctor) > Ptr (Colvin technique, non-invasive) > BasePtr (Manual copy by cloning) > LeafPtr (Manual copy by ctor) > ValueRep (Unconditional copy by ctor) > ObjectRep (Unconditional copy by cloning) > COWValueRep (Copy by ctor on non-const access) > COWObjectRep (Copy by cloning on non-const access) > RefMem (Ref counted raw memory) > >and I suspect <grin> the list is not yet exhausted -- possibly >instrumented and non-instrumented versions make sense >for example. The set may become more compact with >availability of better C++ compilers (that don't >instantiate unused members :-( > >Have I missed any cases (probably!!) Sure you did. There is a set of specialised Links with all of these properties attached ( and more ...) described in the (old, IMHO ) PCTE standard. I'd give you some web sites to browse, but .... have a look at lycos searching for "PCTE" : 2) PCTE directory [0.9019] Abstract: PCTE Up to pub * ECMA_PCTE * ECMA_TGEP * ECMA_TGRM * ISO_PCTE * ls-lR * NAPI * NAPUG * PCTE94 * PCTE_OO+FG * PCTE_papers * PCTE_products * PCTE ftp://omg.org/pub/PCTE (1k) -- Martin Prange / Member of ALMAP Team / ALCATEL +49 30 7002 3120 just alcanet: prange@bln.sel.alcatel.de else @cs.tu-berlin.de If you believe, the opinions expressed here are mine - you got it [Moderator's note: This discussion is beginning to move away from C++ standardization and towards C++ programming. Any responses that deal primarily with types of reference-counted pointer classes and how to write them should probably go to comp.lang.c++.moderated instead of to comp.std.c++. mha] --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<PRANGE.95Dec20144454@slbh08.bln.sel.alcatel.de>Path:
arc1-ca.pugleaf.net!spool.mu.edu!agate!agate!mattReferences:
<01BAC29C.C79C35A0@ts3ap3.NetVision.net.il> <4ahrti$2i3@oznet03.ozemail.com.au>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!spool.mu.edu!agate!agate!matt From: prange@slbh08.bln.sel.alcatel.de (Martin Prange) Newsgroups: comp.std.c++ Subject: Re: auto_ptr and deep copy semantics Date: 20 Dec 1995 18:36:43 GMT Organization: SEL-Alcatel-Berlin Approved: matt@Austern (Matt Austern) Message-ID: <PRANGE.95Dec20144454@slbh08.bln.sel.alcatel.de> References: <01BAC29C.C79C35A0@ts3ap3.NetVision.net.il> <4ahrti$2i3@oznet03.ozemail.com.au> Reply-To: prange@bln.sel.alcatel.de NNTP-Posting-Host: austern.hip.berkeley.edu