LALInspiral 5.0.3.1-eeff03c
_thinca.c File Reference

Prototypes

static long get_template_id (PyObject *event)
 
static INT8 get_end_ns (PyObject *event)
 
static int compute_start_stop (INT8 *start_ns, INT8 *stop_ns, PyObject *event, PyObject *offset, PyObject *coinc_window)
 
static int event_sequence_get_cmp (const void *key, const void *obj)
 
static int event_sequence_sort_cmp (const void *a, const void *b)
 
static struct event_sequenceevent_sequence_get (struct event_sequence *event_sequences, int n, long template_id)
 
static int event_sequence_insert (struct event_sequence **event_sequences, int *n, PyObject *event)
 
static void event_sequence_free (struct event_sequence *event_sequences, int n)
 
static Py_ssize_t bisect_left (struct event *items, Py_ssize_t hi, INT8 end_ns)
 
static PyObject * event_sequence_extract (struct event_sequence *event_sequence, INT8 start_ns, INT8 stop_ns)
 
static void get_coincs__del__ (PyObject *self)
 
static int get_coincs__init__ (PyObject *self, PyObject *args, PyObject *kwds)
 
static PyObject * get_coincs__call__ (PyObject *self, PyObject *args, PyObject *kwds)
 
PyMODINIT_FUNC PyInit__thinca (void)
 

Go to the source code of this file.

Data Structures

struct  event
 
struct  event_sequence
 
struct  get_coincs
 

Variables

static PyTypeObject get_coincs_Type
 

Function Documentation

◆ get_template_id()

static long get_template_id ( PyObject *  event)
static

Definition at line 92 of file _thinca.c.

◆ get_end_ns()

static INT8 get_end_ns ( PyObject *  event)
static

Definition at line 114 of file _thinca.c.

◆ compute_start_stop()

static int compute_start_stop ( INT8 start_ns,
INT8 stop_ns,
PyObject *  event,
PyObject *  offset,
PyObject *  coinc_window 
)
static

Definition at line 134 of file _thinca.c.

◆ event_sequence_get_cmp()

static int event_sequence_get_cmp ( const void *  key,
const void *  obj 
)
static

Definition at line 172 of file _thinca.c.

◆ event_sequence_sort_cmp()

static int event_sequence_sort_cmp ( const void *  a,
const void *  b 
)
static

Definition at line 180 of file _thinca.c.

◆ event_sequence_get()

static struct event_sequence * event_sequence_get ( struct event_sequence event_sequences,
int  n,
long  template_id 
)
static

Definition at line 187 of file _thinca.c.

◆ event_sequence_insert()

static int event_sequence_insert ( struct event_sequence **  event_sequences,
int *  n,
PyObject *  event 
)
static

Definition at line 194 of file _thinca.c.

◆ event_sequence_free()

static void event_sequence_free ( struct event_sequence event_sequences,
int  n 
)
static

Definition at line 253 of file _thinca.c.

◆ bisect_left()

static Py_ssize_t bisect_left ( struct event items,
Py_ssize_t  hi,
INT8  end_ns 
)
static

Definition at line 267 of file _thinca.c.

◆ event_sequence_extract()

static PyObject * event_sequence_extract ( struct event_sequence event_sequence,
INT8  start_ns,
INT8  stop_ns 
)
static

Definition at line 283 of file _thinca.c.

◆ get_coincs__del__()

static void get_coincs__del__ ( PyObject *  self)
static

Definition at line 335 of file _thinca.c.

◆ get_coincs__init__()

static int get_coincs__init__ ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 352 of file _thinca.c.

◆ get_coincs__call__()

static PyObject * get_coincs__call__ ( PyObject *  self,
PyObject *  args,
PyObject *  kwds 
)
static

Definition at line 391 of file _thinca.c.

◆ PyInit__thinca()

PyMODINIT_FUNC PyInit__thinca ( void  )

Definition at line 457 of file _thinca.c.

Variable Documentation

◆ get_coincs_Type

PyTypeObject get_coincs_Type
static
Initial value:
= {
PyVarObject_HEAD_INIT(NULL, 0)
.tp_name = MODULE_NAME ".get_coincs",
.tp_basicsize = sizeof(struct get_coincs),
.tp_dealloc = get_coincs__del__,
.tp_call = get_coincs__call__,
.tp_doc = "",
.tp_flags = Py_TPFLAGS_DEFAULT,
.tp_init = get_coincs__init__,
.tp_new = PyType_GenericNew,
}
static PyObject * get_coincs__call__(PyObject *self, PyObject *args, PyObject *kwds)
Definition: _thinca.c:391
static void get_coincs__del__(PyObject *self)
Definition: _thinca.c:335
static int get_coincs__init__(PyObject *self, PyObject *args, PyObject *kwds)
Definition: _thinca.c:352

Definition at line 434 of file _thinca.c.