Open source remastering of the Freespace 2 engine
factor_table Class Reference

Public Member Functions

 factor_table (size_t size=6)
 ~factor_table ()
size_t getNext (size_t n, size_t current)

Detailed Description

Natural number factor lookup class.

Definition at line 66 of file keycontrol.cpp.

Constructor & Destructor Documentation

factor_table::factor_table ( size_t  size = 6)


sizeThe desired initial size of the lookup table.

Definition at line 110 of file keycontrol.cpp.

factor_table::~factor_table ( )


Definition at line 115 of file keycontrol.cpp.

Member Function Documentation

size_t factor_table::getNext ( size_t  n,
size_t  current 

Returns the next natural number factor for the given number and current factor.

maximumThe number to lookup the next natural number factor for.
currentThe current natural number factor.
A natural number factor.

Definition at line 117 of file keycontrol.cpp.

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