15 #include "serialbox-c/FieldMetainfo.h" 16 #include "serialbox-c/Utility.h" 28 std::vector<int> dims(dimensions, dimensions + numDimensions);
31 fieldMetainfo->ownsData = 1;
33 std::free(fieldMetainfo);
42 const FieldMetainfo* otherInfo = toConstFieldMetainfo(other);
45 fieldMetainfo->impl =
new FieldMetainfo(*otherInfo);
46 fieldMetainfo->ownsData = 1;
48 std::free(fieldMetainfo);
57 FieldMetainfo* info = toFieldMetainfo(fieldMetainfo);
58 if(fieldMetainfo->ownsData)
60 std::free(fieldMetainfo);
70 const FieldMetainfo* info1 = toConstFieldMetainfo(f1);
71 const FieldMetainfo* info2 = toConstFieldMetainfo(f2);
72 return ((*info1) == (*info2));
76 const FieldMetainfo* info = toConstFieldMetainfo(fieldMetainfo);
77 return allocateAndCopyString(info->toString());
85 const FieldMetainfo* info = toConstFieldMetainfo(fieldMetainfo);
90 const FieldMetainfo* info = toConstFieldMetainfo(fieldMetainfo);
91 return info->dims().data();
95 const FieldMetainfo* info = toConstFieldMetainfo(fieldMetainfo);
96 return (
int)info->dims().size();
104 FieldMetainfo* info = toFieldMetainfo(fieldMetainfo);
106 metaInfo->impl = info->metaInfoPtr().get();
107 metaInfo->ownsData = 0;
TypeID
Type-id of types recognized by serialbox.
void serialboxFatalError(const char *reason)
Report a fatal error.
serialboxTypeID
Type-id of types recognized by serialbox.