LoRa node acquiring random float value and sending to LoRa Server - Working ok

Fork of SX1276GenericLib by Helmut Tschemernjak

Embed: (wiki syntax)

« Back to documentation index

Callback< R(A0, A1, A2, A3, A4)> Class Template Reference

Callback< R(A0, A1, A2, A3, A4)> Class Template Reference
[Platform]

Callback class based on template specialization. More...

#include <Callback-A.h>

Public Member Functions

 Callback (R(*func)(A0, A1, A2, A3, A4)=0)
 Create a Callback with a static function.
 Callback (const Callback< R(A0, A1, A2, A3, A4)> &func)
 Attach a Callback.
template<typename T , typename U >
 Callback (U *obj, R(T::*method)(A0, A1, A2, A3, A4))
 Create a Callback with a member function.
template<typename T , typename U >
 Callback (const U *obj, R(T::*method)(A0, A1, A2, A3, A4) const)
 Create a Callback with a member function.
template<typename T , typename U >
 Callback (volatile U *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile)
 Create a Callback with a member function.
template<typename T , typename U >
 Callback (const volatile U *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile)
 Create a Callback with a member function.
template<typename T , typename U >
 Callback (R(*func)(T *, A0, A1, A2, A3, A4), U *arg)
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (R(*func)(const T *, A0, A1, A2, A3, A4), const U *arg)
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (R(*func)(volatile T *, A0, A1, A2, A3, A4), volatile U *arg)
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (R(*func)(const volatile T *, A0, A1, A2, A3, A4), const volatile U *arg)
 Create a Callback with a static function and bound pointer.
template<typename F >
 Callback (F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4)))
 Create a Callback with a function object.
template<typename F >
 Callback (const F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const))
 Create a Callback with a function object.
template<typename F >
 Callback (volatile F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) volatile))
 Create a Callback with a function object.
template<typename F >
 Callback (const volatile F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const volatile))
 Create a Callback with a function object.
template<typename T , typename U >
 Callback (U *obj, R(*func)(T *, A0, A1, A2, A3, A4))
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (const U *obj, R(*func)(const T *, A0, A1, A2, A3, A4))
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (volatile U *obj, R(*func)(volatile T *, A0, A1, A2, A3, A4))
 Create a Callback with a static function and bound pointer.
template<typename T , typename U >
 Callback (const volatile U *obj, R(*func)(const volatile T *, A0, A1, A2, A3, A4))
 Create a Callback with a static function and bound pointer.
 ~Callback ()
 Destroy a callback.
void attach (R(*func)(A0, A1, A2, A3, A4))
 Attach a static function.
void attach (const Callback< R(A0, A1, A2, A3, A4)> &func)
 Attach a Callback.
template<typename T , typename U >
void attach (U *obj, R(T::*method)(A0, A1, A2, A3, A4))
 Attach a member function.
template<typename T , typename U >
void attach (const U *obj, R(T::*method)(A0, A1, A2, A3, A4) const)
 Attach a member function.
template<typename T , typename U >
void attach (volatile U *obj, R(T::*method)(A0, A1, A2, A3, A4) volatile)
 Attach a member function.
template<typename T , typename U >
void attach (const volatile U *obj, R(T::*method)(A0, A1, A2, A3, A4) const volatile)
 Attach a member function.
template<typename T , typename U >
void attach (R(*func)(T *, A0, A1, A2, A3, A4), U *arg)
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (R(*func)(const T *, A0, A1, A2, A3, A4), const U *arg)
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (R(*func)(volatile T *, A0, A1, A2, A3, A4), volatile U *arg)
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (R(*func)(const volatile T *, A0, A1, A2, A3, A4), const volatile U *arg)
 Attach a static function with a bound pointer.
template<typename F >
void attach (F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4)))
 Attach a function object.
template<typename F >
void attach (const F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const))
 Attach a function object.
template<typename F >
void attach (volatile F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) volatile))
 Attach a function object.
template<typename F >
void attach (const volatile F f, MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const volatile))
 Attach a function object.
template<typename T , typename U >
void attach (U *obj, R(*func)(T *, A0, A1, A2, A3, A4))
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (const U *obj, R(*func)(const T *, A0, A1, A2, A3, A4))
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (volatile U *obj, R(*func)(volatile T *, A0, A1, A2, A3, A4))
 Attach a static function with a bound pointer.
template<typename T , typename U >
void attach (const volatile U *obj, R(*func)(const volatile T *, A0, A1, A2, A3, A4))
 Attach a static function with a bound pointer.
