C++ main module for stochmagnet Package
1.0
|
This class describes a noise rate function. More...
#include <SM_NoiseRateFunction.h>
Public Member Functions | |
virtual tMemSize | getMemorySize () const |
return the memory size of the class and the memory size of all its attributes/associations More... | |
void | setNoiseRate (const tReal &eps) |
set the noise rate More... | |
const tReal & | getNoiseRate () const |
get the noise rate More... | |
void | setNoisePower (const tReal &eps) |
set the noise power More... | |
const tReal & | getNoisePower () const |
get the noise power More... | |
virtual tString | getName () const =0 |
the the name of the system More... | |
virtual tReal | computeFunction (const tReal &t) const =0 |
compute the noise rate function More... | |
virtual tString | toString () const final |
return the string reprsentation or the class 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... | |
virtual tMemSize | getContentsMemorySize () const |
return nthe memory size of the included associations 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... | |
Static Public Member Functions | |
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... | |
Protected Member Functions | |
SM_NoiseRateFunction (void) | |
create More... | |
virtual | ~SM_NoiseRateFunction (void) |
destroy More... | |
Private Member Functions | |
SM_NoiseRateFunction (const SM_NoiseRateFunction &f) | |
create a copy of instance of function f More... | |
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... | |
Private Attributes | |
tReal | mNoiseRate |
tReal | mNoisePower |
std::weak_ptr< CORE_Object > | mThis |
This class describes a noise rate function.
|
inlineprotected |
create
References mNoisePower, and mNoiseRate.
|
inlineprivate |
create a copy of instance of function f
[in] | f | function to copy copy constructor is not peermitted |
|
inlineprotectedvirtual |
destroy
compute the noise rate function
[in] | t | : time value |
Implemented in SM_InverseNoiseRateFunction, and SM_ConstantNoiseRateFunction.
Referenced by SM_Beam::computeL2Convergence(), SM_System::makeRelaxation(), and SM_Output::saveStochasticIndicators().
|
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.
|
inlinevirtualinherited |
return nthe memory size of the included associations
Reimplemented in CORE_VectorList< T, I >, CORE_VectorList< tString, CORE_StringsList >, CORE_ValArray< T, I >, CORE_ValArray< T, CORE_StdValArray< T > >, CORE_Run, CORE_PtrArray< T, I >, CORE_PtrArray< T, CORE_StdPtrArray< T > >, 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_ClassFactory, SMS_STDUniformFunction, SMS_STDNormalFunction, SMS_BoostUniformFunction, SMS_BoostNormalFunction, SM_ZeemanOperator, SM_XDMF, SM_VTK, SM_System, SM_Output, SM_Operator, SM_Network, SM_DemagnetizedOperator, SM_Beam, CORE_StringsList, and CORE_Out.
Referenced by CORE_Out::getContentsMemorySize(), SM_Beam::getContentsMemorySize(), SM_Network::getContentsMemorySize(), SM_Operator::getContentsMemorySize(), SM_Output::getContentsMemorySize(), SM_System::getContentsMemorySize(), SM_VTK::getContentsMemorySize(), SMS_BoostNormalFunction::getContentsMemorySize(), SMS_BoostUniformFunction::getContentsMemorySize(), SMS_STDNormalFunction::getContentsMemorySize(), SMS_STDUniformFunction::getContentsMemorySize(), CORE_ClassFactory::getContentsMemorySize(), CORE_PtrArray< T, I >::getContentsMemorySize(), CORE_ValArray< T, I >::getContentsMemorySize(), CORE_VectorList< T, I >::getContentsMemorySize(), CORE_Object::getMemorySize(), SM_ConstantNoiseRateFunction::getMemorySize(), SM_InverseNoiseRateFunction::getMemorySize(), SM_LandauLifschitzFunction::getMemorySize(), getMemorySize(), SM_Object::getMemorySize(), SM_StochasticFunction::getMemorySize(), SM_TemplatedNoiseRateFunction< DerivedClass >::getMemorySize(), SM_TimeStepper::getMemorySize(), SMS_BoostRandomFunction::getMemorySize(), CORE_Array< T, I >::getMemorySize(), CORE_Chrono::getMemorySize(), CORE_Collection< T, I >::getMemorySize(), CORE_IO::getMemorySize(), CORE_List< T, K, I >::getMemorySize(), CORE_OptionsReader::getMemorySize(), CORE_OutputFile::getMemorySize(), and CORE_Test::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 SM_Object.
Reimplemented in SM_TemplatedNoiseRateFunction< DerivedClass >, SM_TemplatedNoiseRateFunction< SM_ConstantNoiseRateFunction >, SM_TemplatedNoiseRateFunction< SM_InverseNoiseRateFunction >, SM_InverseNoiseRateFunction, and SM_ConstantNoiseRateFunction.
References CORE_Object::getContentsMemorySize().
|
pure virtual |
the the name of the system
Implemented in SM_InverseNoiseRateFunction, and SM_ConstantNoiseRateFunction.
Referenced by toString().
|
inline |
get the noise power
References mNoisePower.
Referenced by SM_InverseNoiseRateFunction::computeTemplatedFunction().
|
inline |
get the noise rate
References mNoiseRate.
Referenced by SM_ConstantNoiseRateFunction::computeTemplatedFunction(), and SM_InverseNoiseRateFunction::computeTemplatedFunction().
|
inlineinherited |
retrun the pointer of the class as a string
References core_functions::pointerToString().
|
inlinestaticinherited |
get the memory stack in string
|
inlineinherited |
return the shared pointer for this
References CORE_Object::mThis.
|
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().
|
inline |
|
inline |
|
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.
|
inlinefinalvirtual |
return the string reprsentation or the class
Reimplemented from CORE_Object.
References getName(), mNoisePower, and mNoiseRate.
|
private |
Referenced by getNoisePower(), setNoisePower(), SM_NoiseRateFunction(), and toString().
|
private |
Referenced by getNoiseRate(), setNoiseRate(), SM_NoiseRateFunction(), and toString().
|
privateinherited |
Referenced by CORE_Object::getConstSharedPointer(), CORE_Object::getSharedPointer(), and CORE_Object::setThis().