nns.c  1.0.1
Nanowire Network simulator
junction.h
Go to the documentation of this file.
1 
11 #ifndef JUNCTION_H
12 #define JUNCTION_H
13 
14 #include "util/point.h"
15 
18 typedef struct
19 {
20  int first_wire;
23 } junction;
24 
33 int jcmp(const void* e1, const void* e2);
34 
35 #endif /* JUNCTION_H */
int jcmp(const void *e1, const void *e2)
Compares two junctions according to their first and potentially second nanowire-index....
Definition: junction.c:3
Defines a structure representing a point in the Cartesian space, and a function to compute the square...
Stores the index of the wires forming the junction together with its position.
Definition: junction.h:19
int second_wire
Second wire forming the junction.
Definition: junction.h:21
int first_wire
First wire forming the junction.
Definition: junction.h:20
point position
Position of the junction.
Definition: junction.h:22
Structure representing a point in the cartesian space.
Definition: point.h:12