So, I am using a boost file of the following type:
typedef boost::adjacency_list<boost::listS, boost::vecS, boost:directedS, VertexT, EdgeT> GraphT
VertexT and EdgeT are both classes for storing many of the properties I need. These are related properties. I'm not sure that some of the ways I want to use bgl are possible, so if you are familiar with them, help would be greatly appreciated.
VertexT and EdgeT are supposedly polymorphic base classes. I understand that bgl is not intended for pointers to these properties. How to work with polymorphic properties of vertex and edge with BGL? I was thinking about using shared pointers, but I would rather manage the memory myself. Additionally, this seems to prevent the problem when using boost :: get to create a location map to speed up layouts.
Right now, I hacked my way around this, just having a tip containing another pointer to a true polymorphic class. But that seems too complicated. Any suggestions?
c ++ generics polymorphism boost boost-graph
David Mokon Bond
source share