TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::internal::FunctionClosure2< Arg1, Arg2 > Class Template Reference

#include <common.h>

Public Types

typedef void(* FunctionType )(Arg1 arg1, Arg2 arg2)
 

Public Member Functions

 FunctionClosure2 (FunctionType function, bool self_deleting, Arg1 arg1, Arg2 arg2)
 
 ~FunctionClosure2 ()
 
void Run ()
 
- Public Member Functions inherited from google::protobuf::Closure
 Closure ()
 
virtual ~Closure ()
 

Private Attributes

FunctionType function_
 
bool self_deleting_
 
Arg1 arg1_
 
Arg2 arg2_
 

Member Typedef Documentation

template<typename Arg1, typename Arg2>
typedef void(* google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::FunctionType)(Arg1 arg1, Arg2 arg2)

Constructor & Destructor Documentation

template<typename Arg1, typename Arg2>
google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::FunctionClosure2 ( FunctionType  function,
bool  self_deleting,
Arg1  arg1,
Arg2  arg2 
)
inline
960  : function_(function), self_deleting_(self_deleting),
961  arg1_(arg1), arg2_(arg2) {}
bool self_deleting_
Definition: common.h:972
Arg1 arg1_
Definition: common.h:973
FunctionType function_
Definition: common.h:971
Arg2 arg2_
Definition: common.h:974
template<typename Arg1, typename Arg2>
google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::~FunctionClosure2 ( )
inline
962 {}

Member Function Documentation

template<typename Arg1, typename Arg2>
void google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::Run ( )
inlinevirtual

Implements google::protobuf::Closure.

964  {
965  bool needs_delete = self_deleting_; // read in case callback deletes
967  if (needs_delete) delete this;
968  }
bool self_deleting_
Definition: common.h:972
Arg1 arg1_
Definition: common.h:973
FunctionType function_
Definition: common.h:971
Arg2 arg2_
Definition: common.h:974

Member Data Documentation

template<typename Arg1, typename Arg2>
Arg1 google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::arg1_
private
template<typename Arg1, typename Arg2>
Arg2 google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::arg2_
private
template<typename Arg1, typename Arg2>
FunctionType google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::function_
private
template<typename Arg1, typename Arg2>
bool google::protobuf::internal::FunctionClosure2< Arg1, Arg2 >::self_deleting_
private

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