/home/michaell/software/ReuseDistance/tree234.c File Reference

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>
#include "tree234.h"
#include <tree234.h>
#include <algorithm>
#include <iostream>
#include <ostream>
#include <list>
#include <map>
#include <vector>

Go to the source code of this file.

Classes

struct  tree234_Tag
struct  node234_Tag

Defines

#define smalloc   malloc
#define sfree   free
#define mknew(typ)   ( (typ *) smalloc (sizeof (typ)) )
#define LOG(x)
#define reusecmp(va, vb)   (va->__seq - vb->__seq)

Typedefs

typedef struct node234_Tag node234

Functions

tree234newtree234 ()
void freetree234 (tree234 *t)
int count234 (tree234 *t)
ReuseEntryadd234 (tree234 *t, ReuseEntry *e)
ReuseEntryindex234 (tree234 *t, int index)
ReuseEntryfindrelpos234 (tree234 *t, ReuseEntry *e, int *index)
ReuseEntrydelpos234 (tree234 *t, int index)
ReuseEntrydel234 (tree234 *t, ReuseEntry *e)

Define Documentation

#define LOG (  ) 

Definition at line 47 of file tree234.c.

#define mknew ( typ   )     ( (typ *) smalloc (sizeof (typ)) )

Definition at line 42 of file tree234.c.

#define reusecmp ( va,
vb   )     (va->__seq - vb->__seq)

Definition at line 50 of file tree234.c.

#define sfree   free

Definition at line 40 of file tree234.c.

#define smalloc   malloc

Definition at line 39 of file tree234.c.


Typedef Documentation

typedef struct node234_Tag node234

Definition at line 52 of file tree234.c.


Function Documentation

ReuseEntry* add234 ( tree234 t,
ReuseEntry e 
)

Definition at line 394 of file tree234.c.

int count234 ( tree234 t  ) 

Definition at line 111 of file tree234.c.

ReuseEntry* del234 ( tree234 t,
ReuseEntry e 
)

Definition at line 836 of file tree234.c.

ReuseEntry* delpos234 ( tree234 t,
int  index 
)

Definition at line 830 of file tree234.c.

ReuseEntry* findrelpos234 ( tree234 t,
ReuseEntry e,
int *  index 
)

Definition at line 441 of file tree234.c.

void freetree234 ( tree234 t  ) 

Definition at line 87 of file tree234.c.

ReuseEntry* index234 ( tree234 t,
int  index 
)

Definition at line 402 of file tree234.c.

tree234* newtree234 (  ) 

Definition at line 68 of file tree234.c.

 All Classes Files Functions Variables Typedefs Defines
Generated on Sun Oct 21 14:56:28 2012 for ReuseDistance by  doxygen 1.6.3