FreeNOS
|
Generate test data for integers. More...
#include <TestInt.h>
Public Member Functions | |
TestInt (T min, T max) | |
Constructor. More... | |
virtual T | random (Size count=1) |
Get random test value(s). More... | |
virtual T | unique (Size count=1) |
Get unique random test value(s). More... | |
int | random (Size count) |
Get random test value(s). More... | |
int | unique (Size count) |
Get unique random test value(s). More... | |
uint | random (Size count) |
Get random test value(s). More... | |
uint | unique (Size count) |
Get unique random test value(s). More... | |
Public Member Functions inherited from TestData< T > | |
TestData () | |
Constructor. More... | |
virtual | ~TestData () |
Destructor. More... | |
void | seed () |
Initialize the random number generator. More... | |
Size | count () const |
The number of generated values. More... | |
T & | get (Size index) |
Retrieve previously random generated test data by index. More... | |
T & | operator[] (Size index) |
Retrieve previously random generated test data by index. More... | |
Private Attributes | |
T | m_max |
Maximum value. More... | |
T | m_min |
Minimum value. More... | |
Additional Inherited Members | |
Protected Attributes inherited from TestData< T > | |
Vector< T > | m_values |
Vector with generated values. More... | |
Generate test data for integers.
Constructor.
Definition at line 41 of file TestInt.h.
References TestInt< T >::m_max, and TestInt< T >::m_min.
Get random test value(s).
count | Number or values to generate. |
Implements TestData< T >.
Definition at line 74 of file TestInt.h.
References random().
Get random test value(s).
count | Number or values to generate. |
Implements TestData< T >.
Definition at line 116 of file TestInt.h.
References random().
Get random test value(s).
count | Number or values to generate. |
Implements TestData< T >.
Referenced by TestChar< T >::random().
Get unique random test value(s).
count | Number of unique values to generate. |
Implements TestData< T >.
Definition at line 91 of file TestInt.h.
References random().
Get unique random test value(s).
count | Number of unique values to generate. |
Implements TestData< T >.
Definition at line 133 of file TestInt.h.
References random().
Get unique random test value(s).
count | Number of unique values to generate. |
Implements TestData< T >.
|
private |
|
private |