Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

GeneralMacros.h File Reference

#include <iostream>
Include dependency graph for GeneralMacros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PRINT_ATTRS(AttrName, BooleanVal)   std::cout << AttrName << ": " << (BooleanVal ? "true" : "false") << std::endl;
 A printing shortcut for boolean attributes.
#define DISALLOW_COPY(TypeName)   TypeName(const TypeName&)
 Disallows the copy constructor.
#define DISALLOW_ASSIGN(TypeName)   TypeName& operator=(const TypeName&)
 Disallows the assignment operator.
#define DISALLOW_COPY_ASSIGN(TypeName)
 Disallows both the copy constructor and the assignment operator.
#define DISALLOW_INSTANTIATION(TypeName)
 Disallows a class from being instantiated.

Define Documentation

#define DISALLOW_ASSIGN ( TypeName   )     TypeName& operator=(const TypeName&)

Disallows the assignment operator.

Definition at line 14 of file GeneralMacros.h.

#define DISALLOW_COPY ( TypeName   )     TypeName(const TypeName&)

Disallows the copy constructor.

Definition at line 11 of file GeneralMacros.h.

#define DISALLOW_COPY_ASSIGN ( TypeName   ) 
Value:
DISALLOW_COPY(TypeName);    \
            DISALLOW_ASSIGN(TypeName)

Disallows both the copy constructor and the assignment operator.

Definition at line 17 of file GeneralMacros.h.

#define DISALLOW_INSTANTIATION ( TypeName   ) 
Value:
DISALLOW_COPY_ASSIGN(TypeName); \
            TypeName();                     \
            ~TypeName();

Disallows a class from being instantiated.

Definition at line 22 of file GeneralMacros.h.


Tekkotsu v5.1CVS
Generated Mon May 9 04:58:56 2016 by Doxygen 1.6.3