nns.c
1.0.1
Nanowire Network simulator
|
Defines the structure and comparison function for nanowire junctions. More...
#include "util/point.h"
Go to the source code of this file.
Classes | |
struct | junction |
Stores the index of the wires forming the junction together with its position. More... | |
Functions | |
int | jcmp (const void *e1, const void *e2) |
Compares two junctions according to their first and potentially second nanowire-index. Intended to be used with the qsort function. More... | |
Defines the structure and comparison function for nanowire junctions.
This file defines a junction
struct and provides a comparison function jcmp
to compare two junctions based on the indices of the wires forming the junction. This allows sorting junctions by the first and second wire index.
int jcmp | ( | const void * | e1, |
const void * | e2 | ||
) |
Compares two junctions according to their first and potentially second nanowire-index. Intended to be used with the qsort function.
[in] | e1 | Pointer to the first element to compare. |
[in] | e2 | Pointer to the second element to compare. |
0 otherwise.