Defines Data Traits for Copying/Serializing. More...
#include "cel_types.h"
Classes | |
struct | Celartem::DataTraits< T > |
Namespaces | |
Celartem | |
Macros | |
#define | CEL_DEFINE_DATATRAITS_EX(inType, inCopyPolicy, inStoragePolicy, isPod) |
#define | CEL_DEFINE_DATATRAITS(inType, inCopyPolicy, inStoragePolicy) CEL_DEFINE_DATATRAITS_EX(inType, inCopyPolicy, inStoragePolicy, false) |
#define | CEL_DEFINE_DATATRAITS_POD(inType) CEL_DEFINE_DATATRAITS_EX(inType, byMemcpy, bySwapCopyBytes, true) |
Enumerations | |
enum | Celartem::CopyPolicy { Celartem::noCopy = 0, Celartem::byConstructor = 1, Celartem::byMemcpy = 2 } |
enum | Celartem::StoragePolicy { Celartem::notToBeStored = 0, Celartem::byCopyBytes = 1, Celartem::bySwapCopyBytes = 2, Celartem::byClassMethods = 3 } |
Defines Data Traits for Copying/Serializing.
#define CEL_DEFINE_DATATRAITS | ( | inType, | |
inCopyPolicy, | |||
inStoragePolicy | |||
) | CEL_DEFINE_DATATRAITS_EX(inType, inCopyPolicy, inStoragePolicy, false) |
This macro eases to define the DataTraits for a type.
inType | The type to define. |
inCopyPolicy | One of the Celartem::CopyPolicy enumeration. |
inStoragePolicy | One of the Celartem::StoragePolicy enumeration. |
#define CEL_DEFINE_DATATRAITS_EX | ( | inType, | |
inCopyPolicy, | |||
inStoragePolicy, | |||
isPod | |||
) |
This macro eases to define the DataTraits for a type.
inType | The type to define. |
inCopyPolicy | One of the Celartem::CopyPolicy enumeration. |
inStoragePolicy | One of the Celartem::StoragePolicy enumeration. |
isPod | true if the type is POD (Plain-Old-Data); otherwise false . |
#define CEL_DEFINE_DATATRAITS_POD | ( | inType | ) | CEL_DEFINE_DATATRAITS_EX(inType, byMemcpy, bySwapCopyBytes, true) |
This macro declares the type is POD (Plain-Old-Data).
inType | The type to define. |