Main Page | Data Structures | Directories | File List | Globals

mqint_queue.h

Go to the documentation of this file.
00001 #ifndef _MQINT_QUEUE_H_
00002 #define _MQINT_QUEUE_H_
00003 
00004 /* Copyright (c) Kyriacos Leptos and the President and Fellows of Harvard University
00005    Release Date: 2004-11-01
00006    Part of the MapQuant suite library "mqbasic.lib" 
00007 */
00008 
00018 struct MQIntQueue
00019 {
00020     int* array;
00021     int size;
00022     int tail;
00023     int head;
00024 };
00025 
00026 typedef struct MQIntQueue MQIntQueue;
00027 
00028 void  MQIntQueue_create(MQIntQueue* Q, int  size);
00029 void  MQIntQueue_destroy(MQIntQueue* Q);
00030 void  MQIntQueue_init(MQIntQueue* Q);
00031 int   MQIntQueue_push(MQIntQueue* Q, int  elem);
00032 int   MQIntQueue_pop(MQIntQueue* Q, int* elem);
00033 
00034 void  MQIntQueue_fprint(FILE* fp, MQIntQueue* Q);
00035 
00036 
00037 #endif
00038 

Generated on Tue Feb 7 03:25:43 2006 for libmqbasic by  doxygen 1.4.4