Jpp 19.3.0-rc.3
the software that should make you happy
Loading...
Searching...
No Matches
JMATH::JRandom< T, false > Struct Template Reference

Template spacialisation of JMATH::JRandom for non-numerical data types. More...

#include <JRandom.hh>

Static Public Member Functions

static const T & getRandom ()
 Get random value.
 

Static Private Attributes

static T value
 

Detailed Description

template<class T>
struct JMATH::JRandom< T, false >

Template spacialisation of JMATH::JRandom for non-numerical data types.

The template argument T should have the default constructor and the following method should be implemented for this data type.

  void randomize(T* object);

Definition at line 80 of file JMath/JRandom.hh.

Member Function Documentation

◆ getRandom()

template<class T >
static const T & JMATH::JRandom< T, false >::getRandom ( )
inlinestatic

Get random value.

Returns
random value

Definition at line 86 of file JMath/JRandom.hh.

87 {
88 new (&value) T();
89
91
92 return value;
93 }
void randomize(JMatrix1D *p)
Randomize matrix.

Member Data Documentation

◆ value

template<class T >
T JMATH::JRandom< T, false >::value
staticprivate

Definition at line 96 of file JMath/JRandom.hh.


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