Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

listwrappers.h File Reference

C wrappers for STL lists, e.g. list_int. More...

#include <list>

Go to the source code of this file.

list_int

typedef void *(* list_int_cb )(int value, void *user_data)
void list_int_delete (list_int *l)
void list_int_iter_delete (list_int_iter *l)
int list_int_size (const list_int *l)
list_int_iterlist_int_begin (const list_int *l)
list_int_iterlist_int_end (const list_int *l)
int list_int_iter_get (const list_int_iter *l)
void list_int_iter_next (list_int_iter *l)
int list_int_iter_equal (const list_int_iter *l1, const list_int_iter *l2)
void * list_int_foreach (const list_int *list, list_int_cb func, void *user_data)

Typedefs

typedef std::list< int > list_int
typedef std::list< int
>::const_iterator 
list_int_iter


Detailed Description

C wrappers for STL lists, e.g. list_int.


Typedef Documentation

typedef std::list<int> list_int
 

typedef void*(* list_int_cb)(int value, void *user_data)
 

Callback function for list_int_foreach.

typedef std::list<int>::const_iterator list_int_iter
 


Function Documentation

list_int_iter* list_int_begin const list_int   l
 

void list_int_delete list_int   l
 

list_int_iter* list_int_end const list_int   l
 

void* list_int_foreach const list_int   list,
list_int_cb    func,
void *    user_data
 

Traverses the list, calling the callback function 'func' on each list element. Traversal will stop when 'func' returns a non-NULL value, and the routine will return with that value. Otherwise the routine will return NULL.

Parameters:
list  The list to traverse.
func  The function to be called with each list element.
user_data  A pointer passed on to the function 'func'.
Returns :
The non-NULL pointer returned by 'func' as soon as it returns one. Otherwise (i.e. 'func' always returns NULL) returns NULL.
Author:
Christian Stimming <stimming@tuhh.de>

void list_int_iter_delete list_int_iter   l
 

int list_int_iter_equal const list_int_iter   l1,
const list_int_iter   l2
 

int list_int_iter_get const list_int_iter   l
 

void list_int_iter_next list_int_iter   l
 

int list_int_size const list_int   l
 


Generated on Mon Jun 23 13:41:08 2003 for openhbci by doxygen1.2.17