62 static inline struct CNResource *
void CNAppendEdgeToGraph(struct CNGraph *dst, struct CNEdge *src)
Append edge to the graph.
struct CNObjectList allNodes
Definition: CNGraph.h:21
Single linked list item.
Definition: CNListItem.h:16
static struct CNListItem * CNCentinelListObject(const struct CNObjectList *src)
Get centinel item of the list.
Definition: CNObjectList.h:83
static void CNRetainGraph(struct CNGraph *dst)
Retrain the resource for the CNGraph.
Definition: CNGraph.h:42
Edge of the graph.
Definition: CNEdge.h:16
struct CNObjectList allEdges
Definition: CNGraph.h:23
List of CNObject.
Definition: CNObjectList.h:17
Root object.
Definition: CNObject.h:38
CNBoolean CNRemoveEdgeFromGraph(struct CNGraph *dst, struct CNEdge *src)
Remove edge from the graph.
struct CNGraph * CNAllocateGraph(struct CNResource *resource)
Allocate CNGraph.
void CNAppendNodeToGraph(struct CNGraph *dst, struct CNNode *src)
Append node to the graph.
Node of the direct acyclic graph.
Definition: CNNode.h:17
Direct Acyclic Graph model.
Definition: CNGraph.h:17
static size_t CNCountOfNodesInGraph(const struct CNGraph *src)
Count of nodes in the list.
Definition: CNGraph.h:106
Define CNObject data structure.
static void CNReleaseGraph(struct CNGraph *dst)
Release the resource for the CNGraph.
Definition: CNGraph.h:52
static struct CNListItem * CNCentinelNodeInGraph(const struct CNGraph *src)
Get centinel node in the graph.
Definition: CNGraph.h:128
Methods for CNNode.
Definition: CNNode.h:30
void CNReleaseObject(struct CNObject *dst)
Release the object.
static struct CNListItem * CNCentinelEdgeInGraph(const struct CNGraph *src)
Get centinel edge in the graph.
Definition: CNGraph.h:150
static void CNRetainObject(struct CNObject *dst)
Retain the object.
Definition: CNObject.h:75
static struct CNResource * CNResourceOfGraph(struct CNGraph *src)
Get resource of the graph.
Definition: CNGraph.h:63
static struct CNListItem * CNFirstEdgeInGraph(const struct CNGraph *src)
Get first edge in the graph.
Definition: CNGraph.h:139
void CNPrintGraph(struct CNText *buf, const struct CNGraph *src)
Print the context of graph.
unsigned int CNBoolean
Boolean type.
Definition: CNType.h:14
static struct CNResource * CNResourceOfObject(struct CNObject *src)
Get resource for the object.
Definition: CNObject.h:95
static size_t CNCountOfObjectsInList(const struct CNObjectList *src)
Get count of items in the object list.
Definition: CNObjectList.h:50
struct CNObject superClass
Definition: CNGraph.h:19
Define CNObjectList data structure.
static struct CNListItem * CNFirstNodeInGraph(const struct CNGraph *src)
Get first node in the graph.
Definition: CNGraph.h:117
static struct CNListItem * CNFirstListObject(const struct CNObjectList *src)
Get 1st item in the list.
Definition: CNObjectList.h:61