C++ main module for stochmagnet Package
1.0
|
This class implements a stochastic function with a normal law implemented from the boost library. More...
#include <SMS_BoostUniformFunction.h>
Public Member Functions | |
SMS_BoostUniformFunction () | |
create an object More... | |
virtual | ~SMS_BoostUniformFunction (void) |
destroy an object. More... | |
virtual tMemSize | getMemorySize () const |
return the memory size of the class and the memory size of all its attributes/associations More... | |
virtual tMemSize | getContentsMemorySize () const |
return the memory size of the included associations More... | |
virtual void | initializeSeed (const tULLInt &seed) override |
initialize the seed More... | |
void | setSupport (const tReal &a, const tReal &b) |
set the support More... | |
virtual void | setProperties (const tReal &mean, const tReal &sd) override |
set the properties of the stochastic function More... | |
virtual tReal | random () const override |
random return a random numbers in range More... | |
tReal | templatedRandom () const |
random return a random numbers in range More... | |
RNGType & | getRNGenerator () |
get the generator More... | |
template<class T > | |
std::shared_ptr< T > | getSharedPointer () |
return the shared pointer for this More... | |
template<class T > | |
std::shared_ptr< const T > | getConstSharedPointer () const |
return a const shared pointer for this More... | |
template<class T > | |
tBoolean | isInstanceOf () const |
test if the clas T is an instance of this class More... | |
tString | getClassName () const |
return the name of the class More... | |
tString | getPointerString () const |
retrun the pointer of the class as a string More... | |
tString | getIdentityString () const |
retrun the string identification of the class More... | |
virtual tString | toString () const |
return the string representation of the object node More... | |
Static Public Member Functions | |
static CORE_UniquePointer< SMS_BoostUniformFunction > | New () |
build a new instance of the stochasticfunction More... | |
static void | initSeed () |
init the seed More... | |
static void | initSeed (const tULLInt &v) |
init the seed More... | |
static tBoolean | EnableMemoryStack (const tBoolean &isMemoryChecked) |
enable the memory stack More... | |
static void | EnableMemoryStack () |
enable the memory stack More... | |
static void | DisableMemoryStack () |
disable the memory stack More... | |
static tBoolean | IsMemoryStackEnabled () |
return trur if the memory stack is enabled More... | |
static tString | MemoryStackToString () |
get the memory stack in string More... | |
static tIndex | GetRegisteredClassesNumber () |
get the memory stack in string More... | |
Private Member Functions | |
template<class T > | |
std::shared_ptr< T > | setThis (std::unique_ptr< T, CORE_Object::Delete > &up) |
set the shared pointer from an unique pointer More... | |
virtual tString | toString () const override |
turn the class into a string More... | |
Private Attributes | |
boost::math::uniform_distribution< tReal > * | mDistribution |
boost::uniform_real< tReal > * | mRandomDistribution |
boost::random::variate_generator< RNGType &, boost::uniform_real< tReal > > * | mGenerator |
std::weak_ptr< CORE_Object > | mThis |
Static Private Attributes | |
static RNGType | mRNGenerator |
static tBoolean | INIT_SEED =true |
This class implements a stochastic function with a normal law implemented from the boost library.
SMS_BoostUniformFunction::SMS_BoostUniformFunction | ( | ) |
create an object
References mDistribution, mGenerator, mRandomDistribution, and setProperties().
Referenced by New().
|
virtual |
destroy an object.
References mDistribution, mGenerator, and mRandomDistribution.
|
inlinestaticinherited |
disable the memory stack
Referenced by CORE_Object::EnableMemoryStack().
|
inlinestaticinherited |
enable the memory stack
Referenced by CORE_Object::EnableMemoryStack(), and CORE_Run::SetDebugOptions().
|
inlinestaticinherited |
enable the memory stack
[in] | isMemoryChecked | : true to verify memory allocation of CORE_Object classes |
References CORE_Object::DisableMemoryStack(), CORE_Object::EnableMemoryStack(), and CORE_Object::IsMemoryStackEnabled().
|
inlineinherited |
return the name of the class
Referenced by CORE_Object::getIdentityString(), and CORE_Test::testTypes().
|
inlineinherited |
return a const shared pointer for this
References CORE_Object::mThis.
|
inlinevirtual |
return the memory size of the included associations
Reimplemented from CORE_Object.
References CORE_Object::getContentsMemorySize(), mDistribution, mGenerator, mRandomDistribution, and tMemSize.
Referenced by getMemorySize().
|
inlineinherited |
retrun the string identification of the class
References CORE_Object::getClassName(), and core_functions::pointerToString().
Referenced by CORE_Test::testArray(), CORE_Test::testField(), CORE_Test::testTypes(), CORE_Object::toString(), CORE_ClassFactory::toString(), and CORE_Field< T, K, D, S, I >::toString().
|
inlinevirtual |
return the memory size of the class and the memory size of all its attributes/associations
Reimplemented from SMS_BoostRandomFunction.
References getContentsMemorySize().
|
inlineinherited |
retrun the pointer of the class as a string
References core_functions::pointerToString().
|
inlinestaticinherited |
get the memory stack in string
|
inlineinherited |
get the generator
References SMS_BoostRandomFunction::mRNGenerator.
Referenced by SMS_BoostNormalFunction::setProperties(), and setSupport().
|
inlineinherited |
return the shared pointer for this
References CORE_Object::mThis.
|
inlineoverridevirtual |
initialize the seed
seed | : init value of the seed for generating random numbers |
Implements SM_StochasticFunction.
References SMS_BoostRandomFunction::initSeed().
Referenced by SM_Test::linedParticlesTestCase().
|
staticinherited |
init the seed
Referenced by SMS_BoostNormalFunction::initializeSeed(), initializeSeed(), and SMS_BoostRandomFunction::SMS_BoostRandomFunction().
|
staticinherited |
init the seed
References SMS_BoostRandomFunction::INIT_SEED, and SMS_BoostRandomFunction::mRNGenerator.
|
inlineinherited |
test if the clas T is an instance of this class
Referenced by SM_Beam::templatedSimulate().
|
inlinestaticinherited |
return trur if the memory stack is enabled
Referenced by CORE_Object::EnableMemoryStack(), and main().
|
inlinestaticinherited |
get the memory stack in string
Referenced by main().
|
inlinestatic |
build a new instance of the stochasticfunction
References SMS_BoostUniformFunction().
|
inlineoverridevirtual |
random return a random numbers in range
Implements SM_StochasticFunction.
References templatedRandom().
|
overridevirtual |
set the properties of the stochastic function
[in] | mean | : mean of the random function |
[in] | sd | : strandt deviation of the random function |
Implements SM_StochasticFunction.
References setSupport().
Referenced by SMS_BoostUniformFunction().
set the support
[in] | a | min value |
[in] | b | max value |
References SMS_BoostRandomFunction::getRNGenerator(), mDistribution, mGenerator, and mRandomDistribution.
Referenced by SM_Test::linedParticlesTestCase(), and setProperties().
|
inlineprivateinherited |
set the shared pointer from an unique pointer
[in,out] | up | unique pointer of the class at input, points to null pointer at output |
Method only calledby the friend class CORE_ClassFactory::NewSharedInstance()
References CORE_Object::mThis.
|
inline |
random return a random numbers in range
References mGenerator.
Referenced by SM_Test::linedParticlesTestCase(), and random().
|
inlinevirtualinherited |
return the string representation of the object node
Reimplemented in SM_TimeStepper, SM_System, SM_StochasticFunction, SM_Network, SM_LandauLifschitzFunction, SM_Beam, CORE_Field< T, K, D, S, I >, CORE_Field< T, K, D, CORE_StdPtrArray< T >, CORE_StdPtrField< T, K, D > >, CORE_Field< T, K, D, CORE_StdValArray< T >, CORE_StdValField< T, K, D > >, CORE_Collection< T, I >, CORE_ClassFactory, and SM_NoiseRateFunction.
References CORE_Object::getIdentityString().
Referenced by SM_Run::run(), CORE_Collection< T, I >::toString(), SM_Beam::toString(), SM_Network::toString(), SM_StochasticFunction::toString(), SM_System::toString(), and SM_TimeStepper::toString().
|
inlineoverridevirtualinherited |
turn the class into a string
Reimplemented from CORE_Object.
References CORE_Object::toString().
|
staticprivateinherited |
|
private |
Referenced by getContentsMemorySize(), setSupport(), SMS_BoostUniformFunction(), and ~SMS_BoostUniformFunction().
|
private |
Referenced by getContentsMemorySize(), setSupport(), SMS_BoostUniformFunction(), templatedRandom(), and ~SMS_BoostUniformFunction().
|
private |
Referenced by getContentsMemorySize(), setSupport(), SMS_BoostUniformFunction(), and ~SMS_BoostUniformFunction().
|
staticprivateinherited |
Referenced by SMS_BoostRandomFunction::getRNGenerator(), and SMS_BoostRandomFunction::initSeed().
|
privateinherited |
Referenced by CORE_Object::getConstSharedPointer(), CORE_Object::getSharedPointer(), and CORE_Object::setThis().