![]() |
http://www.sim.no/ http://www.coin3d.org/ |
00001 #ifndef CC_LIST_H 00002 #define CC_LIST_H 00003 00004 /**************************************************************************\ 00005 * 00006 * This file is part of the Coin 3D visualization library. 00007 * Copyright (C) by Kongsberg Oil & Gas Technologies. 00008 * 00009 * This library is free software; you can redistribute it and/or 00010 * modify it under the terms of the GNU General Public License 00011 * ("GPL") version 2 as published by the Free Software Foundation. 00012 * See the file LICENSE.GPL at the root directory of this source 00013 * distribution for additional information about the GNU GPL. 00014 * 00015 * For using Coin with software that can not be combined with the GNU 00016 * GPL, and for taking advantage of the additional benefits of our 00017 * support services, please contact Kongsberg Oil & Gas Technologies 00018 * about acquiring a Coin Professional Edition License. 00019 * 00020 * See http://www.coin3d.org/ for more information. 00021 * 00022 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY. 00023 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org 00024 * 00025 \**************************************************************************/ 00026 00027 #include <Inventor/C/basic.h> 00028 00029 #ifdef __cplusplus 00030 extern "C" { 00031 #endif /* __cplusplus */ 00032 00033 /* ********************************************************************** */ 00034 00035 typedef struct cc_list cc_list; 00036 00037 COIN_DLL_API cc_list * cc_list_construct(void); 00038 COIN_DLL_API cc_list * cc_list_construct_sized(int size); 00039 COIN_DLL_API cc_list * cc_list_clone(cc_list * list); 00040 COIN_DLL_API void cc_list_destruct(cc_list * list); 00041 00042 COIN_DLL_API void cc_list_append(cc_list * list, void * item); 00043 COIN_DLL_API int cc_list_find(cc_list * list, void * item); 00044 COIN_DLL_API void cc_list_insert(cc_list * list, void * item, int pos); 00045 COIN_DLL_API void cc_list_remove(cc_list * list, int pos); 00046 COIN_DLL_API void cc_list_remove_item(cc_list * list, void * item); 00047 COIN_DLL_API void cc_list_remove_fast(cc_list * list, int pos); 00048 COIN_DLL_API void cc_list_fit(cc_list * list); 00049 COIN_DLL_API void cc_list_truncate(cc_list * list, int length); 00050 COIN_DLL_API void cc_list_truncate_fit(cc_list * list, int length); 00051 00052 COIN_DLL_API int cc_list_get_length(cc_list * list); 00053 COIN_DLL_API void ** cc_list_get_array(cc_list * list); 00054 COIN_DLL_API void * cc_list_get(cc_list * list, int itempos); 00055 00056 COIN_DLL_API void cc_list_push(cc_list * list, void * item); 00057 COIN_DLL_API void * cc_list_pop(cc_list * list); 00058 00059 /* ********************************************************************** */ 00060 00061 #ifdef __cplusplus 00062 } /* extern "C" */ 00063 #endif /* __cplusplus */ 00064 00065 #endif /* ! CC_LIST_H */
Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.
Generated on Sun May 1 2011 02:58:20 for Coin by Doxygen 1.7.3.