Axis2/C: axutil_array_list.h Source File

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

- Search for |

# axutil_array_list.h

Go to the documentation of this file.

    00001
    00002 /*
    00003  * Licensed to the Apache Software Foundation (ASF) under one or more
    00004  * contributor license agreements.  See the NOTICE file distributed with
    00005  * this work for additional information regarding copyright ownership.
    00006  * The ASF licenses this file to You under the Apache License, Version 2.0
    00007  * (the "License"); you may not use this file except in compliance with
    00008  * the License.  You may obtain a copy of the License at
    00009  *
    00010  *      http://www.apache.org/licenses/LICENSE-2.0
    00011  *
    00012  * Unless required by applicable law or agreed to in writing, software
    00013  * distributed under the License is distributed on an "AS IS" BASIS,
    00014  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    00015  * See the License for the specific language governing permissions and
    00016  * limitations under the License.
    00017  */
    00018
    00019 #ifndef AXUTIL_ARRAY_LIST_H
    00020 #define AXUTIL_ARRAY_LIST_H
    00021
    00034 #include <axutil_utils_defines.h>
    00035 #include <axutil_env.h>
    00036
    00037 #ifdef __cplusplus
    00038 extern "C"
    00039 {
    00040 #endif
    00041
    00042     static const int AXIS2_ARRAY_LIST_DEFAULT_CAPACITY = 16;
    00043
    00047     typedef struct axutil_array_list axutil_array_list_t;
    00048
    00055     AXIS2_EXTERN axutil_array_list_t *AXIS2_CALL
    00056     axutil_array_list_create(
    00057         const axutil_env_t * env,
    00058         int capacity);
    00059
    00065     AXIS2_EXTERN void AXIS2_CALL
    00066     axutil_array_list_free_void_arg(
    00067         void *array_list,
    00068         const axutil_env_t * env);
    00069
    00079     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00080     axutil_array_list_ensure_capacity(
    00081         struct axutil_array_list *array_list,
    00082         const axutil_env_t * env,
    00083         int min_capacity);
    00084
    00091     AXIS2_EXTERN int AXIS2_CALL
    00092     axutil_array_list_size(
    00093         struct axutil_array_list *array_list,
    00094         const axutil_env_t * env);
    00095
    00102     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00103     axutil_array_list_is_empty(
    00104         struct axutil_array_list *array_list,
    00105         const axutil_env_t * env);
    00106
    00114     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00115     axutil_array_list_contains(
    00116         struct axutil_array_list *array_list,
    00117         const axutil_env_t * env,
    00118         void *e);
    00119
    00129     AXIS2_EXTERN int AXIS2_CALL
    00130     axutil_array_list_index_of(
    00131         struct axutil_array_list *array_list,
    00132         const axutil_env_t * env,
    00133         void *e);
    00134
    00142     AXIS2_EXTERN void *AXIS2_CALL
    00143     axutil_array_list_get(
    00144         struct axutil_array_list *array_list,
    00145         const axutil_env_t * env,
    00146         int index);
    00147
    00157     AXIS2_EXTERN void *AXIS2_CALL
    00158     axutil_array_list_set(
    00159         struct axutil_array_list *array_list,
    00160         const axutil_env_t * env,
    00161         int index,
    00162         void *e);
    00163
    00172     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00173     axutil_array_list_add(
    00174         struct axutil_array_list *array_list,
    00175         const axutil_env_t * env,
    00176         const void *e);
    00177
    00188     AXIS2_EXTERN axis2_status_t AXIS2_CALL
    00189     axutil_array_list_add_at(
    00190         struct axutil_array_list *array_list,
    00191         const axutil_env_t * env,
    00192         const int index,
    00193         const void *e);
    00194
    00202     AXIS2_EXTERN void *AXIS2_CALL
    00203     axutil_array_list_remove(
    00204         struct axutil_array_list *array_list,
    00205         const axutil_env_t * env,
    00206         int index);
    00207
    00215     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00216
    00217     axutil_array_list_check_bound_inclusive(
    00218         struct axutil_array_list *array_list,
    00219         const axutil_env_t * env,
    00220         int index);
    00221
    00229     AXIS2_EXTERN axis2_bool_t AXIS2_CALL
    00230
    00231     axutil_array_list_check_bound_exclusive(
    00232         struct axutil_array_list *array_list,
    00233         const axutil_env_t * env,
    00234         int index);
    00235
    00241     AXIS2_EXTERN void AXIS2_CALL
    00242     axutil_array_list_free(
    00243         struct axutil_array_list *array_list,
    00244         const axutil_env_t * env);
    00245
    00246 #ifdef __cplusplus
    00247 }
    00248 #endif
    00249
    00250 #endif                          /* AXIS2_ARRAY_LIST_H */