kudu::client::KuduStatusFunctionCallback< T > Class Template Reference

The status callback that invokes a function by pointer with a single argument. More...

#include <callbacks.h>

Inheritance diagram for kudu::client::KuduStatusFunctionCallback< T >:
kudu::client::KuduStatusCallback

List of all members.

Public Types

typedef void(* FunctionType )(T arg, const Status &s)
 A handy typedef for the function with appropriate signature.

Public Member Functions

 KuduStatusFunctionCallback (FunctionType function, T arg)
virtual void Run (const Status &s) OVERRIDE

Detailed Description

template<typename T>
class kudu::client::KuduStatusFunctionCallback< T >

The status callback that invokes a function by pointer with a single argument.


Constructor & Destructor Documentation

template<typename T >
kudu::client::KuduStatusFunctionCallback< T >::KuduStatusFunctionCallback ( FunctionType  function,
arg 
) [inline]

Build an instance of KuduStatusFunctionCallback.

Parameters:
[in] function A pointer to the status report function to invoke with the arg argument.
[in] arg An argument for the function invocation.

Member Function Documentation

template<typename T >
virtual void kudu::client::KuduStatusFunctionCallback< T >::Run ( const Status s  )  [inline, virtual]

Notify/report on the status.

Parameters:
[in] s The status to report.

Implements kudu::client::KuduStatusCallback.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Defines