Ne.app NeANT
The Ne.app NeANT User module of the NeANT distribution.
Main Page
Related Pages
Topics
Namespaces
Data Structures
Files
File List
Globals
EXTERNAL_HEADERS
RSL
examples
include
alg3.h
Go to the documentation of this file.
1
30
#ifndef ALG3_H_INCLUDED
31
#define ALG3_H_INCLUDED
32
33
#include <rw/_random.h>
34
35
class
iotaGenerator
36
{
37
public
:
38
iotaGenerator
(
int
iv) : current (iv)
39
{ }
40
int
operator ()
() {
41
return
current++;
42
}
43
private
:
44
int
current;
45
};
46
47
48
struct
RandomInteger
49
{
50
int
operator ()
(
int
m
) {
51
// using a proprietary algorithm
52
return
_RW::__rw_random (
m
);
53
}
54
};
55
56
#endif
// ALG3_H_INCLUDED
m
#define m
Definition
17.names.cpp:129
iotaGenerator
Definition
alg3.h:36
iotaGenerator::operator()
int operator()()
Definition
alg3.h:40
iotaGenerator::iotaGenerator
iotaGenerator(int iv)
Definition
alg3.h:38
RandomInteger
Definition
alg3.h:49
RandomInteger::operator()
int operator()(int m)
Definition
alg3.h:50
Generated by
1.9.8