Workspace 6.21.5
|
Traits class defining whether a class T supports cloning. More...
#include <Workspace/DataExecution/DataObjects/datafactorytraits.h>
Public Types | |
enum | { Supported = 1 } |
Public Member Functions | |
T * | clone (const T &t) |
If T does not support cloning, then in the same header that defines T, specialize this class template as follows:
If T supports cloning but its copy constructor does not create an 'independent' instance (eg. uses shared data that isn't copy-on-write), then specialize this class template in the header containing the DECLARE_WORKSPACE_DATA_FACTORY for T to explicitly do a deep copy.
By doing this, the cloneDataObject() function in TypedDataFactory will also automatically be given an appropriate function body without any further changes.
|
inline |