OpenPose  1.7.0
The first real-time multi-person system to jointly detect human body, hand, facial, and foot keypoints
macros.hpp File Reference
#include <chrono>
#include <memory>
#include <ostream>
#include <string>
#include <thread>
#include <vector>

Go to the source code of this file.

Macros

#define OP_API
 
#define UNUSED(unusedVariable)   (void)(unusedVariable)
 
#define DELETE_COPY(className)
 
#define COMPILE_TEMPLATE_BASIC_TYPES_CLASS(className)   COMPILE_TEMPLATE_BASIC_TYPES(className, class)
 
#define COMPILE_TEMPLATE_BASIC_TYPES_STRUCT(className)   COMPILE_TEMPLATE_BASIC_TYPES(className, struct)
 
#define COMPILE_TEMPLATE_BASIC_TYPES(className, classType)
 
#define COMPILE_TEMPLATE_FLOATING_TYPES_CLASS(className)   COMPILE_TEMPLATE_FLOATING_TYPES(className, class)
 
#define COMPILE_TEMPLATE_FLOATING_TYPES_STRUCT(className)   COMPILE_TEMPLATE_FLOATING_TYPES(className, struct)
 
#define COMPILE_TEMPLATE_FLOATING_TYPES(className, classType)
 
#define COMPILE_TEMPLATE_FLOATING_INT_TYPES_CLASS(className)   COMPILE_TEMPLATE_FLOATING_INT_TYPES(className, class)
 
#define COMPILE_TEMPLATE_FLOATING_INT_TYPES_STRUCT(className)   COMPILE_TEMPLATE_FLOATING_INT_TYPES(className, struct)
 
#define COMPILE_TEMPLATE_FLOATING_INT_TYPES(className, classType)
 
#define OVERLOAD_C_OUT(className)
 

Variables

const std::string OPEN_POSE_NAME_STRING = "OpenPose"
 
const std::string OPEN_POSE_VERSION_STRING = "1.7.0"
 
const std::string OPEN_POSE_NAME_AND_VERSION = OPEN_POSE_NAME_STRING + " " + OPEN_POSE_VERSION_STRING
 

Macro Definition Documentation

◆ COMPILE_TEMPLATE_BASIC_TYPES

#define COMPILE_TEMPLATE_BASIC_TYPES (   className,
  classType 
)
Value:
template classType OP_API className<char>; \
template classType OP_API className<signed char>; \
template classType OP_API className<short>; \
template classType OP_API className<int>; \
template classType OP_API className<long>; \
template classType OP_API className<long long>; \
template classType OP_API className<unsigned char>; \
template classType OP_API className<unsigned short>; \
template classType OP_API className<unsigned int>; \
template classType OP_API className<unsigned long>; \
template classType OP_API className<unsigned long long>; \
template classType OP_API className<float>; \
template classType OP_API className<double>; \
template classType OP_API className<long double>
#define OP_API
Definition: macros.hpp:18

Definition at line 39 of file macros.hpp.

◆ COMPILE_TEMPLATE_BASIC_TYPES_CLASS

#define COMPILE_TEMPLATE_BASIC_TYPES_CLASS (   className)    COMPILE_TEMPLATE_BASIC_TYPES(className, class)

Definition at line 37 of file macros.hpp.

◆ COMPILE_TEMPLATE_BASIC_TYPES_STRUCT

#define COMPILE_TEMPLATE_BASIC_TYPES_STRUCT (   className)    COMPILE_TEMPLATE_BASIC_TYPES(className, struct)

Definition at line 38 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_INT_TYPES

#define COMPILE_TEMPLATE_FLOATING_INT_TYPES (   className,
  classType 
)
Value:
char gInstantiationGuard##className; \
template classType OP_API className<int>; \
template classType OP_API className<unsigned int>; \
template classType OP_API className<float>; \
template classType OP_API className<double>

Definition at line 66 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_INT_TYPES_CLASS

#define COMPILE_TEMPLATE_FLOATING_INT_TYPES_CLASS (   className)    COMPILE_TEMPLATE_FLOATING_INT_TYPES(className, class)

Definition at line 64 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_INT_TYPES_STRUCT

#define COMPILE_TEMPLATE_FLOATING_INT_TYPES_STRUCT (   className)    COMPILE_TEMPLATE_FLOATING_INT_TYPES(className, struct)

Definition at line 65 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_TYPES

#define COMPILE_TEMPLATE_FLOATING_TYPES (   className,
  classType 
)
Value:
char gInstantiationGuard##className; \
template classType OP_API className<float>; \
template classType OP_API className<double>

Definition at line 58 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_TYPES_CLASS

#define COMPILE_TEMPLATE_FLOATING_TYPES_CLASS (   className)    COMPILE_TEMPLATE_FLOATING_TYPES(className, class)

Definition at line 56 of file macros.hpp.

◆ COMPILE_TEMPLATE_FLOATING_TYPES_STRUCT

#define COMPILE_TEMPLATE_FLOATING_TYPES_STRUCT (   className)    COMPILE_TEMPLATE_FLOATING_TYPES(className, struct)

Definition at line 57 of file macros.hpp.

◆ DELETE_COPY

#define DELETE_COPY (   className)
Value:
className(const className&) = delete; \
className& operator=(const className&) = delete

Definition at line 32 of file macros.hpp.

◆ OP_API

#define OP_API

Definition at line 18 of file macros.hpp.

◆ OVERLOAD_C_OUT

#define OVERLOAD_C_OUT (   className)
Value:
template<typename T> std::ostream &operator<<(std::ostream& ostream, const op::className<T>& obj) \
{ \
ostream << obj.toString(); \
return ostream; \
}

cout operator overload calling toString() function

Returns
std::ostream containing output from toString()

Definition at line 77 of file macros.hpp.

◆ UNUSED

#define UNUSED (   unusedVariable)    (void)(unusedVariable)

Definition at line 30 of file macros.hpp.

Variable Documentation

◆ OPEN_POSE_NAME_AND_VERSION

const std::string OPEN_POSE_NAME_AND_VERSION = OPEN_POSE_NAME_STRING + " " + OPEN_POSE_VERSION_STRING

Definition at line 14 of file macros.hpp.

◆ OPEN_POSE_NAME_STRING

const std::string OPEN_POSE_NAME_STRING = "OpenPose"

Definition at line 12 of file macros.hpp.

◆ OPEN_POSE_VERSION_STRING

const std::string OPEN_POSE_VERSION_STRING = "1.7.0"

Definition at line 13 of file macros.hpp.