Defines the GtfDict object interface.
More...
#include <Python.h>
#include "../../hashmap_ext.h"
Go to the source code of this file.
Defines the GtfDict object interface.
◆ GtfDict_check
| #define GtfDict_check |
( |
| o | ) |
|
Value:
PyTypeObject GtfDictType
The Python type definition for the GtfDict object.
Definition GtfDict.c:1208
Checks if the object can be interpreted as a GtfDict.
- Parameters
-
- Returns
- true if the object can be interpreted as a GtfDict, false otherwise
◆ GtfDict_containsValue()
| int GtfDict_containsValue |
( |
GtfDict * | self, |
|
|
PyObject * | other ) |
Internal function for checking if the other dict is contained within self. Linked as contains and contains()
- Parameters
-
| self | |
| other | the other object that might be contained |
- Returns
- C bool describing
- See also
- GtfDict_contains
◆ hausdorf_distance()
| long hausdorf_distance |
( |
GtfDict *restrict | a, |
|
|
long | start, |
|
|
long | end ) |
Calculates the hausdorf distance between a GtfDict and a range.
The Hausdorf distance is the maximum distance between two points in two sets. In this case, it is the maximum distance between the start and end of two GtfDicts
- Parameters
-
| a | the first GtfDict |
| start | the start of the range to compare |
| end | the end of the range to compare |
- Returns
- the Hausdorf distance between the two ranges