This file contains defines that may be used simplyfy class creation. More...
Go to the source code of this file.
Macros | |
#define | OT_DECL_NOCOPY(___class) ___class(const ___class&) = delete; ___class& operator = (const ___class&) = delete; |
Removes the default copy constructor and assignment operator. | |
#define | OT_DECL_NOMOVE(___class) ___class(___class&&) = delete; ___class& operator = (___class&&) = delete; |
Removes the default move constructor and move operator. | |
#define | OT_DECL_NODEFAULT(___class) ___class(void) = delete; |
Removes the default copy constructor and assignment operator. | |
#define | OT_DECL_STATICONLY(___class) OT_DECL_NODEFAULT(___class) OT_DECL_NOCOPY(___class) OT_DECL_NOMOVE(___class) |
OT_DECL_NODEFAULT OT_DECL_NOCOPY OT_DECL_NOMOVE | |
#define | OT_UNUSED(___unusedVariable) (void)(___unusedVariable); |
Avoid "warning C4101: unreferenced local variable". | |
This file contains defines that may be used simplyfy class creation.
#define OT_DECL_NOCOPY | ( | ___class | ) | ___class(const ___class&) = delete; ___class& operator = (const ___class&) = delete; |
Removes the default copy constructor and assignment operator.
#define OT_DECL_NODEFAULT | ( | ___class | ) | ___class(void) = delete; |
Removes the default copy constructor and assignment operator.
#define OT_DECL_NOMOVE | ( | ___class | ) | ___class(___class&&) = delete; ___class& operator = (___class&&) = delete; |
Removes the default move constructor and move operator.
#define OT_DECL_STATICONLY | ( | ___class | ) | OT_DECL_NODEFAULT(___class) OT_DECL_NOCOPY(___class) OT_DECL_NOMOVE(___class) |
#define OT_UNUSED | ( | ___unusedVariable | ) | (void)(___unusedVariable); |
Avoid "warning C4101: unreferenced local variable".