Go to the source code of this file.
| Data Structures | |
| struct | MrVector | 
| Typedefs | |
| typedef MrVector | MrVector | 
| typedef void(* | mr_func_apply_t )(void *) | 
| typedef void *(* | mr_func_init_t )(void) | 
| typedef short int(* | mr_func_predicat_t )(void *, void *) | 
| Functions | |
| MrVector * | mr_vector_new () | 
| MrVector * | mr_vector_new_init (unsigned int n, mr_func_init_t func) | 
| MrVector * | mr_vector_new_n (unsigned int n) | 
| void | mr_vector_free (void *v) | 
| void * | mr_vector_get (MrVector *v, unsigned int pos) | 
| void | mr_vector_set (MrVector *v, unsigned int pos, void *data) | 
| short int | mr_vector_resize (MrVector *v, unsigned int n) | 
| short int | mr_vector_append (MrVector *v, void *data) | 
| short int | mr_vector_append_vector (MrVector *dst, MrVector *src) | 
| short int | mr_vector_remove (MrVector *v, unsigned int pos) | 
| short int | mr_vector_remove_range (MrVector *v, unsigned int start, unsigned int end) | 
| void | mr_vector_apply (MrVector *v, mr_func_apply_t func) | 
| void | mr_vector_apply_range (MrVector *v, mr_func_apply_t func, unsigned int start, unsigned int end) | 
| void | mr_vector_fill (MrVector *v, void *data) | 
| void | mr_vector_init (MrVector *v, mr_func_init_t func) | 
| void | mr_vector_sort (MrVector *v, mr_func_predicat_t func) | 
| unsigned int | mr_vector_contain (MrVector *v, void *p) | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | 
| 
 | ||||||||||||
| Append a new element at the end of the vector. Returns 0 in case of errors. | 
| 
 | ||||||||||||
| Append the elements of the second vector to the first one. Returns 0 in case of errors. | 
| 
 | ||||||||||||
| Apply a simple function on each vector element. it's equivalent to apply the range version to [O,SIZE-1] | 
| 
 | ||||||||||||||||||||
| Apply a simple function on a range of vector elements. | 
| 
 | ||||||||||||
| Test if p is conatined in the vector return -1 or the index of the first occurency | 
| 
 | ||||||||||||
| Set all the data element with specified data. | 
| 
 | 
| Free a vector that is remove all its element. DO NOT FREE THE DATA CONTAINED IN EACH ELEMENT | 
| 
 | ||||||||||||
| Get a particular element. | 
| 
 | ||||||||||||
| Set all the data element widh specified function. | 
| 
 | 
| Allocate a new empty vector. | 
| 
 | ||||||||||||
| Allocate a new vector with elements inititalized by a specified function. | 
| 
 | 
| Allocate a new vector with a pre-allocated number of elements. | 
| 
 | ||||||||||||
| Remove an element from the vector. Returns 0 in case of errors. it's equivalent to apply the range version to [POS,POS] | 
| 
 | ||||||||||||||||
| Remove a range of element from the vector. Returns 0 in case of errors. | 
| 
 | ||||||||||||
| Resize a previously created vector. Returns 0 in case of errors. New allocated elements have no default values. | 
| 
 | ||||||||||||||||
| Set a particular element. | 
| 
 | ||||||||||||
| Sort vector with a the predicat function | 
 1.4.4
 1.4.4