_cp_vector Struct Reference

#include <vector.h>


Data Fields

void ** mem
int size
int head
int tail
int mode
cp_copy_fn copy_item
cp_destructor_fn free_item
cp_lock * lock


Detailed Description

A simple 'safe array' implementation.

Definition at line 14 of file vector.h.


Field Documentation

cp_copy_fn _cp_vector::copy_item

item copy function

Definition at line 22 of file vector.h.

cp_destructor_fn _cp_vector::free_item

item destructor function

Definition at line 23 of file vector.h.

int _cp_vector::head

index of 1st element

Definition at line 18 of file vector.h.

cp_lock* _cp_vector::lock

rwlock

Definition at line 24 of file vector.h.

void** _cp_vector::mem

Pointer to memory

Definition at line 16 of file vector.h.

int _cp_vector::mode

collection mode

Definition at line 21 of file vector.h.

int _cp_vector::size

size of vector (element count)

Definition at line 17 of file vector.h.

int _cp_vector::tail

index of Nth element

Definition at line 19 of file vector.h.


The documentation for this struct was generated from the following file:
Generated on Mon Dec 5 23:00:23 2011 for cprops by  doxygen 1.4.7