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

#include <common.h>

Public Types

typedef void(* FunctionType )(Arg1 arg1)
 

Public Member Functions

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

Private Attributes

FunctionType function_
 
bool self_deleting_
 
Arg1 arg1_
 

Member Typedef Documentation

template<typename Arg1>
typedef void(* google::protobuf::internal::FunctionClosure1< Arg1 >::FunctionType)(Arg1 arg1)

Constructor & Destructor Documentation

template<typename Arg1>
google::protobuf::internal::FunctionClosure1< Arg1 >::FunctionClosure1 ( FunctionType  function,
bool  self_deleting,
Arg1  arg1 
)
inline
913  : function_(function), self_deleting_(self_deleting),
914  arg1_(arg1) {}
bool self_deleting_
Definition: common.h:925
FunctionType function_
Definition: common.h:924
Arg1 arg1_
Definition: common.h:926
template<typename Arg1>
google::protobuf::internal::FunctionClosure1< Arg1 >::~FunctionClosure1 ( )
inline
915 {}

Member Function Documentation

template<typename Arg1>
void google::protobuf::internal::FunctionClosure1< Arg1 >::Run ( )
inlinevirtual

Implements google::protobuf::Closure.

917  {
918  bool needs_delete = self_deleting_; // read in case callback deletes
919  function_(arg1_);
920  if (needs_delete) delete this;
921  }
bool self_deleting_
Definition: common.h:925
FunctionType function_
Definition: common.h:924
Arg1 arg1_
Definition: common.h:926

Member Data Documentation

template<typename Arg1>
Arg1 google::protobuf::internal::FunctionClosure1< Arg1 >::arg1_
private
template<typename Arg1>
FunctionType google::protobuf::internal::FunctionClosure1< Arg1 >::function_
private
template<typename Arg1>
bool google::protobuf::internal::FunctionClosure1< Arg1 >::self_deleting_
private

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