Jpp  16.0.0
the software that should make you happy
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Static Public Member Functions | Static Private Attributes | List of all members
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 TgetRandom ()
 Get random value. More...
 

Static Private Attributes

static T value
 Definition of value. More...
 

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 JRandom.hh.

Member Function Documentation

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

Get random value.

Returns
random value

Definition at line 86 of file JRandom.hh.

87  {
88  new (&value) T();
89 
90  randomize(&value);
91 
92  return value;
93  }
static T value
Definition of value.
Definition: JRandom.hh:96
void randomize(JMatrix1S *p)
Randomize matrix.
Definition: JMathTestkit.hh:29
do set_variable OUTPUT_DIRECTORY $WORKDIR T

Member Data Documentation

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

Definition of value.

Definition at line 96 of file JRandom.hh.


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