101typedef uint8_t ytByte;
103typedef ytObject * (*ytType_new_f)();
104typedef void (*ytType_delete_f)(
void *);
105typedef ytObject * (*ytType_parse_f)(
const char *);
108typedef void (*ytType_print_f)(
const ytObject *, FILE *);
109typedef int (*ytType_sprint_f)(
const ytObject *,
char *, size_t);
111typedef void (*ytType_dump_f)(
const ytObject *, FILE *);
112typedef size_t (*ytType_size_f)(
const ytObject *);
113typedef ytByte * (*ytType_serialize_f)(
const ytObject *, ytByte **);
114typedef ytObject * (*ytType_deserialize_f)(ytByte **
const);
117typedef void (*ytType_MPI_Bcast_f)(
ytObject **, int, MPI_Comm);
119typedef void (*ytType_MPI_Bcast_f)(
ytObject **);
126ytType_delete_f ytType_getDelete(
ytType type);
127ytType_parse_f ytType_getParse(
ytType type);
130ytType_print_f ytType_getPrint(
ytType type);
131ytType_sprint_f ytType_getSprint(
ytType type);
132ytType_compare_f ytType_getCompare(
ytType type);
133ytType_dump_f ytType_getDump(
ytType type);
134ytType_size_f ytType_getSize(
ytType type);
135ytType_serialize_f ytType_getSerialize(
ytType type);
136ytType_deserialize_f ytType_getDeserialize(
ytType type);
137ytType_MPI_Bcast_f ytType_get_MPI_Bcast(
ytType type);
139ytObject * ytType_IntArrayParse(
const char * str);
140ytObject * ytType_DoubleArrayParse(
const char * str);
141ytObject * ytType_StrArrayParse(
const char * str);
143void ytType_intSerialize2(
const int * value, ytByte ** pptr);
144int ytType_intDeserialize2(ytByte **
const ptr);
145void ytType_doubleSerialize2(
const double * value, ytByte ** pptr);
146double ytType_doubleDeserialize2(ytByte **
const ptr);
147void ytType_strSerialize2(
const char * value, ytByte ** pptr);
150int ytType_test(
int argc,
char * argv[]);
int ytType_super(ytType super, ytType sub)
Checks if the type is a subclass of the given type.
Definition ytType.c:316
ytType
Types supported by ytLib.
Definition ytType.h:14
ytType_copy_f ytType_getCopy(ytType type)
Returns the copy function for the given type.
Definition ytType.c:363
ytType_new_f ytType_getNew(ytType type)
Returns the default constructor of the given type.
Definition ytType.c:343
const char * ytType_name(ytType type)
Returns the name of the type.
Definition ytType.c:309
ytType_clone_f ytType_getClone(ytType type)
Returns the copy function for the given type.
Definition ytType.c:357
ytType ytType_parse(const char *name)
Returns the ytType value of the given type name.
Definition ytType.c:331
@ ytType_ERROR
For representing errors.
Definition ytType.h:94
@ ytType_SIZE_T_P
primitive size_t *.
Definition ytType.h:43
@ ytType_Object
ytObject.
Definition ytType.h:46
@ ytType_INT_P
primitive int *.
Definition ytType.h:22
@ ytType_DOUBLE
primitive double.
Definition ytType.h:29
@ ytType_CHAR_P
primitive char *.
Definition ytType.h:34
@ ytType_Array
ytArray.
Definition ytType.h:49
@ ytType_StrArray_P
pointer to ytStrArray.
Definition ytType.h:64
@ ytType_NULL
NULL.
Definition ytType.h:16
@ ytType_UINT
primitive unsigned int.
Definition ytType.h:25
@ ytType_INT
primitive int.
Definition ytType.h:19
@ ytType_SIZE_T
primitive size_t.
Definition ytType.h:40
@ ytType_CHAR_PP
primitive char **.
Definition ytType.h:37
@ ytType_IntArray
ytIntArray.
Definition ytType.h:53
@ ytType_DoubleArray
ytDoubleArray.
Definition ytType.h:57
@ ytType_StrArray
ytStrArray.
Definition ytType.h:61