Project Euler Solutions
Public Member Functions | Public Attributes | Private Member Functions | Private Attributes | List of all members
c::include::digits::digit_counter Struct Reference

#include <digits.h>

Inheritance diagram for c::include::digits::digit_counter:
Inheritance graph
[legend]
Collaboration diagram for c::include::digits::digit_counter:
Collaboration graph
[legend]

Public Member Functions

digit_counter digits (uintmax_t n)
 

Public Attributes

unsigned char * digits
 
size_t idx
 
- Public Attributes inherited from c::include::iterator::Iterator
bool exhausted: 1
 An indicator that the iterator has stopped. More...
 
bool started: 1
 An indicator that the iterator has started. More...
 
bool phase: 1
 An indicator that changes each time the iterator moves. More...
 

Private Member Functions

static unsigned char advance_digit_counter (digit_counter *dc)
 
void free_digit_counter (digit_counter *dc)
 

Private Attributes

unsigned char(*const iterator_function )(digit_counter *it)
 The pointer to the iteration function. More...
 
void(*const destructor )(void *it)
 The pointer to the destructor function. More...
 

Additional Inherited Members

Member Function Documentation

static unsigned char advance_digit_counter ( digit_counter dc)
private

Here is the caller graph for this function:

digit_counter digits ( uintmax_t  n)

Here is the call graph for this function:

void free_digit_counter ( digit_counter dc)
private

Here is the caller graph for this function:

Member Data Documentation

void(*const c::include::digits::digit_counter::destructor) (void *it)
private

The pointer to the destructor function.

See also
free_iterator
unsigned char* c::include::digits::digit_counter::digits
size_t c::include::digits::digit_counter::idx
unsigned char(*const c::include::digits::digit_counter::iterator_function) (digit_counter *it)
private

The pointer to the iteration function.

See also
next

The documentation for this struct was generated from the following file: