WiConnect Host Library- API Reference Guide
Library Overview
Library API
API Examples
Classes
WiConnect Reference Manual
ACKme Website
WiConnect Repository
All
Classes
Namespaces
Functions
Variables
Typedefs
Enumerations
Enumerator
Groups
Pages
FunctionPointer.h
1
29
#pragma once
30
31
32
namespace
wiconnect
33
{
34
35
40
class
FunctionPointer
41
{
42
public
:
43
/*************************************************************************************************/
44
FunctionPointer
& operator=(
const
FunctionPointer
& other )
45
{
46
_object = other._object;
47
_function = other._function;
48
_membercaller = other._membercaller;
49
memcpy(_member, other._member,
sizeof
(_member));
50
return
*
this
;
51
}
52
53
/*************************************************************************************************/
54
bool
isValid()
const
55
{
56
return
(_function != NULL) || (_object != NULL);
57
}
58
59
/*************************************************************************************************/
60
void
setInvalid()
61
{
62
_function = NULL;
63
_object = NULL;
64
}
65
66
protected
:
67
void
*_object;
68
void
*_function;
69
char
_member[16];
70
void
*_membercaller;
71
};
72
73
}
wiconnect::FunctionPointer
Generic function pointer.
Definition:
FunctionPointer.h:40
© ACKme Networks 2014