Kudu C++ client API
Public Types | Public Member Functions | List of all members
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 >:
Inheritance graph
[legend]
Collaboration diagram for kudu::client::KuduStatusFunctionCallback< T >:
Collaboration graph
[legend]

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]functionA pointer to the status report function to invoke with the arg argument.
[in]argAn argument for the function invocation.

Member Function Documentation

template<typename T >
virtual void kudu::client::KuduStatusFunctionCallback< T >::Run ( const Status s)
inlinevirtual

Notify/report on the status.

Parameters
[in]sThe status to report.

Implements kudu::client::KuduStatusCallback.


The documentation for this class was generated from the following file: