libsff

Home Modules Examples

/home/pinky2/mattijs/OpenFOAM/OpenFOAM-1.0/applications/utilities/mesh/conversion/ccm24ToFoam/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.1 2004/05/04 21:23:00 prewett 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 */

Generated on Mon Dec 13 16:20:26 2004 for libccmio by doxygen 1.3.6