39#include "lang/ytObject.h"
48void ytEdge_dump(
const ytEdge * edge, FILE * fp);
49void ytEdge_dumpv(
const ytObject * edge, FILE * fp);
62size_t ytEdge_sizeI(
const ytObject * obj);
63ytByte * ytEdge_serializeI(
const ytObject * obj, ytByte ** pptr);
64ytObject * ytEdge_deserializeI(ytByte **
const pptr);
65int ytEdge_test(
int argc,
char * argv[]);
ytByte * ytEdge_serialize(const ytEdge *this, ytByte **pptr)
Serializes the ytEdge instance.
Definition: ytEdge.c:204
ytObject * ytEdge_getPropertyAt(const ytEdge *this, size_t i)
Returns a property value at the specified position.
Definition: ytEdge.c:165
ytEdge * ytEdge_newIndex(int parent, int child)
Creates a new ytEdge instance with its parent and child indices.
Definition: ytEdge.c:70
int ytEdge_getParent(const ytEdge *this)
Returns the parent index of this edge.
Definition: ytEdge.c:119
int ytEdge_numProperties(const ytEdge *this)
Returns the number of properties.
Definition: ytEdge.c:149
const char * ytEdge_getPropertyKey(const ytEdge *this, size_t i)
Returns the property key at the specified position.
Definition: ytEdge.c:158
ytEdge * ytEdge_deserialize(ytByte **const pptr)
De-serializes the ytEdge instance.
Definition: ytEdge.c:233
void ytEdge_setProperty(ytEdge *this, const char *key, ytObject *value)
Sets a property key-value pair.
Definition: ytEdge.c:172
void ytEdge_print(const ytEdge *this, FILE *fp)
Prints information of the edge.
Definition: ytEdge.c:181
ytEdge * ytEdge_from(ytObject *obj)
Definition: ytEdge.c:100
size_t ytEdge_size(const ytEdge *this)
Returns the size of the serialized instance.
Definition: ytEdge.c:195
ytEdge * ytEdge_clone(const ytEdge *this)
Clones this ytEdge instance.
Definition: ytEdge.c:80
ytEdge * ytEdge_new()
Creates a new ytEdge instance.
Definition: ytEdge.c:58
int ytEdge_getChild(const ytEdge *this)
Returns the child index of this edge.
Definition: ytEdge.c:126
void ytEdge_delete(ytEdge *this)
Deletes the ytEdge instance.
Definition: ytEdge.c:111
ytObject * ytEdge_getProperty(const ytEdge *this, const char *key)
Returns the property value with key.
Definition: ytEdge.c:141
void ytEdge_setIndex(ytEdge *this, int parent, int child)
Sets the parent and child index.
Definition: ytEdge.c:133