Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » What is the purpose of "typedef MyClass CLASSNAME"?
What is the purpose of "typedef MyClass CLASSNAME"? [message #19880] Thu, 29 January 2009 17:57 Go to next message
White_Owl is currently offline  White_Owl
Messages: 27
Registered: January 2009
Location: New York
Promising Member
Why TheIDE template creates this typedef in the new classes? What is its purpose?
Re: What is the purpose of "typedef MyClass CLASSNAME"? [message #19881 is a reply to message #19880] Thu, 29 January 2009 18:42 Go to previous messageGo to next message
andrei_natanael is currently offline  andrei_natanael
Messages: 262
Registered: January 2009
Experienced Member
It is useful when you use callbacks, it allow you to write something like THISBACK(Fun) instead of callback(this, &MyClass::Fun). So, it's a shortcut when your callback functions are part of your class. See <Core/Callback.h> for details.
Re: What is the purpose of "typedef MyClass CLASSNAME"? [message #19883 is a reply to message #19880] Thu, 29 January 2009 18:52 Go to previous message
White_Owl is currently offline  White_Owl
Messages: 27
Registered: January 2009
Location: New York
Promising Member
Oh! I see it now, thanks.
Previous Topic: Prompt* and file names
Next Topic: why not state oriented?
Goto Forum:
  


Current Time: Thu Apr 25 21:42:03 CEST 2024

Total time taken to generate the page: 0.04074 seconds