libccmio

Home Modules Examples

/u/xeona04/people/prewett/src/libccmio/libccmio/vector.h

Go to the documentation of this file.
00001 #ifndef __VECTOR_H
00002 #define __VECTOR_H
00003 
00004 /*@@
00005  *  Program: Star File Format Library  - $RCSfile: vector.h,v $
00006  *  Author:  Geoff Prewett
00007  *  Date:    August 12, 2003
00008  *
00009  *
00010  *  Star File Format Library - Copyright (C) 2003 by adapco, Ltd.
00011  *
00012  *  This program is the property of adapco, Ltd. and contains
00013  *  confidential and proprietary information.  The unauthorized use,
00014  *  distribution, or duplication of this program is prohibited.
00015  *  All rights reserved.
00016  *
00017  *  $Id: vector.h,v 1.3 2004/10/25 19:11:55 wayne Exp $
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;          /* TRUE if need to clear memory when expanding */
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 /* __VECTOR_H */
00053 
00054 
00055 /* Automatic setting of emacs local variables. */
00056 /* Local Variables: */
00057 /* mode: C++ */
00058 /* tab-width: 8 */
00059 /* End: */

Generated on Mon Jun 5 17:16:02 2006 for libccmio by doxygen1.2.18