Go to the documentation of this file. 1 #ifndef GOOGLE_PROTOBUF_STUBS_CALLBACK_H_
2 #define GOOGLE_PROTOBUF_STUBS_CALLBACK_H_
8 #include <google/protobuf/port_def.inc>
78 virtual void Run() = 0;
96 template <
typename R,
typename A1>
102 virtual R
Run(A1) = 0;
108 template <
typename R,
typename A1,
typename A2>
114 virtual R
Run(A1,A2) = 0;
124 typedef void (*FunctionType)();
127 : function_(function), self_deleting_(self_deleting) {}
131 bool needs_delete = self_deleting_;
133 if (needs_delete)
delete this;
141 template <
typename Class>
153 if (needs_delete)
delete this;
162 template <
typename Arg1>
176 if (needs_delete)
delete this;
185 template <
typename Class,
typename Arg1>
199 if (needs_delete)
delete this;
209 template <
typename Arg1,
typename Arg2>
215 Arg1 arg1, Arg2 arg2)
223 if (needs_delete)
delete this;
233 template <
typename Class,
typename Arg1,
typename Arg2>
239 Arg1 arg1, Arg2 arg2)
247 if (needs_delete)
delete this;
270 if (needs_delete)
delete this;
279 template<
typename R,
typename P1>
292 if (needs_delete)
delete this;
302 template<
typename R,
typename Arg1>
314 if (needs_delete)
delete this;
323 template<
typename R,
typename P1,
typename A1>
336 if (needs_delete)
delete this;
346 template <
typename T>
352 template<
typename R,
typename T>
365 if (needs_delete)
delete this;
375 template <
typename R,
typename T,
typename P1,
typename P2,
typename P3,
376 typename P4,
typename P5,
typename P6,
typename A1,
typename A2>
381 P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6)
393 R
Run(A1 a1, A2 a2)
override {
396 if (needs_delete)
delete this;
425 template <
typename Class>
431 template <
typename Class>
437 template <
typename Arg1>
444 template <
typename Arg1>
451 template <
typename Class,
typename Arg1>
458 template <
typename Class,
typename Arg1>
465 template <
typename Arg1,
typename Arg2>
467 Arg1 arg1, Arg2 arg2) {
469 function,
true, arg1, arg2);
473 template <
typename Arg1,
typename Arg2>
475 Arg1 arg1, Arg2 arg2) {
477 function,
false, arg1, arg2);
481 template <
typename Class,
typename Arg1,
typename Arg2>
483 Arg1 arg1, Arg2 arg2) {
485 object,
method,
true, arg1, arg2);
489 template <
typename Class,
typename Arg1,
typename Arg2>
491 Class*
object,
void (Class::*
method)(Arg1, Arg2),
492 Arg1 arg1, Arg2 arg2) {
494 object,
method,
false, arg1, arg2);
510 template<
typename R,
typename P1>
517 template<
typename R,
typename P1>
519 R (*
function)(P1), P1 p1) {
521 function,
false, p1);
525 template<
typename R,
typename A1>
531 template<
typename R,
typename A1>
537 template<
typename R,
typename P1,
typename A1>
544 template<
typename R,
typename P1,
typename A1>
546 R (*
function)(P1, A1), P1 p1) {
548 function,
false, p1);
552 template <
typename R,
typename T1,
typename T2>
554 T1*
object, R (T2::*
function)()) {
559 template <
typename R,
typename T,
typename P1,
typename P2,
typename P3,
560 typename P4,
typename P5,
typename P6,
typename A1,
typename A2>
562 T*
object, R (
T::*
function)(P1, P2, P3, P4, P5, P6, A1, A2),
570 A1, A2>(object,
function,
false,
571 p1, p2, p3, p4, p5, p6);
581 #include <google/protobuf/port_undef.inc>
583 #endif // GOOGLE_PROTOBUF_STUBS_CALLBACK_H_
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ResultCallback)
std::remove_reference< P5 >::type p5_
FunctionClosure1(FunctionType function, bool self_deleting, Arg1 arg1)
~FunctionResultCallback_0_0()
void(Class::* MethodType)()
MethodClosure1(Class *object, MethodType method, bool self_deleting, Arg1 arg1)
std::remove_reference< P4 >::type p4_
std::remove_reference< P3 >::type p3_
FunctionResultCallback_0_0(FunctionType function, bool self_deleting)
#define T(upbtypeconst, upbtype, ctype, default_value)
std::remove_reference< T >::type base_type
Closure * NewCallback(void(*function)())
MethodResultCallback_0_0(T *object, MethodType method, bool self_deleting)
FunctionResultCallback_0_1(FunctionType function, bool self_deleting)
void(* FunctionType)(Arg1 arg1, Arg2 arg2)
virtual ~ResultCallback2()
MethodClosure2(Class *object, MethodType method, bool self_deleting, Arg1 arg1, Arg2 arg2)
void(* FunctionType)(Arg1 arg1)
void(Class::* MethodType)(Arg1 arg1, Arg2 arg2)
R(* FunctionType)(Arg1 arg1)
Closure * NewPermanentCallback(void(*function)())
virtual ~ResultCallback()
~MethodResultCallback_6_2()
void(Class::* MethodType)(Arg1 arg1)
R(* FunctionType)(P1, A1)
std::remove_reference< P2 >::type p2_
FunctionResultCallback_1_1(FunctionType function, bool self_deleting, P1 p1)
typedef void(APIENTRY *GLDEBUGPROCARB)(GLenum source
void PROTOBUF_EXPORT DoNothing()
~FunctionResultCallback_1_0()
~MethodResultCallback_0_0()
MethodResultCallback_6_2(T *object, MethodType method, bool self_deleting, P1 p1, P2 p2, P3 p3, P4 p4, P5 p5, P6 p6)
R Run(A1 a1, A2 a2) override
const typedef base_type & type
FunctionResultCallback_1_0(FunctionType function, bool self_deleting, P1 p1)
std::remove_reference< P6 >::type p6_
MethodClosure0(Class *object, MethodType method, bool self_deleting)
R(T::* MethodType)(P1, P2, P3, P4, P5, P6, A1, A2)
FunctionClosure0(FunctionType function, bool self_deleting)
~FunctionResultCallback_0_1()
virtual ~ResultCallback1()
std::remove_reference< P1 >::type p1_
~FunctionResultCallback_1_1()
const Descriptor::ReservedRange const EnumValueDescriptor method
FunctionClosure2(FunctionType function, bool self_deleting, Arg1 arg1, Arg2 arg2)
libaditof
Author(s):
autogenerated on Wed May 21 2025 02:06:48