{{+bindTo:partials.standard_nacl_api}}

pp::ext::ExtCompletionCallbackWithOutput< T > Class Template Reference

{{- dummy div to appease doxygen -}}
Inheritance diagram for pp::ext::ExtCompletionCallbackWithOutput< T >:

List of all members.

Public Types

typedef
::pp::internal::CompletionCallbackWithOutputBase
< T,
internal::ExtCallbackOutputTraits
< T > > 
BaseType

Public Member Functions

 ExtCompletionCallbackWithOutput (typename BaseType::OutputStorageType *output)
 ExtCompletionCallbackWithOutput (PP_CompletionCallback_Func func, void *user_data, typename BaseType::OutputStorageType *output)
 ExtCompletionCallbackWithOutput (PP_CompletionCallback_Func func, void *user_data, int32_t flags, typename BaseType::OutputStorageType *output)

Detailed Description

template<typename T>
class pp::ext::ExtCompletionCallbackWithOutput< T >

ExtCompletionCallbackWithOutput is similar to CompletionCallbackWithOutput, but used by APIs within the pp::ext namespace.

Usually it is used with the CompletionCallbackFactory's NewExtCallbackWithOutput.


Member Typedef Documentation

template<typename T >
typedef ::pp::internal::CompletionCallbackWithOutputBase< T, internal::ExtCallbackOutputTraits<T> > pp::ext::ExtCompletionCallbackWithOutput< T >::BaseType

Constructor & Destructor Documentation

template<typename T >
pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput ( typename BaseType::OutputStorageType output) [inline, explicit]

The default constructor will create a blocking ExtCompletionCallbackWithOutput that references the given output data.

Parameters:
[in]outputA pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback. OutputStorageType is either ext::internal::ArrayVarOutputAdapterWithStorage<U> (if the template parameter T is of the form std::vector<U>) or ext::internal::VarOutputAdapterWithStorage<T> (otherwise).

Note: Blocking completion callbacks are only allowed from background threads.

template<typename T >
pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput ( PP_CompletionCallback_Func  func,
void *  user_data,
typename BaseType::OutputStorageType output 
) [inline]

A constructor for creating an ExtCompletionCallbackWithOutput that references the given output data.

Parameters:
[in]funcThe function to be called on completion.
[in]user_dataThe user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks.
[in]outputA pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback.
template<typename T >
pp::ext::ExtCompletionCallbackWithOutput< T >::ExtCompletionCallbackWithOutput ( PP_CompletionCallback_Func  func,
void *  user_data,
int32_t  flags,
typename BaseType::OutputStorageType output 
) [inline]

A constructor for creating an ExtCompletionCallbackWithOutput that references the given output data.

Parameters:
[in]funcThe function to be called on completion.
[in]user_dataThe user data to be passed to the callback function. This is optional and is typically used to help track state in case of multiple pending callbacks.
[in]flagsBit field combination of PP_CompletionCallback_Flag flags used to control how non-NULL callbacks are scheduled by asynchronous methods.
[in]outputA pointer to the data associated with the callback. The caller must ensure that this pointer outlives the completion callback.

The documentation for this class was generated from the following file:
{{/partials.standard_nacl_api}}