|
eccLib 1.3.0
Python library for bioinformatics written in C
|
All generic components of GtfDict views logic. More...
Data Structures | |
| struct | view_logic_state |
| Context for view_iterate_op. More... | |
Typedefs | |
| typedef int(* | op_func) (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| Function pointer type for set operation functions. | |
| typedef PyObject *(* | core_item_func) (uint8_t i, GtfDict_view *restrict self) |
| Function pointer type for core field getters. | |
| typedef PyObject *(* | map_item_func) (struct map_tuple *restrict tuple) |
| Function pointer type for map field getters. | |
Functions | |
| static void | GtfDict_View_dealloc (GtfDict_view *self) |
| Deallocates a GtfDict_view object. | |
| static Py_ssize_t | GtfDict_view_length (GtfDict_view *self) |
| Returns the length of a GtfDict_view object. | |
| static int | GtfDict_view_init (GtfDict_view *self, PyObject *args, PyObject *kwargs) |
| Initializes a GtfDict_view object. | |
| static int | view_iterate_op (void *const context, void *const value) |
| Generic iteration logic, using generic set operations. | |
| static PyObject * | GtfDict_view_set_op (GtfDict_view *restrict self, PyObject *restrict other, op_func op, core_item_func core_item, map_item_func map_item, bool set_init) |
| Performs a set operation on the GtfDict_view object. | |
| static int | contains_op (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| Checks if a value is contained in a set. | |
| static PyObject * | GtfDict_View_richcompare (GtfDict_view *restrict self, PyObject *restrict other, const int op, core_item_func core_item, map_item_func map_item) |
| Performs a rich comparison between two GtfDict_view objects. | |
| static int | base_and (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| The logic operation function for the AND view. | |
| static int | base_or (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| The logic operation function for the OR view. | |
| static int | base_subtract (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| The logic operation function for the SUBTRACT view. | |
| static int | base_xor (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
| The logic operation function for the XOR view. | |
| static PyObject * | GtfDict_View_isdisjoint (GtfDict_view *restrict self, PyObject *restrict other, core_item_func core_item, map_item_func map_item) |
| The isdisjoint method for the view. | |
All generic components of GtfDict views logic.
| typedef PyObject *(* core_item_func) (uint8_t i, GtfDict_view *restrict self) |
Function pointer type for core field getters.
| i | The index of the item. |
| self | The GtfDict_view object. |
| typedef PyObject *(* map_item_func) (struct map_tuple *restrict tuple) |
Function pointer type for map field getters.
| tuple | The map tuple to operate on. |
| typedef int(* op_func) (PyObject *restrict set, PyObject *restrict val, PyObject *restrict other) |
Function pointer type for set operation functions.
| set | The result set. May be NULL, depending on context. |
| val | The value to operate on. Never NULL. |
| other | The other set to operate on. Never NULL. |
|
static |
The logic operation function for the AND view.
| set | The set to add to. |
| val | The value to add. |
| other | The other set to compare against. |

|
static |
The logic operation function for the OR view.
| set | The set to add to. |
| val | The value to add. |
| other | The other set to compare against. |

|
static |
The logic operation function for the SUBTRACT view.
| set | The set to add to. |
| val | The value to add. |
| other | The other set to compare against. |

|
static |
The logic operation function for the XOR view.
| set | The set to add to. |
| val | The value to add. |
| other | The other set to compare against. |

|
static |
Checks if a value is contained in a set.
| set | The set to compare. |
| val | The value to compare. |
| other | The other set to compare against. |

|
static |
Deallocates a GtfDict_view object.
Since all views function on the same base object, deallocation is shared
| self | The GtfDict_view object to deallocate. |
|
static |
Initializes a GtfDict_view object.
| self | The GtfDict_view object to initialize. |
| args | The arguments to initialize the object with. |
| kwargs | The keyword arguments to initialize the object with. |
|
static |
The isdisjoint method for the view.
| self | The view object. |
| other | The other set to compare against. |
| core_item | The core item function. |
| map_item | The map item function. |


|
static |
Returns the length of a GtfDict_view object.
| self | The GtfDict_view object to get the length of. |

|
inlinestatic |
Performs a rich comparison between two GtfDict_view objects.
| self | The first GtfDict_view object. |
| other | The second GtfDict_view object. |
| op | The comparison operator. |
| core_item | The core item getter function. |
| map_item | The map item getter function. |


|
inlinestatic |
Performs a set operation on the GtfDict_view object.
| self | The GtfDict_view object. |
| other | The other set to operate on. |
| op | The operation function to perform. |
| core_item | The core field getter function to use. |
| map_item | The map getter function to use. |
| set_init | Whether to initialize the result set with the other set. |


|
static |
Generic iteration logic, using generic set operations.
| context | The view_logic_state context. |
| value | The map_tuple value. |
