Freeciv-3.2
Loading...
Searching...
No Matches
Functions
iterator.c File Reference
#include "shared.h"
#include "iterator.h"

Go to the source code of this file.

Functions

static void invalid_iter_next (struct iterator *it)
 
static voidinvalid_iter_get (const struct iterator *it)
 
static bool invalid_iter_valid (const struct iterator *it)
 
struct iteratorinvalid_iter_init (struct iterator *it)
 

Function Documentation

◆ invalid_iter_get()

static void * invalid_iter_get ( const struct iterator it)
static

'get' function implementation for an "invalid" iterator.

Definition at line 34 of file iterator.c.

Referenced by invalid_iter_init().

◆ invalid_iter_init()

struct iterator * invalid_iter_init ( struct iterator it)

Initializes the iterator vtable so that generic_iterate assumes that the iterator is invalid.

Definition at line 51 of file iterator.c.

Referenced by genhash_iter_init_common(), and startpos_iter_init().

◆ invalid_iter_next()

static void invalid_iter_next ( struct iterator it)
static

'next' function implementation for an "invalid" iterator.

Definition at line 26 of file iterator.c.

Referenced by invalid_iter_init().

◆ invalid_iter_valid()

static bool invalid_iter_valid ( const struct iterator it)
static

'valid' function implementation for an "invalid" iterator.

Definition at line 42 of file iterator.c.

Referenced by invalid_iter_init().