|
ocra-recipes
Doxygen documentation for the ocra-recipes repository
|
#include <memory>Go to the source code of this file.
Macros | |
| #define | DEFINE_CLASS_POINTER_TYPEDEFS(Class) public : using Ptr = std::shared_ptr<Class>; |
| #define DEFINE_CLASS_POINTER_TYPEDEFS | ( | Class | ) | public : using Ptr = std::shared_ptr<Class>; |
Macro function which basically just defines pointer typdefs for classes. Note that normally macros are evil monsters but I think this is a perfect usage case to cut down on repeated code.
| Class | Just pop this bad boy below the class definition and it will do the rest. |
1.8.11