eccLib 1.3.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
GtfListViews.h
Go to the documentation of this file.
1
6#ifndef GTFLIST_VIEW_H
7#define GTFLIST_VIEW_H
8
9#include <Python.h>
10#include <stdbool.h>
11#include <stdint.h>
12
13#include "GtfList.h"
14
15typedef struct {
16 PyObject_HEAD GtfList *list;
21 bool core;
22 union {
23 uint8_t core_index;
24 struct {
25 const char *key;
26 size_t len;
27 PyObject *attr_key;
28 } attr;
29 };
31
32extern PyTypeObject GtfList_ColumnViewType;
33
42 PyObject *column);
43
44typedef struct {
45 PyObject_HEAD GtfList_ColumnView *view;
46 int64_t index;
47 size_t len;
48 bool reverse;
50
51extern PyTypeObject GtfList_ColumnIteratorType;
52
53#endif
PyTypeObject GtfList_ColumnViewType
Definition GtfListViews.c:227
int GtfList_ColumnView_initialise(GtfList_ColumnView *self, GtfList *list, PyObject *column)
Initialise a GtfList_ColumnView object.
Definition GtfListViews.c:36
PyTypeObject GtfList_ColumnIteratorType
Definition GtfListViews.c:273
Contains the definition of the GtfList object.
Definition GtfListViews.h:44
GtfList_ColumnView * view
Definition GtfListViews.h:45
int64_t index
Definition GtfListViews.h:46
bool reverse
Definition GtfListViews.h:48
size_t len
Definition GtfListViews.h:47
Definition GtfListViews.h:15
PyObject * attr_key
Definition GtfListViews.h:27
const char * key
Definition GtfListViews.h:25
uint8_t core_index
Definition GtfListViews.h:23
bool core
Whether the view is a core index or an attribute key.
Definition GtfListViews.h:21
size_t len
Definition GtfListViews.h:26
GtfList * list
Definition GtfListViews.h:16
A list that holds geneDicts.
Definition GtfList.h:29