Project Euler Solutions
Classes | Namespaces | Typedefs | Functions
iterator.h File Reference

An implementation of Python-like iterators and generators using macros to maintain static typing. More...

#include <stdbool.h>
#include <stdint.h>
#include "macros.h"
Include dependency graph for iterator.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  c::include::iterator::Iterator
 An implementation of Python-like iterators and generators in C. More...
 
struct  c::include::iterator::counter
 The reference struct for all iterators in this project. More...
 

Namespaces

 c::include::iterator
 

Typedefs

typedef struct Iterator c::include::iterator::Iterator
 
typedef struct counter c::include::iterator::counter
 

Functions

void c::include::iterator::no_destructor (void *it)
 
static uintmax_t c::include::iterator::iterate_counter (counter *i)
 
counter c::include::iterator::count_by (uintmax_t start, uintmax_t stop, intmax_t step)
 
counter c::include::iterator::count_in_range (uintmax_t start, uintmax_t stop)
 
counter c::include::iterator::count_to (uintmax_t stop)
 

Detailed Description

An implementation of Python-like iterators and generators using macros to maintain static typing.

Author
Gabe Appleton
Date
15 Oct 2019