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

hbcistringlist.h File Reference

C wrapper for list of strings, list_string. More...

#include <string>
#include <list>

Go to the source code of this file.

Typedefs

typedef list< string > list_string
typedef list< string >::const_iterator list_string_iter
typedef void *(* list_string_cb )(const char *string, void *user_data)

Functions

void list_string_delete (list_string *l)
void list_string_iter_delete (list_string_iter *l)
int list_string_size (const list_string *l)
list_string_iterlist_string_begin (const list_string *l)
list_string_iterlist_string_end (const list_string *l)
const char * list_string_iter_get (const list_string_iter *l)
void list_string_iter_next (list_string_iter *l)
int list_string_iter_equal (const list_string_iter *l1, const list_string_iter *l2)
void * list_string_foreach (const list_string *list, list_string_cb func, void *user_data)
char * list_string_concat (const list_string *list)
char * list_string_concat_delim (const list_string *list, const char *delim)


Detailed Description

C wrapper for list of strings, list_string.


Typedef Documentation

typedef list<string> list_string
 

typedef void*(* list_string_cb)(const char *string, void *user_data)
 

Callback function for list_string_foreach.

typedef list<string>::const_iterator list_string_iter
 


Function Documentation

list_string_iter* list_string_begin const list_string   l
 

char* list_string_concat const list_string   list
 

char* list_string_concat_delim const list_string   list,
const char *    delim
 

void list_string_delete list_string   l
 

list_string_iter* list_string_end const list_string   l
 

void* list_string_foreach const list_string   list,
list_string_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_string_iter_delete list_string_iter   l
 

int list_string_iter_equal const list_string_iter   l1,
const list_string_iter   l2
 

const char* list_string_iter_get const list_string_iter   l
 

void list_string_iter_next list_string_iter   l
 

int list_string_size const list_string   l
 


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