Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > C++ > Getting hold of...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 4 Topic 43097 of 48020
Post > Topic >>

Getting hold of parameters in constructor

by pauldepstein@[EMAIL PROTECTED] Feb 4, 2008 at 09:42 PM

I have a class defined as follows:

class SomeClass
{

public:

	SomeClass( SomeType& SomeThing, AnotherType& SomeThingElse,
        YetAnotherType& YouAintSeenThis);
};

This constructor is the only function in the class definition.  I am
trying to write a class to handle members of SomeClass.  How can I get
hold of the parameters such as SomeThing, SomeThingElse and
YetAnotherType without changing SomeClass?

In other words, suppose x is a member of SomeClass.  What is the c++
for "the variable SomeThing (of type SomeType)  that was used in the
construction of x"     ?

Thank you for your help.

Paul Epstein
 




 4 Posts in Topic:
Getting hold of parameters in constructor
pauldepstein@[EMAIL PROTE  2008-02-04 21:42:25 
Re: Getting hold of parameters in constructor
Ian Collins <ian-news@  2008-02-05 18:44:41 
Re: Getting hold of parameters in constructor
Salt_Peter <pj_hern@[E  2008-02-04 23:25:38 
Re: Getting hold of parameters in constructor
"AnonMail2005@[EMAIL  2008-02-05 07:41:40 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:46:01 CDT 2008.