Java iterators for C++:
 All Classes Namespaces Files Functions Variables Typedefs Friends Macros Pages
Public Member Functions | Private Attributes | List of all members
Random Class Reference

C++ encapsulation of a generator as a Java iterator. More...

Public Member Functions

 Random (unsigned n=1, long seed=3145159)
 Iterator::init() More...
 
bool hasNext () const
 Iterator::hastNext() More...
 
const long & next ()
 Iterator::next() More...
 

Private Attributes

unsigned m_qty
 #. More...
 
unsigned m_last
 Max. More...
 
long m_val
 current(). More...
 

Detailed Description

C++ encapsulation of a generator as a Java iterator.

Definition at line 1051 of file test_iterJava.cpp.

Constructor & Destructor Documentation

Random::Random ( unsigned  n = 1,
long  seed = 3145159 
)
inline

Iterator::init()

Definition at line 1057 of file test_iterJava.cpp.

Member Function Documentation

bool Random::hasNext ( ) const
inline

Iterator::hastNext()

Definition at line 1061 of file test_iterJava.cpp.

const long& Random::next ( )
inline

Iterator::next()

Definition at line 1063 of file test_iterJava.cpp.

Member Data Documentation

unsigned Random::m_qty
private

#.

Definition at line 1052 of file test_iterJava.cpp.

unsigned Random::m_last
private

Max.

Definition at line 1053 of file test_iterJava.cpp.

long Random::m_val
private

current().

Definition at line 1054 of file test_iterJava.cpp.


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