libqi  1.14.5
Defines
qi macro

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

Defines

#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, ..)


Define 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:
   QI_DISALLOW_COPY_AND_ASSIGN(type);
 }

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.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines