![]() |
smntc
an in-memory multimodal graph database
|
#include "Graph.h"
Include dependency graph for Binary.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| struct Binary * | Binary_construct (unsigned int root, struct Graph *graph, int *error) |
| ssssw | |
| struct Binary * | Binary_destruct (struct Binary *this) |
| unsigned int | Binary_writeCode (struct Binary *this, unsigned int input, int *error) |
| It writes binary value from an unsigned integer into a graph. | |
| unsigned int | Binary_readCode (struct Binary *this, unsigned int code, int *error) |
| It reads binary value into an unsigned integer when given a vertex from a binary cluster. | |
| unsigned int Binary_readCode | ( | struct Binary * | this, |
| unsigned int | code, | ||
| int * | error | ||
| ) |
It reads binary value into an unsigned integer when given a vertex from a binary cluster.
| this | a manager object for binary codes |
| code | a special vertex that exists at the border of a binary layer |
| error | error tracking (0 means no error) |
Definition at line 211 of file Binary.c.
Here is the call graph for this function:
Here is the caller graph for this function:| unsigned int Binary_writeCode | ( | struct Binary * | this, |
| unsigned int | input, | ||
| int * | error | ||
| ) |
It writes binary value from an unsigned integer into a graph.
Leading zeros of the value container are ignored. It's expected that most significant digits are at the beginning of the container. The last bit is attached to the binary root in order to simplify reading the value back.
| this | a manager object for binary codes |
| input | a container with a binary value |
| error | error tracking (0 means no error) |
Definition at line 96 of file Binary.c.
Here is the call graph for this function:
Here is the caller graph for this function: