Re: [Boost-users] Inheritance

Hi Azam, Are you sure you want to inherit? Might it make sense to make a Boost graph object a private variable which you construct and then modify in your constructor? - James Jones Administrative Data Mgmt. (v)732-510-1806 375 Raritan Center Pkwy, Suite A (f)732-510-1855 Edison, NJ 08837 Visit us on the web at http://www.firstinvestors.com/ --- Original Message --- Date: Tue, 15 Nov 2005 18:53:15 -0800 From: "azam ." <boost80@gmail.com> Subject: [Boost-users] Inheritance To: boost-users@lists.boost.org Message-ID: <825e260c0511151853q4b0d599ek5a0d6d3daa28dec3@mail.gmail.com> Content-Type: text/plain; charset="iso-8859-1" Hi, I want to use Boost Graph Library via inheritance. Actually I want to define a graph which is an adjacency_list graph and is created in a special way. I thought of making it a derived class of adjacency_list and then define constructors to construct objects of this class. But my problem is how to (for example) set vertex properties in the constructor? Regularly if I want to add properties to vertices on a graph g, I use vertices(g) to get iterator of vertices and then I use this iterator, but what can I do in the constructor? I have no such graph object there and I can't use "this" reference too. Any help would be really appreciated. Thanks Azam
participants (1)
-
james.jonesīŧ firstinvestors.com