Callback & operator= (const Callback &that)
 Assign a callback.
call (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const
 Call the attached function.
operator() (A0 a0, A1 a1, A2 a2, A3 a3, A4 a4) const
 Call the attached function.
 operator bool () const
 Test if function has been attached.

Static Public Member Functions

static R thunk (void *func, A0 a0, A1 a1, A2 a2, A3 a3, A4 a4)
 Static thunk for passing as C-style function.

Friends

bool operator== (const Callback &l, const Callback &r)
 Test for equality.
bool operator!= (const Callback &l, const Callback &r)
 Test for inequality.

Detailed Description

template<typename R, typename A0, typename A1, typename A2, typename A3, typename A4>
class Callback< R(A0, A1, A2, A3, A4)>

Callback class based on template specialization.

Note:
Synchronization level: Not protected

Definition at line 2728 of file Callback-A.h.


Constructor & Destructor Documentation

Callback ( R(*)(A0, A1, A2, A3, A4)  func = 0 )

Create a Callback with a static function.

Parameters:
funcStatic function to attach

Definition at line 2733 of file Callback-A.h.

Callback ( const Callback< R(A0, A1, A2, A3, A4)> &  func )

Attach a Callback.

Parameters:
funcThe Callback to attach

Definition at line 2744 of file Callback-A.h.

Callback ( U *  obj,
R(T::*)(A0, A1, A2, A3, A4)  method 
)

Create a Callback with a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2756 of file Callback-A.h.

Callback ( const U *  obj,
R(T::*)(A0, A1, A2, A3, A4) const   method 
)

Create a Callback with a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2765 of file Callback-A.h.

Callback ( volatile U *  obj,
R(T::*)(A0, A1, A2, A3, A4) volatile  method 
)

Create a Callback with a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2774 of file Callback-A.h.

Callback ( const volatile U *  obj,
R(T::*)(A0, A1, A2, A3, A4) const volatile  method 
)

Create a Callback with a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2783 of file Callback-A.h.

Callback ( R(*)(T *, A0, A1, A2, A3, A4)  func,
U *  arg 
)

Create a Callback with a static function and bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2792 of file Callback-A.h.

Callback ( R(*)(const T *, A0, A1, A2, A3, A4)  func,
const U *  arg 
)

Create a Callback with a static function and bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2801 of file Callback-A.h.

Callback ( R(*)(volatile T *, A0, A1, A2, A3, A4)  func,
volatile U *  arg 
)

Create a Callback with a static function and bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2810 of file Callback-A.h.

Callback ( R(*)(const volatile T *, A0, A1, A2, A3, A4)  func,
const volatile U *  arg 
)

Create a Callback with a static function and bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2819 of file Callback-A.h.

Callback ( f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4))   
)

Create a Callback with a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 2828 of file Callback-A.h.

Callback ( const F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const)   
)

Create a Callback with a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 2837 of file Callback-A.h.

Callback ( volatile F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) volatile)   
)

Create a Callback with a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 2846 of file Callback-A.h.

Callback ( const volatile F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const volatile)   
)

Create a Callback with a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 2855 of file Callback-A.h.

Callback ( U *  obj,
R(*)(T *, A0, A1, A2, A3, A4)  func 
)

Create a Callback with a static function and bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 2866 of file Callback-A.h.

Callback ( const U *  obj,
R(*)(const T *, A0, A1, A2, A3, A4)  func 
)

Create a Callback with a static function and bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 2877 of file Callback-A.h.

Callback ( volatile U *  obj,
R(*)(volatile T *, A0, A1, A2, A3, A4)  func 
)

Create a Callback with a static function and bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 2888 of file Callback-A.h.

Callback ( const volatile U *  obj,
R(*)(const volatile T *, A0, A1, A2, A3, A4)  func 
)

Create a Callback with a static function and bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 2899 of file Callback-A.h.

~Callback (  )

Destroy a callback.

Definition at line 2905 of file Callback-A.h.


Member Function Documentation

void attach ( R(*)(A0, A1, A2, A3, A4)  func )

Attach a static function.

Parameters:
funcStatic function to attach

Definition at line 2916 of file Callback-A.h.

void attach ( const Callback< R(A0, A1, A2, A3, A4)> &  func )

Attach a Callback.

Parameters:
funcThe Callback to attach

Definition at line 2926 of file Callback-A.h.

void attach ( const U *  obj,
R(T::*)(A0, A1, A2, A3, A4) const   method 
)

