VCF::ResultsCache< ReturnType > Class Template Reference
A class that is uses to cache the results of callbacks that return values.
More...
#include <vcf/FoundationKit/Delegates.h>
List of all members.
Detailed Description
template<typename ReturnType>
class VCF::ResultsCache< ReturnType >
A class that is uses to cache the results of callbacks that return values.
The ResultsCache may be used with delegates that have been fired asynchronously.
Member Typedef Documentation
Constructor & Destructor Documentation
Member Function Documentation
|
|
this is called by the various implementations of callbacks that return a value when a function is finished.
The AsyncResult passed in is used as a key to make sure that the results list that the result is added to is the correct one. |
|
|
Get's the last result for a given AsyncResult instance.
This is called to get the last result in a collection of possible results, for a given AsyncResult. If you had a delegate that return a value with three callbacks associated with it, then the result list would have 3 possible values in it, stored in the order the callbacks were invoked. This function would return the last result put into the list. |
|
|
Gets an instance of the result collection for an AsyncResult instance.
This may be NULL if there are no results. This will return all the results for the delegate that was invoked asynchronously. |
Member Data Documentation
The documentation for this class was generated from the following file: