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

#include <common.h>

Public Types

typedef void(* FunctionType )()
 

Public Member Functions

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

Private Attributes

FunctionType function_
 
bool self_deleting_
 

Member Typedef Documentation

typedef void(* google::protobuf::internal::FunctionClosure0::FunctionType)()

Constructor & Destructor Documentation

google::protobuf::internal::FunctionClosure0::FunctionClosure0 ( FunctionType  function,
bool  self_deleting 
)
inline
871  : function_(function), self_deleting_(self_deleting) {}
FunctionType function_
Definition: common.h:881
bool self_deleting_
Definition: common.h:882
google::protobuf::internal::FunctionClosure0::~FunctionClosure0 ( )

Member Function Documentation

void google::protobuf::internal::FunctionClosure0::Run ( )
inlinevirtual

Implements google::protobuf::Closure.

874  {
875  bool needs_delete = self_deleting_; // read in case callback deletes
876  function_();
877  if (needs_delete) delete this;
878  }
FunctionType function_
Definition: common.h:881
bool self_deleting_
Definition: common.h:882

Member Data Documentation

FunctionType google::protobuf::internal::FunctionClosure0::function_
private
bool google::protobuf::internal::FunctionClosure0::self_deleting_
private

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