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

#include <common.h>

Public Types

typedef void(Class::* MethodType )(Arg1 arg1)
 

Public Member Functions

 MethodClosure1 (Class *object, MethodType method, bool self_deleting, Arg1 arg1)
 
 ~MethodClosure1 ()
 
void Run ()
 
- Public Member Functions inherited from google::protobuf::Closure
 Closure ()
 
virtual ~Closure ()
 

Private Attributes

Class * object_
 
MethodType method_
 
bool self_deleting_
 
Arg1 arg1_
 

Member Typedef Documentation

template<typename Class, typename Arg1>
typedef void(Class::* google::protobuf::internal::MethodClosure1< Class, Arg1 >::MethodType)(Arg1 arg1)

Constructor & Destructor Documentation

template<typename Class, typename Arg1>
google::protobuf::internal::MethodClosure1< Class, Arg1 >::MethodClosure1 ( Class *  object,
MethodType  method,
bool  self_deleting,
Arg1  arg1 
)
inline
936  : object_(object), method_(method), self_deleting_(self_deleting),
937  arg1_(arg1) {}
MethodType method_
Definition: common.h:948
bool self_deleting_
Definition: common.h:949
Class * object_
Definition: common.h:947
Arg1 arg1_
Definition: common.h:950
template<typename Class, typename Arg1>
google::protobuf::internal::MethodClosure1< Class, Arg1 >::~MethodClosure1 ( )
inline
938 {}

Member Function Documentation

template<typename Class, typename Arg1>
void google::protobuf::internal::MethodClosure1< Class, Arg1 >::Run ( )
inlinevirtual

Implements google::protobuf::Closure.

940  {
941  bool needs_delete = self_deleting_; // read in case callback deletes
942  (object_->*method_)(arg1_);
943  if (needs_delete) delete this;
944  }
MethodType method_
Definition: common.h:948
bool self_deleting_
Definition: common.h:949
Class * object_
Definition: common.h:947
Arg1 arg1_
Definition: common.h:950

Member Data Documentation

template<typename Class, typename Arg1>
Arg1 google::protobuf::internal::MethodClosure1< Class, Arg1 >::arg1_
private
template<typename Class, typename Arg1>
MethodType google::protobuf::internal::MethodClosure1< Class, Arg1 >::method_
private
template<typename Class, typename Arg1>
Class* google::protobuf::internal::MethodClosure1< Class, Arg1 >::object_
private
template<typename Class, typename Arg1>
bool google::protobuf::internal::MethodClosure1< Class, Arg1 >::self_deleting_
private

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