CONCEPT_DEFINE_CLASS adds the symbols classType (type of the class) and baseClass (type of the parent class). These symbols simplify the source code and reduce maintenance effort.
Classes | |
class | NonCopyable |
Base class that prevents objects to be copied with copy constructor or operator=. More... | |
Macros | |
#define | CONCEPT_DEFINE_CLASS(_classType, _baseType) |
Helper to declare classType and baseClass More... | |
#define | CONCEPT_DEFINE_TOP_CLASS(_classType) typedef _classType classType; |
Helper to declare classType More... | |
#define | CONCEPT_DISALLOW_COPY_AND_ASSIGN(_classType) |
Helper to disallow copy and assignement of the objects. More... | |
#define CONCEPT_DEFINE_CLASS | ( | _classType, | |
_baseType | |||
) |
Helper to declare classType and baseClass
_classType | The current class name. |
_baseType | the parent class name. |
classType helps to refer to the current class in the code. baseClass helps to refer to the base class in the code of the class. Very useful to call parent behaviour without having to use its name
Context of use : Class declaration.
#define CONCEPT_DEFINE_TOP_CLASS | ( | _classType | ) | typedef _classType classType; |
Helper to declare classType
_classType | The current class name. |
classType helps to refer to the current class in the code.
Context of use : Class declaration.
#define CONCEPT_DISALLOW_COPY_AND_ASSIGN | ( | _classType | ) |
Helper to disallow copy and assignement of the objects.
_classType | The current class name. |
Place the copy constructor and the assignement operator in protected visibility. Context of use : Class declaration.