| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

list.h
1 #ifndef CC_LIST_H
2 #define CC_LIST_H
3
4 /**************************************************************************\
5 *
6 * This file is part of the Coin 3D visualization library.
7 * Copyright (C) by Kongsberg Oil & Gas Technologies.
8 *
9 * This library is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * ("GPL") version 2 as published by the Free Software Foundation.
12 * See the file LICENSE.GPL at the root directory of this source
13 * distribution for additional information about the GNU GPL.
14 *
15 * For using Coin with software that can not be combined with the GNU
16 * GPL, and for taking advantage of the additional benefits of our
17 * support services, please contact Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, NORWAY.
23 * http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24 *
25 \**************************************************************************/
26
27 #include <Inventor/C/basic.h>
28
29 #ifdef __cplusplus
30 extern "C" {
31 #endif /* __cplusplus */
32
33 /* ********************************************************************** */
34
35 typedef struct cc_list cc_list;
36
37 COIN_DLL_API cc_list * cc_list_construct(void);
38 COIN_DLL_API cc_list * cc_list_construct_sized(int size);
39 COIN_DLL_API cc_list * cc_list_clone(cc_list * list);
40 COIN_DLL_API void cc_list_destruct(cc_list * list);
41
42 COIN_DLL_API void cc_list_append(cc_list * list, void * item);
43 COIN_DLL_API int cc_list_find(cc_list * list, void * item);
44 COIN_DLL_API void cc_list_insert(cc_list * list, void * item, int pos);
45 COIN_DLL_API void cc_list_remove(cc_list * list, int pos);
46 COIN_DLL_API void cc_list_remove_item(cc_list * list, void * item);
47 COIN_DLL_API void cc_list_remove_fast(cc_list * list, int pos);
48 COIN_DLL_API void cc_list_fit(cc_list * list);
49 COIN_DLL_API void cc_list_truncate(cc_list * list, int length);
50 COIN_DLL_API void cc_list_truncate_fit(cc_list * list, int length);
51
52 COIN_DLL_API int cc_list_get_length(cc_list * list);
53 COIN_DLL_API void ** cc_list_get_array(cc_list * list);
54 COIN_DLL_API void * cc_list_get(cc_list * list, int itempos);
55
56 COIN_DLL_API void cc_list_push(cc_list * list, void * item);
57 COIN_DLL_API void * cc_list_pop(cc_list * list);
58
59 /* ********************************************************************** */
60
61 #ifdef __cplusplus
62 } /* extern "C" */
63 #endif /* __cplusplus */
64
65 #endif /* ! CC_LIST_H */

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.