Storage of C++ Class Hierarchy

From: ik (ik8675_at_gmail.com)
Date: 09/30/04


Date: 30 Sep 2004 02:00:38 -0700

Hello All,
Please point me to the right news group if this is not the right one.

I have to store c++ class hierarchy, in some structure. From that
structure, I need to query for the baseclasses. I get the base class,
derived class information from a text file of the form

[baseclass1,derivedclass1]
[baseclass1,derivedclass2]
[baseclass2,derivedclass3]
[derivedclass3,derivedclass6] .. etc

This list is a plain one, and has multiple classes, I mean there are
different base classes and its associated derived classes. Multiple
inheritence is also allowed. Fortunately, all the class names are
unique.
I tried diffenent implementaions like maintianing two list, one for the
derived class and another for the inherited class and look the
inherited table to get the base class.. and so I create a structure ..
which I see is not efficient at all. Can somebody recommend a better
way to do this ?

Thanks for any suggestions.



Relevant Pages

  • Re: Application.Run() problem
    ... still am very much confused about the paint event handler. ... It most obviously should be the derived class, ... It seems that you're not understanding how inheritance works. ... which ensures that the base class uses the same ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Very Confused on Page 33
    ... On page 33 Bruce is explaining inheritance. ... > base class you can also send to objects of the derived class. ... The programmatic difference enables the subclass ...
    (comp.lang.java.help)
  • Re: attribute or subclass
    ... With inheritance the derived class code ... reference in place of the base class reference. ...
    (comp.object)
  • Re: C# inheritance broken?
    ... class as a derived class, you can do the opposite though. ... Ignacio Machin ... issue of inheriting a base class ... You can't use a base class instance as though it were a derived class ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: C# inheritance broken?
    ... class as a derived class, you can do the opposite though. ... Ignacio Machin ... and providing a method for the base class object to become the object at ... You can't use a base class instance as though it were a derived class ...
    (microsoft.public.dotnet.languages.csharp)