Instance tracing problem.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rag84dec
    New Member
    • Mar 2007
    • 100

    #1

    Instance tracing problem.

    i have TestMain class which is inheriting from TestCommon and XYZ...
    like this...
    Code:
                           TestCommon   XYZ
                               ^         ^
                               |         |
                             ---------------
                                    |
                                    |
                                 TestMain
    
    TestCommon has a datamamber 
    class
    {
    
              protected:
                 TestOptionCommon options;
              public:
    	     TestOptionCommon optionsPublic;
    };
    TestMain has a function start();
    TestOptionCommo n has a vector oftype vector<TestOpti ons*> and TestOptions is the inner class of the TestOptionCommo n...Like this
    Code:
    class TestOptionCommon
    {
       class TestOptions 
           {
           };
           typedef vector<TestOptions*> optionlist;
           protected:
           oprionlist optionlistvector;
    };
    TestOptionCommo n has some functions AddOptions()
    where it is updating the "vector optionlistvecto r"...
    my question is....
    How to use the optionlistvecto r???....its values???....us ing the following information....
    If you want any please let me know....I think i need to learn about instances....
  • weaknessforcats
    Recognized Expert Expert
    • Mar 2007
    • 9214

    #2
    TestOptionCommo n::optionlistve ctor is a private member of TestOptionCommo n.

    You can access it using any TestOptionCommo n member function.

    Comment

    Working...