#include "nusmv/core/utils/StreamMgr.h"
#include "nusmv/core/utils/defs.h"
Go to the source code of this file.
Data Structures | |
struct | DLiter |
Defines | |
#define | DL_LIST(x) ((DLlist_ptr) x) |
#define | DL_LIST_CHECK_INSTANCE(x) ( nusmv_assert(DL_LIST(x) != DL_LIST(NULL)) ) |
#define | DL_LIST_FOREACH(list, iter) for (iter = DLlist_first(list); !DLiter_is_end(iter); iter = DLiter_next(iter)) |
Typedefs | |
typedef struct DLlist_TAG * | DLlist_ptr |
typedef struct DLnode_TAG * | DLnode_ptr |
Functions | |
void | dl_list_testing_function (StreamMgr_ptr streams) |
This is a test function. | |
void * | DLiter_element (DLiter iter) |
Returns a value of a list element pointed by a provided iterator. | |
boolean | DLiter_is_end (DLiter iter) |
Returns true iff an iterator points past the last element of a list. | |
boolean | DLiter_is_first (DLiter iter) |
Returns true iff an iterator points to the first element of a list. | |
DLiter | DLiter_next (DLiter iter) |
Returns an iterator pointing to the next element of a list w.r.t. the element pointed by a provided iterator. | |
DLiter | DLiter_prev (DLiter iter) |
Returns an iterator pointing to the previous element of a list w.r.t. the element pointed by a provided iterator. |
#define DL_LIST | ( | x | ) | ((DLlist_ptr) x) |
#define DL_LIST_CHECK_INSTANCE | ( | x | ) | ( nusmv_assert(DL_LIST(x) != DL_LIST(NULL)) ) |
#define DL_LIST_FOREACH | ( | list, | |||
iter | ) | for (iter = DLlist_first(list); !DLiter_is_end(iter); iter = DLiter_next(iter)) |
typedef struct DLlist_TAG* DLlist_ptr |
typedef struct DLnode_TAG* DLnode_ptr |
void dl_list_testing_function | ( | StreamMgr_ptr | streams | ) |
This is a test function.
Prototype of this function is not defined anywhere. Thus to use it define the prototype where you want and then invoke this function. [MD] I do think this is a good idea. Functions must have a prototype. I added the declaration in the header.
void* DLiter_element | ( | DLiter | iter | ) |
Returns a value of a list element pointed by a provided iterator.
Precondition: this function can be applied only if DLiter_is_end(iter) returns false
Returns true iff an iterator points past the last element of a list.
The iterator must have been created with function DLlist_first, DLlist_end, DLlist_prev or DLlist_next
Returns true iff an iterator points to the first element of a list.
The iterator must have been created with function DLlist_first, DLlist_end, DLlist_next or DLlist_prev. If a list is empty then for any of its iterators this function will return false.
Returns an iterator pointing to the next element of a list w.r.t. the element pointed by a provided iterator.
Precondition: this function can be applied only if DLiter_is_end(iter) returns false
Returns an iterator pointing to the previous element of a list w.r.t. the element pointed by a provided iterator.
Precondition: this function can be applied only if DLiter_is_first(iter) returns false