Connecting Tech Pros Worldwide Forums | Help | Site Map

Instance tracing problem.

Member
 
Join Date: Mar 2007
Posts: 100
#1: Jul 18 '07
i have TestMain class which is inheriting from TestCommon and XYZ...
like this...
Expand|Select|Wrap|Line Numbers
  1.  
  2.                        TestCommon   XYZ
  3.                            ^         ^
  4.                            |         |
  5.                          ---------------
  6.                                 |
  7.                                 |
  8.                              TestMain
  9.  
  10. TestCommon has a datamamber 
  11. class
  12. {
  13.  
  14.           protected:
  15.              TestOptionCommon options;
  16.           public:
  17.          TestOptionCommon optionsPublic;
  18. };
  19. TestMain has a function start();
  20.  
  21.  
  22.  
TestOptionCommon has a vector oftype vector<TestOptions*> and TestOptions is the inner class of the TestOptionCommon...Like this
Expand|Select|Wrap|Line Numbers
  1. class TestOptionCommon
  2. {
  3.    class TestOptions 
  4.        {
  5.        };
  6.        typedef vector<TestOptions*> optionlist;
  7.        protected:
  8.        oprionlist optionlistvector;
  9. };
  10.  
TestOptionCommon has some functions AddOptions()
where it is updating the "vector optionlistvector"...
my question is....
How to use the optionlistvector???....its values???....using the following information....
If you want any please let me know....I think i need to learn about instances....

Moderator
 
Join Date: Mar 2007
Location: North Bend Washington USA
Posts: 5,366
#2: Jul 18 '07

re: Instance tracing problem.


TestOptionCommon::optionlistvector is a private member of TestOptionCommon.

You can access it using any TestOptionCommon member function.
Reply