Class allowing easy manipulation of a seed. More...
#include <arcane/core/IRandomNumberGenerator.h>
Public Member Functions | |
| RNGSeedHelper (ByteArrayView av) | |
| Class constructor. | |
| template<class T> | |
| RNGSeedHelper (T *var) | |
| Class constructor. | |
| template<class T> | |
| bool | setValue (T value_in) |
| Method allowing setting a value in the seed. | |
| template<class T> | |
| bool | value (T &value_out, bool without_size_check=true) const |
| Method allowing retrieval of the seed value. | |
| template<class T> | |
| bool | value (T *value_out, bool without_size_check=true) const |
| Method allowing retrieval of the seed value. | |
| Integer | sizeOfSeed () const |
| Method allowing retrieval of the seed size. | |
| ByteConstArrayView | constView () const |
| Method allowing retrieval of a constant view. | |
| ByteArrayView | view () |
| Method allowing retrieval of a view. | |
| template<class T> | |
| RNGSeedHelper & | operator= (T new_value) |
| Copy operator from a seed value. | |
| ByteUniqueArray | copy () |
| Method allowing retrieval of a copy of the Byte array. | |
Protected Attributes | |
| ByteArrayView | m_seed |
Class allowing easy manipulation of a seed.
A seed is represented by an array of Bytes. This class uses an ArrayView of this array.
This class allows defining a value in the array and retrieving that value (other things).
This class does not store the array but only an ArrayView of this array.
Definition at line 44 of file IRandomNumberGenerator.h.
|
inline |
Class constructor.
| av | An ArrayView of an array representing a seed. |
Definition at line 53 of file IRandomNumberGenerator.h.
Referenced by operator=().
|
inline |
Class constructor.
| T | A base type. |
| var | A pointer to the seed (note, does not make a copy of the value!). |
Definition at line 66 of file IRandomNumberGenerator.h.
|
inline |
Method allowing retrieval of a constant view.
Definition at line 153 of file IRandomNumberGenerator.h.
|
inline |
Method allowing retrieval of a copy of the Byte array.
Definition at line 187 of file IRandomNumberGenerator.h.
|
inline |
Copy operator from a seed value.
| T | The seed type. |
| value | The seed value. |
Definition at line 176 of file IRandomNumberGenerator.h.
References RNGSeedHelper(), and setValue().
|
inline |
Method allowing setting a value in the seed.
| T | The value type. |
| value_in | The future value of the seed. |
Definition at line 84 of file IRandomNumberGenerator.h.
Referenced by operator=().
|
inline |
Method allowing retrieval of the seed size.
Definition at line 143 of file IRandomNumberGenerator.h.
|
inline |
Method allowing retrieval of the seed value.
| T | The seed type. |
| value_out | [OUT] The seed value. |
| without_size_check | If value truncation is allowed. |
Definition at line 107 of file IRandomNumberGenerator.h.
|
inline |
Method allowing retrieval of the seed value.
| T | The seed type. |
| value_out | [OUT] The seed value. |
| without_size_check | If value truncation is allowed. |
Definition at line 128 of file IRandomNumberGenerator.h.
|
inline |
Method allowing retrieval of a view.
Definition at line 163 of file IRandomNumberGenerator.h.
|
protected |
Definition at line 194 of file IRandomNumberGenerator.h.