Attach a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2950 of file Callback-A.h.

void attach ( R(*)(const T *, A0, A1, A2, A3, A4)  func,
const U *  arg 
)

Attach a static function with a bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2998 of file Callback-A.h.

void attach ( const U *  obj,
R(*)(const T *, A0, A1, A2, A3, A4)  func 
)

Attach a static function with a bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 3094 of file Callback-A.h.

void attach ( volatile U *  obj,
R(*)(volatile T *, A0, A1, A2, A3, A4)  func 
)

Attach a static function with a bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 3106 of file Callback-A.h.

void attach ( R(*)(volatile T *, A0, A1, A2, A3, A4)  func,
volatile U *  arg 
)

Attach a static function with a bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 3010 of file Callback-A.h.

void attach ( const volatile U *  obj,
R(*)(const volatile T *, A0, A1, A2, A3, A4)  func 
)

Attach a static function with a bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 3118 of file Callback-A.h.

void attach ( volatile U *  obj,
R(T::*)(A0, A1, A2, A3, A4) volatile  method 
)

Attach a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2962 of file Callback-A.h.

void attach ( U *  obj,
R(*)(T *, A0, A1, A2, A3, A4)  func 
)

Attach a static function with a bound pointer.

Parameters:
objPointer to object to bind to function
funcStatic function to attach

Definition at line 3082 of file Callback-A.h.

void attach ( const volatile F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const volatile)   
)

Attach a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 3070 of file Callback-A.h.

void attach ( volatile F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) volatile)   
)

Attach a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 3058 of file Callback-A.h.

void attach ( const F  f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4) const)   
)

Attach a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 3046 of file Callback-A.h.

void attach ( R(*)(const volatile T *, A0, A1, A2, A3, A4)  func,
const volatile U *  arg 
)

Attach a static function with a bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 3022 of file Callback-A.h.

void attach ( f,
MBED_ENABLE_IF_CALLBACK_COMPATIBLE(F, R(F::*)(A0, A1, A2, A3, A4))   
)

Attach a function object.

Parameters:
fFunction object to attach
Note:
The function object is limited to a single word of storage

Definition at line 3034 of file Callback-A.h.

void attach ( U *  obj,
R(T::*)(A0, A1, A2, A3, A4)  method 
)

Attach a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2938 of file Callback-A.h.

void attach ( const volatile U *  obj,
R(T::*)(A0, A1, A2, A3, A4) const volatile  method 
)

Attach a member function.

Parameters:
objPointer to object to invoke member function on
methodMember function to attach

Definition at line 2974 of file Callback-A.h.

void attach ( R(*)(T *, A0, A1, A2, A3, A4)  func,
U *  arg 
)

Attach a static function with a bound pointer.

Parameters:
funcStatic function to attach
argPointer argument to function

Definition at line 2986 of file Callback-A.h.

R call ( A0  a0,
A1  a1,
A2  a2,
A3  a3,
A4  a4 
) const

Call the attached function.

Definition at line 3136 of file Callback-A.h.

operator bool (  ) const

Test if function has been attached.

Definition at line 3149 of file Callback-A.h.

R operator() ( A0  a0,
A1  a1,
A2  a2,
A3  a3,
A4  a4 
) const

Call the attached function.

Definition at line 3143 of file Callback-A.h.

Callback& operator= ( const Callback< R(A0, A1, A2, A3, A4)> &  that )

Assign a callback.

Definition at line 3125 of file Callback-A.h.

static R thunk ( void *  func,
A0  a0,
A1  a1,
A2  a2,
A3  a3,
A4  a4 
) [static]

Static thunk for passing as C-style function.

Parameters:
funcCallback to call passed as void pointer
a0An argument to be called with function func
a1An argument to be called with function func
a2An argument to be called with function func
a3An argument to be called with function func
a4An argument to be called with function func
Returns:
the value as determined by func which is of type and determined by the signiture of func

Definition at line 3175 of file Callback-A.h.


Friends And Related Function Documentation

bool operator!= ( const Callback< R(A0, A1, A2, A3, A4)> &  l,
const Callback< R(A0, A1, A2, A3, A4)> &  r 
) [friend]

Test for inequality.

Definition at line 3161 of file Callback-A.h.

bool operator== ( const Callback< R(A0, A1, A2, A3, A4)> &  l,
const Callback< R(A0, A1, A2, A3, A4)> &  r 
) [friend]

Test for equality.

Definition at line 3155 of file Callback-A.h.