|
Robot Agent
1.0
|
#include <stdio.h>#include <stdlib.h>#include "doublylinkedlist.h"#include "def.h"#include "robot.h"#include "pheromone.h"Go to the source code of this file.
Functions | |
| doublylinkedlist_t * | doublylinkedlist_init (void) |
| void | doublylinkedlist_destroy (doublylinkedlist_t *dlls) |
| void | doublylinkedlist_insert_after (doublylinkedlist_t *dlls, doublylinkedlist_node_t *node, void *data, int data_type) |
| void | doublylinkedlist_insert_before (doublylinkedlist_t *dlls, doublylinkedlist_node_t *node, void *data, int data_type) |
| void | doublylinkedlist_insert_beginning (doublylinkedlist_t *dlls, void *data, int data_type) |
| void | doublylinkedlist_insert_end (doublylinkedlist_t *dlls, void *data, int data_type) |
| void | doublylinkedlist_remove (doublylinkedlist_t *dlls, doublylinkedlist_node_t *node, void *data, int *data_type) |
| void | doublylinkedlist_delete (doublylinkedlist_t *dlls, doublylinkedlist_node_t *node) |
| void | doublylinkedlist_empty (doublylinkedlist_t *dlls) |
| void doublylinkedlist_delete | ( | doublylinkedlist_t * | dlls, |
| doublylinkedlist_node_t * | node | ||
| ) |
Delete a node from the doubly linked list structure
| dlls | Pointer to doubly linked list structure |
| node | Pointer to node structure which should be removed |
Definition at line 340 of file doublylinkedlist.c.
| void doublylinkedlist_destroy | ( | doublylinkedlist_t * | dlls | ) |
Deinitialize doubly linked list
| dll | Pointer to doubly linked list structure |
Definition at line 47 of file doublylinkedlist.c.
| void doublylinkedlist_empty | ( | doublylinkedlist_t * | dlls | ) |
Empty the doubly linked list
| dlls | Pointer to doubly linked list structure |
Definition at line 379 of file doublylinkedlist.c.
| doublylinkedlist_t* doublylinkedlist_init | ( | void | ) |
Initialize doubly linked list
Definition at line 29 of file doublylinkedlist.c.
| void doublylinkedlist_insert_after | ( | doublylinkedlist_t * | dlls, |
| doublylinkedlist_node_t * | node, | ||
| void * | data, | ||
| int | data_type | ||
| ) |
Add a new node after specified node
| dlls | Pointer to doubly linked list structure |
| node | Pointer to node structure after which a new node should be placed |
| data | Pointer to data structure |
| data_type | Data type |
Definition at line 63 of file doublylinkedlist.c.
| void doublylinkedlist_insert_before | ( | doublylinkedlist_t * | dlls, |
| doublylinkedlist_node_t * | node, | ||
| void * | data, | ||
| int | data_type | ||
| ) |
Add a new node before specified node
| dlls | Pointer to doubly linked list structure |
| node | Pointer to node structure before which a new node should be placed |
| data | Pointer to data structure |
| data_type | Data type |
Definition at line 134 of file doublylinkedlist.c.
| void doublylinkedlist_insert_beginning | ( | doublylinkedlist_t * | dlls, |
| void * | data, | ||
| int | data_type | ||
| ) |
Add a new node in the beginning of the doubly linked list
| dlls | Pointer to doubly linked list structure |
| data | Pointer to data structure |
| data_type | Data type |
Definition at line 205 of file doublylinkedlist.c.
| void doublylinkedlist_insert_end | ( | doublylinkedlist_t * | dlls, |
| void * | data, | ||
| int | data_type | ||
| ) |
Add a new node in the end of the doubly linked list
| dlls | Pointer to doubly linked list structure |
| data | Pointer to data structure |
| data_type | Data type |
Definition at line 275 of file doublylinkedlist.c.
| void doublylinkedlist_remove | ( | doublylinkedlist_t * | dlls, |
| doublylinkedlist_node_t * | node, | ||
| void * | data, | ||
| int * | data_type | ||
| ) |
Remove a node and retrieve the data from the doubly linked list structure
| dlls | Pointer to doubly linked list structure |
| node | Pointer to node structure which should be removed |
| data | Pointer to memory to where save data structure |
| data_type | Pointer to memory where to save data type |
Definition at line 298 of file doublylinkedlist.c.
1.8.5