#include <XnQueue.h>
#include <XnOS.h>
Go to the source code of this file.
|
| #define | XN_DECLARE_THREAD_SAFE_QUEUE_WITH_TRANSLATOR_DECL(decl, Type, ClassName, Translator) |
| |
| #define | XN_DECLARE_THREAD_SAFE_QUEUE_WITH_TRANSLATOR(Type, ClassName, Translator) XN_DECLARE_THREAD_SAFE_QUEUE_WITH_TRANSLATOR_DECL(, Type, ClassName, Translator) |
| |
| #define | XN_DECLARE_THREAD_SAFE_QUEUE_DECL(decl, Type, ClassName) |
| |
| #define | XN_DECLARE_THREAD_SAFE_QUEUE(Type, ClassName) XN_DECLARE_THREAD_SAFE_QUEUE_DECL(, Type, ClassName) |
| |
Declares a thread safe queue of type Type, named ClassName, that uses the default translator.
| #define XN_DECLARE_THREAD_SAFE_QUEUE_DECL |
( |
|
decl, |
|
|
|
Type, |
|
|
|
ClassName |
|
) |
| |
Value:
#define XN_DEFAULT_TRANSLATOR_NAME(ClassName)
Definition: XnDataTypes.h:115
#define XN_DECLARE_DEFAULT_VALUE_TRANSLATOR_DECL(decl, Type, ClassName)
Definition: XnDataTypes.h:42
#define XN_DECLARE_THREAD_SAFE_QUEUE_WITH_TRANSLATOR_DECL(decl, Type, ClassName, Translator)
Definition: XnThreadSafeQueue.h:101
Declares a thread safe queue of type Type, named ClassName, that uses the default translator. It is declared using the declspec decl.
Declares a thread safe queue of type Type, named ClassName. The class uses Translator for translating from Type to XnValue. It inherits from base. Note that base must be a derivative of XnQueue.
| #define XN_DECLARE_THREAD_SAFE_QUEUE_WITH_TRANSLATOR_DECL |
( |
|
decl, |
|
|
|
Type, |
|
|
|
ClassName, |
|
|
|
Translator |
|
) |
| |
Value:
{ \
public: \
~ClassName() \
{ \
\
Type dummy; \
XnValue val = Translator::CreateValueCopy(value);
\
{ \
Translator::FreeValue(val); \
return (nRetVal); \
} \
value = Translator::GetFromValue(val); \
} \
};
XnStatus Pop(XnValue &value)
Definition: XnThreadSafeQueue.h:70
#define XN_STATUS_OK
Definition: XnStatus.h:37
XnUInt32 Size() const
Definition: XnThreadSafeQueue.h:83
XnUInt32 XnStatus
Definition: XnStatus.h:34
void * XnValue
Definition: XnDataTypes.h:36
XnStatus Push(XnValue const &value)
Definition: XnThreadSafeQueue.h:57
Definition: XnThreadSafeQueue.h:37
Declares a thread safe queue of type Type, named ClassName. The class uses Translator for translating from Type to XnValue. It is declared using the declspec decl. It inherits from base. Note that base must be a derivative of XnQueue.