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++ > Don't understan...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 7 Topic 44232 of 47561
Post > Topic >>

Don't understand odd looking typedef

by Angus <anguscomber@[EMAIL PROTECTED] > Mar 31, 2008 at 02:42 AM

I have this typedef:

typedef CInterface::IFStatus (CInterface::*Action)();


It is used in a state machine function to call a pertinent function

It is used like this:

static const Action actiontable [] =

Which is an array of the functions to call (in particular states.

I am having trouble working out what the typedef is doing?  Eg to use
without the typedef what would I substitute for Action?

Can someone explain what is going on here please.
 




 7 Posts in Topic:
Don't understand odd looking typedef
Angus <anguscomber@[EM  2008-03-31 02:42:25 
Re: Don't understand odd looking typedef
"Victor Bazarov"  2008-03-31 08:00:04 
Re: Don't understand odd looking typedef
matish <matish@[EMAIL   2008-04-01 00:15:58 
Re: Don't understand odd looking typedef
Andrey Tarasevich <and  2008-03-31 15:34:43 
Re: Don't understand odd looking typedef
Juha Nieminen <nospam@  2008-03-31 16:44:24 
Re: Don't understand odd looking typedef
Andre Kostur <nntpspam  2008-03-31 15:41:06 
Re: Don't understand odd looking typedef
Andrey Tarasevich <and  2008-03-31 10:18:33 

Post A Reply:
  Go here to Signup

AddThis Feed Button


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

Contact
tan12V112 Sun Sep 7 3:44:58 CDT 2008.