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

hashlist.h File Reference

#include "common.h"
#include "config.h"
#include "collection.h"
#include "hashtable.h"

Go to the source code of this file.

Data Structures

struct  _cp_hashlist_entry
struct  _cp_hashlist
struct  _cp_hashlist_iterator


Detailed Description

a mapping traversable by iterator - who could want more. access elements sequentially or by key.

Definition in file hashlist.h.


Define Documentation

#define cp_hashlist_create size_hint,
hash_fn,
compare_fn   ) 
 

Value:

cp_hashlist_create_by_option(0, (size_hint), \
                                     (hash_fn), (compare_fn), \
                                     NULL, NULL, NULL, NULL)
default constructor

Definition at line 116 of file hashlist.h.

Referenced by cp_httpclient_ctl_create(), and cp_thread_pool_create().

#define cp_hashlist_rdlock list   )     cp_hashlist_lock((list), COLLECTION_LOCK_READ)
 

Set a read lock on the object.

Definition at line 564 of file hashlist.h.

#define cp_hashlist_wrlock list   )     cp_hashlist_lock((list), COLLECTION_LOCK_WRITE)
 

Set a write lock on the object.

Definition at line 569 of file hashlist.h.


Typedef Documentation

typedef CPROPS_DLL struct _cp_hashlist cp_hashlist
 

Main object that holds the endpoints of the hash-list and the hash-table.

It also stores the hash, compare and copy methods and the default operation mode.

Referenced by cp_hashlist_create_by_mode(), and cp_hashlist_create_by_option().

typedef CPROPS_DLL struct _cp_hashlist_iterator cp_hashlist_iterator
 

iterator for hashlists

Referenced by cp_hashlist_create_iterator(), cp_socket_delete(), cp_socket_stop_all(), and cp_thread_pool_stop().


Generated on Sat Dec 1 10:25:30 2007 for cprops by  doxygen 1.3.9.1