Legofit
infers population history from nucleotide site patterns.
Data Structures | Functions
ptrqueue.c File Reference

A FIFO queue of pointers. More...

#include "ptrqueue.h"
#include "misc.h"
#include <stdlib.h>

Data Structures

struct  El
 A single key-value pair, with a pointer to the next one. More...
 
struct  PtrQueue
 

Functions

static ElEl_push (El *tail, void *ptr)
 
static ElEl_pop (El *head, void **ptr)
 
static void El_free (El *self)
 
PtrQueuePtrQueue_new (void)
 
void PtrQueue_free (PtrQueue *self)
 
void PtrQueue_push (PtrQueue *self, void *ptr)
 
void * PtrQueue_pop (PtrQueue *self)
 
unsigned PtrQueue_size (PtrQueue *self)
 

Detailed Description

A FIFO queue of pointers.

Author
Alan R. Rogers