Graph Convolutional Branch and Bound v1.0.0
A TSP solver that combines a graph convolutional network with a 1-Tree branch-and-bound.
Loading...
Searching...
No Matches
Functions
list_iterator.h File Reference

The declaration of the functions to manipulate the ListIterator. More...

#include "linked_list.h"

Go to the source code of this file.

Functions

ListIteratorcreate_list_iterator (List *list)
 Used for the creation of a new ListIterator.
 
bool is_list_iterator_valid (ListIterator *iterator)
 Used to check if the ListIterator is valid.
 
void * get_current_list_iterator_element (ListIterator *iterator)
 Method used to get the current DllElem of an ListIterator.
 
void list_iterator_next (ListIterator *iterator)
 Used to move the ListIterator to the next value of the object.
 
void * list_iterator_get_next (ListIterator *iterator)
 Method that retrieves the current DllElem of an ListIterator and moves the pointer to the next object.
 
void delete_list_iterator (ListIterator *iterator)
 Delete the ListIterator given.
 

Detailed Description

The declaration of the functions to manipulate the ListIterator.

Authors
Lorenzo Sciandra, Stefano Vittorio Porta and Ivan Spada

This is a double linked List implementation that we have realized for an university project.

Version
1.0.0
Date
2019-07-9

Repo: https://gitlab.com/Stefa168/laboratorio-algoritmi-2018-19/

Definition in file list_iterator.h.

Function Documentation

◆ create_list_iterator()

ListIterator * create_list_iterator ( List list)

Used for the creation of a new ListIterator.

Parameters
TheList that the new ListIterator will point.
Returns
A new ListIterator.

Definition at line 18 of file list_iterator.c.

◆ delete_list_iterator()

void delete_list_iterator ( ListIterator iterator)

Delete the ListIterator given.

Parameters
AnListIterator.

Definition at line 51 of file list_iterator.c.

◆ get_current_list_iterator_element()

void * get_current_list_iterator_element ( ListIterator iterator)

Method used to get the current DllElem of an ListIterator.

Parameters
AnListIterator.
Returns
A pointer to the current DllElem.

Definition at line 30 of file list_iterator.c.

◆ is_list_iterator_valid()

bool is_list_iterator_valid ( ListIterator iterator)

Used to check if the ListIterator is valid.

Parameters
TheIterator we want to analyze.
Returns
true if it's valid, false otherwise.

Definition at line 35 of file list_iterator.c.

◆ list_iterator_get_next()

void * list_iterator_get_next ( ListIterator iterator)

Method that retrieves the current DllElem of an ListIterator and moves the pointer to the next object.

Parameters
iteratorThe ListIterator to use.
Returns
The currently pointed object.

Definition at line 56 of file list_iterator.c.

◆ list_iterator_next()

void list_iterator_next ( ListIterator iterator)

Used to move the ListIterator to the next value of the object.

Parameters
lThe ListIterator considered.

Definition at line 40 of file list_iterator.c.