[C++-sig] splitting it into multiple pieces

Stefan Seefeld seefeld at sympatico.ca
Wed Oct 23 01:22:42 CEST 2002


greg Landrum wrote:

> The problem is that I've got a bunch of interconnected objects:
> Molecules are made up of Atoms and Bonds (and have GetAtom/Bond methods)
> Atoms and Bonds each contain a pointer back to their parent Molecule 
> (and have GetParent methods)

Right, but these methods are in the C++ domain, where obviously
dependencies are not an issue. The wrapper objects you create with
boost.python don't care. Even inheritance seems to be resolved dynamically,
i.e. at runtime.
I'v just done a similar thing and it works wonderfully.

Regards,
		Stefan





More information about the Cplusplus-sig mailing list