98typedef uint8_t ytByte;
100typedef ytObject * (*ytType_new_f)();
101typedef void (*ytType_delete_f)(
void *);
102typedef ytObject * (*ytType_parse_f)(
const char *);
105typedef void (*ytType_print_f)(
const ytObject *, FILE *);
106typedef int (*ytType_sprint_f)(
const ytObject *,
char *, size_t);
108typedef void (*ytType_dump_f)(
const ytObject *, FILE *);
109typedef size_t (*ytType_size_f)(
const ytObject *);
110typedef ytByte * (*ytType_serialize_f)(
const ytObject *, ytByte **);
111typedef ytObject * (*ytType_deserialize_f)(ytByte **
const);
114typedef void (*ytType_MPI_Bcast_f)(
ytObject **, int, MPI_Comm);
116typedef void (*ytType_MPI_Bcast_f)(
ytObject **);
123ytType_delete_f ytType_getDelete(
ytType type);
124ytType_parse_f ytType_getParse(
ytType type);
127ytType_print_f ytType_getPrint(
ytType type);
128ytType_sprint_f ytType_getSprint(
ytType type);
129ytType_compare_f ytType_getCompare(
ytType type);
130ytType_dump_f ytType_getDump(
ytType type);
131ytType_size_f ytType_getSize(
ytType type);
132ytType_serialize_f ytType_getSerialize(
ytType type);
133ytType_deserialize_f ytType_getDeserialize(
ytType type);
134ytType_MPI_Bcast_f ytType_get_MPI_Bcast(
ytType type);
136ytObject * ytType_IntArrayParse(
const char * str);
137ytObject * ytType_DoubleArrayParse(
const char * str);
138ytObject * ytType_StrArrayParse(
const char * str);
140void ytType_intSerialize2(
const int * value, ytByte ** pptr);
141int ytType_intDeserialize2(ytByte **
const ptr);
142void ytType_doubleSerialize2(
const double * value, ytByte ** pptr);
143double ytType_doubleDeserialize2(ytByte **
const ptr);
144void ytType_strSerialize2(
const char * value, ytByte ** pptr);
147int 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:314
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:361
ytType_new_f ytType_getNew(ytType type)
Returns the default constructor of the given type.
Definition ytType.c:341
const char * ytType_name(ytType type)
Returns the name of the type.
Definition ytType.c:307
ytType_clone_f ytType_getClone(ytType type)
Returns the copy function for the given type.
Definition ytType.c:355
ytType ytType_parse(const char *name)
Returns the ytType value of the given type name.
Definition ytType.c:329
@ ytType_ERROR
For representing errors.
Definition ytType.h:91
@ 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