Main Page | Modules | Alphabetical List | Data Structures | File List | Data Fields | Globals

_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.

Referenced by cp_db_connection_pool_create().

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.

Referenced by cp_db_connection_pool_shutdown().

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 Sat Dec 1 10:25:30 2007 for cprops by  doxygen 1.3.9.1