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

#include <common.h>

Public Types

typedef void(Class::* MethodType )()
 

Public Member Functions

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

Private Attributes

Class * object_
 
MethodType method_
 
bool self_deleting_
 

Member Typedef Documentation

template<typename Class>
typedef void(Class::* google::protobuf::internal::MethodClosure0< Class >::MethodType)()

Constructor & Destructor Documentation

template<typename Class>
google::protobuf::internal::MethodClosure0< Class >::MethodClosure0 ( Class *  object,
MethodType  method,
bool  self_deleting 
)
inline
891  : object_(object), method_(method), self_deleting_(self_deleting) {}
Class * object_
Definition: common.h:901
MethodType method_
Definition: common.h:902
bool self_deleting_
Definition: common.h:903
template<typename Class>
google::protobuf::internal::MethodClosure0< Class >::~MethodClosure0 ( )
inline
892 {}

Member Function Documentation

template<typename Class>
void google::protobuf::internal::MethodClosure0< Class >::Run ( )
inlinevirtual

Implements google::protobuf::Closure.

894  {
895  bool needs_delete = self_deleting_; // read in case callback deletes
896  (object_->*method_)();
897  if (needs_delete) delete this;
898  }
Class * object_
Definition: common.h:901
MethodType method_
Definition: common.h:902
bool self_deleting_
Definition: common.h:903

Member Data Documentation

template<typename Class>
MethodType google::protobuf::internal::MethodClosure0< Class >::method_
private
template<typename Class>
Class* google::protobuf::internal::MethodClosure0< Class >::object_
private
template<typename Class>
bool google::protobuf::internal::MethodClosure0< Class >::self_deleting_
private

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