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

#include <factors.h>

Inheritance diagram for c::include::factors::factor_counter:
Inheritance graph
[legend]
Collaboration diagram for c::include::factors::factor_counter:
Collaboration graph
[legend]

Public Member Functions

factor_counter proper_divisors (uintmax_t target)
 
uintmax_t proper_divisor_count (uintmax_t target)
 

Public Attributes

uintmax_t target
 
uintmax_t current
 
- 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

uintmax_t advance_factor_counter (factor_counter *fc)
 

Private Attributes

uintmax_t(*const iterator_function )(factor_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

uintmax_t advance_factor_counter ( factor_counter fc)
private

Here is the caller graph for this function:

uintmax_t proper_divisor_count ( uintmax_t  target)

Here is the caller graph for this function:

factor_counter proper_divisors ( uintmax_t  target)

Here is the caller graph for this function:

Member Data Documentation

uintmax_t c::include::factors::factor_counter::current
void(*const c::include::factors::factor_counter::destructor) (void *it)
private

The pointer to the destructor function.

See also
free_iterator
uintmax_t(*const c::include::factors::factor_counter::iterator_function) (factor_counter *it)
private

The pointer to the iteration function.

See also
next
uintmax_t c::include::factors::factor_counter::target

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