|
Coconut Framework
beta
|
Go to the source code of this file.
Classes | |
| struct | CNEdge |
| Edge of the graph. More... | |
| struct | CNEdgeMethods |
| Methods for CNNode. More... | |
Typedefs | |
| typedef void(* | CNPrintEdgeFuncRef )(struct CNText *buf, const struct CNEdge *src) |
Functions | |
| struct CNEdge * | CNAllocateEdge (struct CNGraph *parent, size_t size, const struct CNEdgeMethods *methods) |
| Allocate CNEdge. More... | |
| static void | CNRetainEdge (struct CNEdge *dst) |
| Retrain the resource for the CNEdge. More... | |
| static void | CNReleaseEdge (struct CNEdge *dst) |
| Release the resource for the CNEdge. More... | |
| static struct CNResource * | CNResourceOfEdge (struct CNEdge *src) |
| Get resource of the CNEdge. More... | |
| static struct CNObject * | CNObjectOfEdge (struct CNEdge *src) |
| Get object of the edge. More... | |
| void | CNDestroyContextOfEdge (struct CNEdge *dst) |
| Release the contex of the edge. More... | |
| static void | CNPrintEdge (struct CNText *buf, const struct CNEdge *src) |
| Print the context of edge. More... | |
| static struct CNNode * | CNProducerNodeOfEdge (const struct CNEdge *src) |
| Get producer node from edge. More... | |
| void | CNSetProducerNodeToEdge (struct CNEdge *dst, struct CNNode *src) |
| Set producer node for the edge. More... | |
| static struct CNNode * | CNConsumerNodeOfEdge (const struct CNEdge *src) |
| Get consumer node from edge. More... | |
| void | CNSetConsumerNodeToEdge (struct CNEdge *dst, struct CNNode *src) |
| Set consumer node for the edge. More... | |
| static CNBoolean | CNIsVisitedEdge (const struct CNEdge *src) |
| Check visited flag in edge. More... | |
| static void | CNSetVisitedEdge (struct CNEdge *dst, CNBoolean flag) |
| Set visited flag to edge. More... | |
Define CNEdge class.
Function to dump the context of CNEdge
| struct CNEdge* CNAllocateEdge | ( | struct CNGraph * | parent, |
| size_t | size, | ||
| const struct CNEdgeMethods * | methods | ||
| ) |
Allocate CNEdge.
| parent | Owner of the node |
| size | Size of edge class |
| methods | Methods of edge class |
|
inlinestatic |
Retrain the resource for the CNEdge.
| dst | Destination edge |
References CNRetainObject(), and CNEdge::superClass.
|
inlinestatic |
Release the resource for the CNEdge.
| dst | Destination edge |
References CNReleaseObject(), and CNEdge::superClass.
|
static |
Get resource of the CNEdge.
| src | Source edge |
References CNResourceOfObject(), and CNEdge::superClass.
| void CNDestroyContextOfEdge | ( | struct CNEdge * | dst | ) |
Release the contex of the edge.
| dst | Destination edge |
Print the context of edge.
| buf | Text buffer |
| src | Source node |
References CNMethodsOfObject(), CNEdgeMethods::printEdge, and CNEdge::superClass.
Get producer node from edge.
| src | Source edge |
References CNEdge::producerNode.
Set producer node for the edge.
| dst | Destination edge |
| src | Source node |
Get consumer node from edge.
| src | Source edge |
References CNEdge::consumerNode.
Set consumer node for the edge.
| dst | Destination edge |
| src | Source node |
Check visited flag in edge.
| src | Source ednge |
References CNEdge::isVisited.
Set visited flag to edge.
| dst | Destination edge |
| flag | Flag value |
References CNEdge::isVisited.
1.8.5