C++ Callback Solution
Edit Page
Report
Scan day: 03 March 2014 UTC
-128
Virus safety - good
Description: A solution to the problem of passing class methods as Callbacks in the C++ language using a template pattern.
.:: C++ Callback Solution - By Arash Partow ::. Variable Argument CallBack Template C++ Templated Callback Solution License Unlike other languages such as Object Pascal, Ada, Java and C#, C++ does not offer a native solution to the issue of passing a class's method as a callback function. In the C language these are known as functors and exist very commonly in many event driven applications. The main problem centers around the fact that multiple instances of a particular class will result in different memory locations for each instantiation. This leads to the need of having not only the method pointer but also a pointer to the instance itself. The problem's definition brings about an intuitive solution which falls within the realms of templates and compile time instantiation and specialization.
Size: 815 chars
Contact Information
Email: —
Phone&Fax: —
Address: —
Extended: —
WEBSITE Info
Page title: | .:: C++ Callback Solution - By Arash Partow ::. |
Keywords: | arash, partow, arash partow, c++, callback, problem, solution, call, back, static, dynamic, template, pattern, template pattern, c, c++ callback, callback c++, call-back, call back, callbacks, call backs |
Description: | A quick yet elegant solution to the problem of passing class methods as Callbacks in the C++ language using a template pattern |
IP-address: | 199.241.217.5 |
WHOIS Info
NS | Name Server: NS1.DAYANADNS.COM Name Server: NS2.DAYANADNS.COM |
WHOIS | Status: clientDeleteProhibited Status: clientRenewProhibited Status: clientTransferProhibited Status: clientUpdateProhibited |
Date | Creation Date: 08-jun-2002 Expiration Date: 08-jun-2019 |