array

array

Functions

Types and Values

typedef ArrayData
typedef ArrayError
  Array

Description

Functions

ARRAY()

#define             ARRAY(type)

ARRAY2()

#define             ARRAY2(type, name)

ARRAY3()

#define             ARRAY3(type, name, prefix)

ArrayFilter ()

bool
(*ArrayFilter) (ArrayData *value,
                UserData *data);

ArrayFilterSwap ()

bool
(*ArrayFilterSwap) (UserData *data,
                    ArrayData *value);

ArrayForeach ()

void
(*ArrayForeach) (ArrayData *value,
                 UserData *data);

ArrayForeachSwap ()

void
(*ArrayForeachSwap) (UserData *data,
                     ArrayData *value);

array_new ()

Array *
array_new (size_t size);

array_new_copy ()

Array *
array_new_copy (Array const *from);

array_new_filter ()

Array *
array_new_filter (Array const *from,
                  ArrayFilter func,
                  UserData *data);

array_new_filter_swap ()

Array *
array_new_filter_swap (Array const *from,
                       ArrayFilterSwap func,
                       UserData *data);

array_new_type()

# define array_new_type(object) array_new(sizeof(type))

array_delete ()

void
array_delete (Array *array);

array_count ()

size_t
array_count (Array const *array);

array_get ()

void *
array_get (Array const *array,
           size_t pos);

array_get_copy ()

ArrayError
array_get_copy (Array const *array,
                size_t pos,
                ArrayData *value);

array_get_size ()

size_t
array_get_size (Array const *array);

array_set ()

ArrayError
array_set (Array *array,
           size_t pos,
           ArrayData *value);

array_append ()

ArrayError
array_append (Array *array,
              ArrayData *value);

array_copy ()

ArrayError
array_copy (Array *array,
            Array const *from);

array_insert ()

ArrayError
array_insert (Array *array,
              size_t pos,
              ArrayData *value);

array_prepend ()

ArrayError
array_prepend (Array *array,
               ArrayData *value);

array_remove_pos ()

ArrayError
array_remove_pos (Array *array,
                  size_t pos);

array_filter ()

void
array_filter (Array *array,
              ArrayFilter func,
              UserData *data);

array_filter_swap ()

void
array_filter_swap (Array *array,
                   ArrayFilter func,
                   UserData *data);

array_foreach ()

void
array_foreach (Array const *array,
               ArrayForeachSwap func,
               UserData *data);

array_foreach_swap ()

void
array_foreach_swap (Array const *array,
                    ArrayForeachSwap func,
                    UserData *data);

Types and Values

ArrayData

typedef void ArrayData;

ArrayError

typedef int ArrayError;

Array

typedef struct _Array Array;