OpenPose
1.0.0rc2
OpenPose: A Real-Time Multi-Person Key-Point Detection And Multi-Threading C++ Library
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Enumerations
Enumerator
Macros
macros.hpp
Go to the documentation of this file.
1
#ifndef OPENPOSE_CORE_MACROS_HPP
2
#define OPENPOSE_CORE_MACROS_HPP
3
4
#ifndef _WIN32
5
#define OP_API
6
#elif defined OP_EXPORTS
7
#define OP_API __declspec(dllexport)
8
#else
9
#define OP_API __declspec(dllimport)
10
#endif
11
12
//Disable some Windows Warnings
13
#ifdef _WIN32
14
#pragma warning ( disable : 4251 ) // XXX needs to have dll-interface to be used by clients of class YYY
15
#pragma warning( disable: 4275 ) // non dll-interface structXXX used as base
16
#endif
17
18
#define DATUM_BASE_NO_PTR std::vector<Datum>
19
#define DATUM_BASE std::shared_ptr<DATUM_BASE_NO_PTR>
20
#define DEFINE_TEMPLATE_DATUM(templateName) template class OP_API templateName<DATUM_BASE>
21
#define COMPILE_TEMPLATE_DATUM(templateName) extern DEFINE_TEMPLATE_DATUM(templateName)
22
23
#define UNUSED(unusedVariable) (void)(unusedVariable)
24
25
#define DELETE_COPY(className) \
26
className(const className&) = delete; \
27
className& operator=(const className&) = delete
28
29
#define COMPILE_TEMPLATE_BASIC_TYPES_CLASS(className) COMPILE_TEMPLATE_BASIC_TYPES(className, class)
30
31
#define COMPILE_TEMPLATE_BASIC_TYPES_STRUCT(className) COMPILE_TEMPLATE_BASIC_TYPES(className, struct)
32
33
#define COMPILE_TEMPLATE_BASIC_TYPES(className, classType) \
34
template classType OP_API className<char>; \
35
template classType OP_API className<signed char>; \
36
template classType OP_API className<short>; \
37
template classType OP_API className<int>; \
38
template classType OP_API className<long>; \
39
template classType OP_API className<long long>; \
40
template classType OP_API className<unsigned char>; \
41
template classType OP_API className<unsigned short>; \
42
template classType OP_API className<unsigned int>; \
43
template classType OP_API className<unsigned long>; \
44
template classType OP_API className<unsigned long long>; \
45
template classType OP_API className<float>; \
46
template classType OP_API className<double>; \
47
template classType OP_API className<long double>
48
49
// Includes at the end, since this macros class does not need them, but the files that call this
50
// file. However, keeping the files at the beginning might create a circular include linking problem.
51
#include <memory>
// std::shared_ptr
52
#include <vector>
53
#include <
openpose/core/datum.hpp
>
54
#include <
openpose/core/point.hpp
>
55
#include <
openpose/core/rectangle.hpp
>
56
57
#endif // OPENPOSE_CORE_MACROS_HPP
point.hpp
rectangle.hpp
datum.hpp
include
openpose
core
macros.hpp
Generated by
1.8.6