Kudu C++ client API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 >:
kudu::client::KuduStatusCallback

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: