ocra-recipes
Doxygen documentation for the ocra-recipes repository
Macros
Macros.h File Reference
#include <memory>
Include dependency graph for Macros.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_CLASS_POINTER_TYPEDEFS(Class)   public : using Ptr = std::shared_ptr<Class>;
 

Macro Definition Documentation

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

Parameters
ClassJust pop this bad boy below the class definition and it will do the rest.

Definition at line 8 of file Macros.h.