Go to the documentation of this file.
5#ifndef BALL_COMMON_CREATE_H
6#define BALL_COMMON_CREATE_H
26#define BALL_CREATE_DEEP(name)\
28 virtual void* create(bool deep = true, bool empty = false) const\
33 ptr = (void*)new name;\
37 ptr = (void*)new name(*this, deep);\
43 static void* createDefault()\
45 return static_cast<void*>(new name);\
62#define BALL_CREATE(name)\
64 virtual void* create(bool = true, bool empty = false) const\
69 ptr = (void*)new name;\
73 ptr = (void*)new name(*this);\
79 static void* createDefault()\
81 return static_cast<void*>(new name);\
93#define BALL_DEFINE_CREATE(name)\
95 virtual void* create(bool deep = true, bool empty = false) const;\
96 static void* createDefault();