00001 #ifndef __VECTOR_H
00002 #define __VECTOR_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifdef __cplusplus
00021 extern "C" {
00022 #endif
00023
00024 struct _Vector {
00025 int size;
00026 int alloc;
00027 int typeSize;
00028 int clear;
00029 void *buffer;
00030 };
00031
00032 typedef struct _Vector* Vector;
00033
00036 extern Vector VCreate( int typeSize, int minSize, int clear );
00037
00039 extern void VDestroy( Vector v );
00040
00042 extern int VSize( Vector v );
00043
00046 extern void* VIndex( Vector v, int i );
00047
00048 #ifdef __cplusplus
00049 }
00050 #endif
00051
00052 #endif