|
Coconut Framework
beta
|
Go to the source code of this file.
Classes | |
| struct | CNGraph |
| Direct Acyclic Graph model. More... | |
Functions | |
| struct CNGraph * | CNAllocateGraph (struct CNResource *resource) |
| Allocate CNGraph. More... | |
| static void | CNRetainGraph (struct CNGraph *dst) |
| Retrain the resource for the CNGraph. More... | |
| static void | CNReleaseGraph (struct CNGraph *dst) |
| Release the resource for the CNGraph. More... | |
| static struct CNResource * | CNResourceOfGraph (struct CNGraph *src) |
| Get resource of the graph. More... | |
| void | CNAppendNodeToGraph (struct CNGraph *dst, struct CNNode *src) |
| Append node to the graph. More... | |
| void | CNAppendEdgeToGraph (struct CNGraph *dst, struct CNEdge *src) |
| Append edge to the graph. More... | |
| CNBoolean | CNRemoveEdgeFromGraph (struct CNGraph *dst, struct CNEdge *src) |
| Remove edge from the graph. More... | |
| static size_t | CNCountOfNodesInGraph (const struct CNGraph *src) |
| Count of nodes in the list. More... | |
| static struct CNListItem * | CNFirstNodeInGraph (const struct CNGraph *src) |
| Get first node in the graph. More... | |
| static struct CNListItem * | CNCentinelNodeInGraph (const struct CNGraph *src) |
| Get centinel node in the graph. More... | |
| static struct CNListItem * | CNFirstEdgeInGraph (const struct CNGraph *src) |
| Get first edge in the graph. More... | |
| static struct CNListItem * | CNCentinelEdgeInGraph (const struct CNGraph *src) |
| Get centinel edge in the graph. More... | |
| void | CNPrintGraph (struct CNText *buf, const struct CNGraph *src) |
| Print the context of graph. More... | |
Define CNGraph class.
| struct CNGraph* CNAllocateGraph | ( | struct CNResource * | resource | ) |
|
inlinestatic |
Retrain the resource for the CNGraph.
| dst | Destination graph |
References CNRetainObject(), and CNGraph::superClass.
|
inlinestatic |
Release the resource for the CNGraph.
| dst | Destination graph |
References CNReleaseObject(), and CNGraph::superClass.
|
static |
Get resource of the graph.
| src | Source graph |
References CNResourceOfObject(), and CNGraph::superClass.
Append node to the graph.
| dst | Destination graph |
| src | Source node |
Append edge to the graph.
| dst | Destination graph |
| src | Source edge |
Remove edge from the graph.
| CNTrue | Success to remove the edge |
| CNFalse | Failed to remove the edge |
| dst | Destination graph |
| src | Edge to be removed |
|
inlinestatic |
Count of nodes in the list.
| src | Source graph |
References CNGraph::allNodes, and CNCountOfObjectsInList().
|
static |
Get first node in the graph.
| src | Source graph |
References CNGraph::allNodes, and CNFirstListObject().
|
static |
Get centinel node in the graph.
| src | Source graph |
References CNGraph::allNodes, and CNCentinelListObject().
|
static |
Get first edge in the graph.
| src | Source graph |
References CNGraph::allEdges, and CNFirstListObject().
|
static |
Get centinel edge in the graph.
| src | Source graph |
References CNGraph::allEdges, and CNCentinelListObject().
1.8.5