24 #ifndef MTwistEngine_h
25 #define MTwistEngine_h
49 void flatArray(
const int size,
double* vect);
55 void setSeeds(
const long * seeds,
int);
59 void saveStatus(
const char filename[] =
"MTwist.conf")
const;
69 operator unsigned int();
71 virtual std::ostream &
put (std::ostream & os)
const;
72 virtual std::istream &
get (std::istream & is);
74 virtual std::istream &
getState ( std::istream & is );
76 std::string
name()
const;
79 std::vector<unsigned long>
put ()
const;
80 bool get (
const std::vector<unsigned long> & v);
81 bool getState (
const std::vector<unsigned long> & v);
90 enum{ NminusM = 227, M = 397, N = 624};
96 #endif // MTwistEngine_h
void saveStatus(const char filename[]="MTwist.conf") const
void setSeeds(const long *seeds, int)
void setSeed(long seed, int)
void restoreStatus(const char filename[]="MTwist.conf")
static const unsigned int VECTOR_STATE_SIZE
typedef int(XMLCALL *XML_NotStandaloneHandler)(void *userData)
static std::string beginTag()
void flatArray(const int size, double *vect)
virtual std::istream & getState(std::istream &is)
static std::string engineName()
std::vector< unsigned long > put() const