Coin Logo http://www.sim.no/
http://www.coin3d.org/

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
30extern "C" {
31#endif /* __cplusplus */
32
33/* ********************************************************************** */
34
35typedef struct cc_list cc_list;
36
37COIN_DLL_API cc_list * cc_list_construct(void);
38COIN_DLL_API cc_list * cc_list_construct_sized(int size);
39COIN_DLL_API cc_list * cc_list_clone(cc_list * list);
40COIN_DLL_API void cc_list_destruct(cc_list * list);
41
42COIN_DLL_API void cc_list_append(cc_list * list, void * item);
43COIN_DLL_API int cc_list_find(cc_list * list, void * item);
44COIN_DLL_API void cc_list_insert(cc_list * list, void * item, int pos);
45COIN_DLL_API void cc_list_remove(cc_list * list, int pos);
46COIN_DLL_API void cc_list_remove_item(cc_list * list, void * item);
47COIN_DLL_API void cc_list_remove_fast(cc_list * list, int pos);
48COIN_DLL_API void cc_list_fit(cc_list * list);
49COIN_DLL_API void cc_list_truncate(cc_list * list, int length);
50COIN_DLL_API void cc_list_truncate_fit(cc_list * list, int length);
51
52COIN_DLL_API int cc_list_get_length(cc_list * list);
53COIN_DLL_API void ** cc_list_get_array(cc_list * list);
54COIN_DLL_API void * cc_list_get(cc_list * list, int itempos);
55
56COIN_DLL_API void cc_list_push(cc_list * list, void * item);
57COIN_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.

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.