![]() |
QMCPACK
|
Public Types | |
using | result_type = typename RandomBase< T >::result_type |
using | uint_type = typename RandomBase< T >::uint_type |
![]() | |
using | result_type = T |
using | uint_type = uint_fast32_t |
Public Member Functions | |
FakeRandom () | |
T | operator() () override |
void | init (int iseed) override |
void | seed (uint_fast32_t aseed) override |
void | write (std::ostream &rout) const override |
void | read (std::istream &rin) override |
void | load (const std::vector< uint_type > &newstate) override |
void | save (std::vector< uint_type > &curstate) const override |
size_t | state_size () const override |
std::unique_ptr< RandomBase< T > > | makeClone () const override |
void | set_value (double val) |
![]() | |
virtual | ~RandomBase ()=default |
virtual void | load (const std::vector< uint_type > &newstate)=0 |
virtual void | save (std::vector< uint_type > &curstate) const =0 |
Private Attributes | |
T | m_val {0.5} |
Definition at line 23 of file FakeRandom.h.
using result_type = typename RandomBase<T>::result_type |
Definition at line 26 of file FakeRandom.h.
using uint_type = typename RandomBase<T>::uint_type |
Definition at line 27 of file FakeRandom.h.
|
default |
|
inlineoverridevirtual |
|
inlineoverride |
Definition at line 36 of file FakeRandom.h.
|
inlineoverridevirtual |
Implements RandomBase< T >.
Definition at line 39 of file FakeRandom.h.
|
overridevirtual |
Implements RandomBase< T >.
Definition at line 27 of file FakeRandom.cpp.
|
inlineoverridevirtual |
Implements RandomBase< T >.
Definition at line 35 of file FakeRandom.h.
References FakeRandom< T >::m_val.
|
inlineoverride |
Definition at line 37 of file FakeRandom.h.
|
inlineoverridevirtual |
void set_value | ( | double | val | ) |
Definition at line 21 of file FakeRandom.cpp.
Referenced by qmcplusplus::TEST_CASE().
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Implements RandomBase< T >.
Definition at line 34 of file FakeRandom.h.
References FakeRandom< T >::m_val.
Referenced by qmcplusplus::TEST_CASE().
|
private |
Definition at line 44 of file FakeRandom.h.
Referenced by FakeRandom< T >::read(), and FakeRandom< T >::write().