gatb.core-API-0.0.0
|
Smart Pointer Design Pattern interface. More...
Classes | |
class | ISmartPointer |
Tool for managing instances life cycle. More... | |
class | SmartPointer |
Implementation of the ISmartPointer interface. More... | |
class | LocalObject |
Local usage of SmartPointer instance. More... | |
Namespaces | |
gatb::core | |
Core package of the GATP project. | |
gatb::core::system | |
Operating System abstraction layer. | |
Macros | |
#define | LOCAL(object) gatb::core::system::LocalObject __##object (object) |
#define | SP_SETATTR(a) |
Smart Pointer Design Pattern interface.
#define LOCAL | ( | object | ) | gatb::core::system::LocalObject __##object (object) |
Macro that creates an instance of type LocalObject whose name is the prefix '__' followed by the provided argument.
Sample:
#define SP_SETATTR | ( | a | ) |
Macro that generates an instructions block that manages life cycle of a class attributes. It is dedicated to simply write clever setter methods.
As a convention, the attribute name must begin by an underscore. Then the provided argument here is the attribute name without this leading underscore.
A typical use of this macro is the following:
Sample of code: