libqi  1.14
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
Macros
qi macro

Various macro for qi. (deprecated, export API, disallow copy, ..) More...

Macros

#define QI_DEPRECATED_HEADER(x)
 generate a compiler warning stating a header is deprecated.
#define QI_COMPILER_WARNING(x)
 generate a compiler warning
#define QI_API_DEPRECATED
 compiler flags to mark a function as deprecated. It will generate a compiler warning.
#define QI_IMPORT_API
 compiler flags to import a function or a class
#define QI_EXPORT_API
 compiler flags to export a function or a class
#define QI_DISALLOW_COPY_AND_ASSIGN(type)
 A macro to disallow copy constructor and operator=.
#define QI_UNUSED(x)
 This macro tags a parameter as unused.

Detailed Description

Various macro for qi. (deprecated, export API, disallow copy, ..)


Macro Definition Documentation

#define QI_DISALLOW_COPY_AND_ASSIGN (   type)
Value:
type(type const &); \
void operator=(type const &)

A macro to disallow copy constructor and operator=.

Note:
This macro should always be in the private (or protected) section of a class
class Foo {
Foo();
private:
}

Definition at line 78 of file macro.hpp.

#define QI_UNUSED (   x)

This macro tags a parameter as unused.

int zero(int QI_UNUSED(x)
{
return zero;
}

Definition at line 88 of file macro.hpp.