Re: [boost] [Pointer Containers] [Indexed Set]

Hi Bruno, ----- Mensaje original ----- De: Bruno Martínez Aguerre <br1@internet.com.uy> Fecha: Viernes, Septiembre 24, 2004 10:44 pm Asunto: [boost] [Pointer Containers] [Indexed Set]
Hi.
I was wondering if these two libs work together. That is, can Indexed Sets take ownership of my pointers?
(First of all, the lib was renamed to Boost.MultiIndex.) Indexed containers are no different to STL containers in this respect: you can control ownership issues with some smart pointer, for instance boost::shared_ptr, so that objects pointed to get deleted along with the container. Apart from this, no special provision has been made to work with pointers. Ownership management aside, I'd say one of the key features of Thorsten's pointer containers is that their interface automatically dereference the pointers held so as to create the illusion that it is the actual elements that are being stored in the container. This feature is not supported by Boost.MultiIndex, and I don't think both libs can be used together to implement this artifact. To get something close to that, you can put a "view" on top of a multi_index_container of pointers and get dereferencing access. There are some view libraries out there.
Also, I couldn't find the docs for neither of the two libs. I looked here http://www.boost.org/regression-logs/cs- win32_metacomm/doc/html/libraries.html for Indexed Set,
The lib was renamed to Boost.MultiIndex, and will ship with Boost 1.32. In the meantime you can consult the docs at www.boost-consulting.com/boost/libs/multi_index
and here http://boost-consulting.com/boost/more/formal_review_schedule.html for Pointer Containers.
This Thorsten already anwered. Joaquín M López Muñoz Telefónica, Investigación y Desarrollo

"JOAQUIN LOPEZ MU?Z" <joaquin@tid.es> wrote in message news:1a83b11a8330.1a83301a83b1@tid.es... Ownership management aside, I'd say one of the key features of Thorsten's pointer containers is that their interface automatically dereference the pointers held so as to create the illusion that it is the actual elements that are being stored in the container. This feature is not supported by Boost.MultiIndex, and I don't think both libs can be used together to implement this artifact. ----------------- It will depend a bit on 1. how you define iterators for your indexes, and (basically, you would need to forward these from the container) 2. if the user can decide what container to use underneith. but I think its going to be difficult. br Thorsten

The Boost library is on my list of things to learn. To start with I grabbed the web into Acrobat so I could read the content offline. Just thought you'd like to know that the following links were not found: http://www.boost.org/regression-logs/cs-win32_metacomm/c++boost.gif http://boost-consulting.com/boost/libs/iterator/example/zip_iterator_example s.cpp http://boost-consulting.com/boost/doc/html/date_time.html http://boost-consulting.com/boost/libs/graph/doc/www.sgi.com/tech/stl/Output Iterator.html http://boost-consulting.com/boost/libs/graph/doc/Boost%20%Graph%20%Library%2 0%Cuthill-Mckee%20%Ordering%20%files/c++boost.gif http://boost-consulting.com/boost/libs/algorithm/minmax/minmax_benchs.html http://boost-consulting.com/boost/libs/utility/function_output_iterator.htm http://boost-consulting.com/boost/libs/python/doc/tutorial/index.html http://boost-consulting.com/boost/libs/python/pyste/bkd.gif http://boost-consulting.com/boost/libs/function/doc/reference.html http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/extending_wra pped_objects_in_python.html http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/reducing_comp iling_time.html http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/creating_pack ages.html http://boost-consulting.com/boost/libs/python/pyste/doc/bkd.gif http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/exposing_clas ses.html http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/building_hell o_world.html http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/call_policies .html http://boost-consulting.com/boost/libs/iterator/doc/new-iter-concept.html http://boost-consulting.com/boost/libs/spirit/bkd.gif http://boost-consulting.com/boost/libs/spirit/doc/bkd.gif http://boost-consulting.com/boost/doc/html/string_algo.html http://boost-consulting.com/boost/libs/thread/doc/index.html http://boost-consulting.com/boost/libs/serialization/test/compiler_status.ht ml http://boost-consulting.com/boost/libs/spirit/phoenix/bkd.gif http://boost-consulting.com/boost/libs/spirit/phoenix/doc/bkd.gif --- Malcolm Smith MJ Freelancing http://www.mjfreelancing.com Borland Technology Partner Contributing Editor C++Builder Developers Journal FREE issue: http://bcbjournal.org/subscriptions.php --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004

"Malcolm Smith" <mjfreelancing@optusnet.com.au> writes:
The Boost library is on my list of things to learn. To start with I grabbed the web into Acrobat so I could read the content offline.
Just thought you'd like to know that the following links were not found:
http://www.boost.org/regression-logs/cs-win32_metacomm/c++boost.gif
http://boost-consulting.com/boost/libs/iterator/example/zip_iterator_example...
Hi Thomas, It's not clear to me that we ever had this zip_iterator example file. Do you still have it, or should we eliminate the link? Thanks, Dave -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

"Malcolm Smith" <mjfreelancing@optusnet.com.au> writes:
The Boost library is on my list of things to learn. To start with I grabbed the web into Acrobat so I could read the content offline.
I hope you realize that by looking at http://boost-consulting.com/boost instead of www.boost.org you're getting the in-development state of the website. <snip>
http://boost-consulting.com/boost/libs/python/doc/tutorial/index.html
Currently Joel is working on the tutorial and it has moved to http://boost-consulting.com/boost/libs/python/doc/tutorial/doc/html/. You can still see the old one at http://www.boost.org/libs/python/doc/tutorial/index.html. HTH, -- Dave Abrahams Boost Consulting http://www.boost-consulting.com

Didn't realize. Just following a link from another email and worked backwards. Anyway, I still think passing on the info is valuable. --- Malcolm Smith MJ Freelancing http://www.mjfreelancing.com Borland Technology Partner Contributing Editor C++Builder Developers Journal FREE issue: http://bcbjournal.org/subscriptions.php -----Original Message----- From: boost-bounces@lists.boost.org [mailto:boost-bounces@lists.boost.org]On Behalf Of David Abrahams Sent: Saturday, 25 September 2004 22:29 To: boost@lists.boost.org Subject: [boost] Re: Missing links "Malcolm Smith" <mjfreelancing@optusnet.com.au> writes:
The Boost library is on my list of things to learn. To start with I grabbed the web into Acrobat so I could read the content offline.
I hope you realize that by looking at http://boost-consulting.com/boost instead of www.boost.org you're getting the in-development state of the website. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.769 / Virus Database: 516 - Release Date: 24/09/2004
participants (5)
-
Aleksey Gurtovoy
-
David Abrahams
-
JOAQUIN LOPEZ MU?Z
-
Malcolm Smith
-
Thorsten Ottosen