eccLib 1.3.0
Python library for bioinformatics written in C
Loading...
Searching...
No Matches
Data Structures | Macros | Functions | Variables
FastaBuffViews.h File Reference

Contains the definition of the FastaBuff_iterator object. More...

#include "FastaBuff.h"
#include <Python.h>
#include <stddef.h>
#include <stdint.h>
Include dependency graph for FastaBuffViews.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  FastaBuff_iterator
 
struct  FastaBuff_view
 

Macros

#define FOREACH_VIEW_ELEMENT(self, idx)    for (int64_t idx = self->start; idx < self->stop; idx += self->step)
 
#define VIEW_INDEX_TRANSFORM(i, self)   ((i * self->step) + self->start)
 

Functions

void FastaBuff_iterator_initialise (FastaBuff_iterator *iter, FastaBuff *buff, bool reverse)
 
PyObject * FastaBuff_view_initialise (FastaBuff_view *view, FastaBuff *buff, Py_ssize_t start, Py_ssize_t stop, Py_ssize_t step, Py_ssize_t slicelength)
 

Variables

PyTypeObject FastaBuff_iteratorType
 
PyTypeObject FastaBuff_viewType
 

Detailed Description

Contains the definition of the FastaBuff_iterator object.

Macro Definition Documentation

◆ FOREACH_VIEW_ELEMENT

#define FOREACH_VIEW_ELEMENT (   self,
  idx 
)     for (int64_t idx = self->start; idx < self->stop; idx += self->step)

◆ VIEW_INDEX_TRANSFORM

#define VIEW_INDEX_TRANSFORM (   i,
  self 
)    ((i * self->step) + self->start)

Function Documentation

◆ FastaBuff_iterator_initialise()

void FastaBuff_iterator_initialise ( FastaBuff_iterator iter,
FastaBuff buff,
bool  reverse 
)
Here is the caller graph for this function:

◆ FastaBuff_view_initialise()

PyObject * FastaBuff_view_initialise ( FastaBuff_view view,
FastaBuff buff,
Py_ssize_t  start,
Py_ssize_t  stop,
Py_ssize_t  step,
Py_ssize_t  slicelength 
)
Here is the caller graph for this function:

Variable Documentation

◆ FastaBuff_iteratorType

PyTypeObject FastaBuff_iteratorType
extern

◆ FastaBuff_viewType

PyTypeObject FastaBuff_viewType
extern