nns.c  1.0.1
Nanowire Network simulator
datasheet.h File Reference

Defines the structure and comparison function for a device's datasheet. More...

Go to the source code of this file.

Classes

struct  datasheet
 Defines the static characteristics of the device. More...
 

Functions

int dscmp (const void *e1, const void *e2)
 Compare two datasheets according to the number of nanowires, the size of their package and their creation seed. More...
 

Detailed Description

Defines the structure and comparison function for a device's datasheet.

This file contains the definition of the datasheet struct, which summarizes static characteristics of the nanowire network. Additionally, it provides a method for the comparison of datasheets.

Function Documentation

◆ dscmp()

int dscmp ( const void *  e1,
const void *  e2 
)

Compare two datasheets according to the number of nanowires, the size of their package and their creation seed.

Parameters
[in]e1Pointer to the first element to compare.
[in]e2Pointer to the second element to compare.
Returns
0 if the datasheets contain the same data; > 0 if e1 has, in order, more nanowires, a bigger size or a bigger seed than e2; < 0 otherwise.