|
QVisu
Qt-based visualization for smart homes
|
Go to the source code of this file.
Classes | |
| struct | vlc_array_t |
| struct | vlc_dictionary_entry_t |
| struct | vlc_dictionary_t |
Macros | |
| #define | INSERT_ELEM(p_ar, i_oldsize, i_pos, elem) |
| #define | REMOVE_ELEM(p_ar, i_size, i_pos) |
| #define | TAB_INIT(count, tab) |
| #define | TAB_CLEAN(count, tab) |
| #define | TAB_APPEND_CAST(cast, count, tab, p) |
| #define | TAB_APPEND(count, tab, p) TAB_APPEND_CAST( , count, tab, p ) |
| #define | TAB_FIND(count, tab, p, idx) |
| #define | TAB_REMOVE(count, tab, p) |
| #define | TAB_INSERT_CAST(cast, count, tab, p, index) |
| #define | TAB_INSERT(count, tab, p, index) TAB_INSERT_CAST( , count, tab, p, index ) |
| #define | BSEARCH(entries, count, elem, zetype, key, answer) |
| #define | _ARRAY_ALLOC(array, newsize) |
| #define | _ARRAY_GROW1(array) |
| #define | ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) |
| #define | DECL_ARRAY(type) |
| #define | TYPEDEF_ARRAY(type, name) typedef DECL_ARRAY(type) name; |
| #define | ARRAY_INIT(array) |
| #define | ARRAY_RESET(array) |
| #define | ARRAY_APPEND(array, elem) |
| #define | ARRAY_INSERT(array, elem, pos) |
| #define | _ARRAY_SHRINK(array) |
| #define | ARRAY_REMOVE(array, pos) |
| #define | ARRAY_VAL(array, pos) array.p_elems[pos] |
| #define | ARRAY_BSEARCH(array, elem, zetype, key, answer) BSEARCH( (array).p_elems, (array).i_size, elem, zetype, key, answer) |
| #define | FOREACH_ARRAY(item, array) |
| #define | FOREACH_END() } } |
Typedefs | |
| typedef struct vlc_array_t | vlc_array_t |
|
typedef struct vlc_dictionary_entry_t | vlc_dictionary_entry_t |
| typedef struct vlc_dictionary_t | vlc_dictionary_t |
This file defines functions, structures and macros for handling arrays in vlc
| #define _ARRAY_ALLOC | ( | array, | |
| newsize | |||
| ) |
| #define _ARRAY_GROW1 | ( | array | ) |
| #define _ARRAY_SHRINK | ( | array | ) |
| #define ARRAY_APPEND | ( | array, | |
| elem | |||
| ) |
| #define ARRAY_INIT | ( | array | ) |
| #define ARRAY_INSERT | ( | array, | |
| elem, | |||
| pos | |||
| ) |
| #define ARRAY_REMOVE | ( | array, | |
| pos | |||
| ) |
| #define ARRAY_RESET | ( | array | ) |
| #define BSEARCH | ( | entries, | |
| count, | |||
| elem, | |||
| zetype, | |||
| key, | |||
| answer | |||
| ) |
Binary search in a sorted array. The key must be comparable by < and >
| entries | array of entries |
| count | number of entries |
| elem | key to check within an entry (like .id, or ->i_id) |
| zetype | type of the key |
| key | value of the key |
| answer | index of answer within the array. -1 if not found |
| #define DECL_ARRAY | ( | type | ) |
| #define FOREACH_ARRAY | ( | item, | |
| array | |||
| ) |
| #define INSERT_ELEM | ( | p_ar, | |
| i_oldsize, | |||
| i_pos, | |||
| elem | |||
| ) |
Simple dynamic array handling. Array is realloced at each insert/removal
| #define REMOVE_ELEM | ( | p_ar, | |
| i_size, | |||
| i_pos | |||
| ) |
| #define TAB_APPEND_CAST | ( | cast, | |
| count, | |||
| tab, | |||
| p | |||
| ) |
| #define TAB_CLEAN | ( | count, | |
| tab | |||
| ) |
| #define TAB_FIND | ( | count, | |
| tab, | |||
| p, | |||
| idx | |||
| ) |
| #define TAB_INIT | ( | count, | |
| tab | |||
| ) |
| #define TAB_INSERT_CAST | ( | cast, | |
| count, | |||
| tab, | |||
| p, | |||
| index | |||
| ) |
| #define TAB_REMOVE | ( | count, | |
| tab, | |||
| p | |||
| ) |