C++ main module for stochmagnet Package
1.0
|
This class describes an noise rate function of the form \( F(t)=\varepsilon \). More...
#include <SM_ConstantNoiseRateFunction.h>
Public Member Functions | |
SM_ConstantNoiseRateFunction (void) | |
create More... | |
virtual | ~SM_ConstantNoiseRateFunction (void) |
destroy More... | |
virtual tMemSize | getMemorySize () const |
return the memory size of the class and the memory size of all its attributes/associations More... | |
virtual tString | getName () const override |
the the name of the system More... | |
tReal | computeTemplatedFunction (const tReal &t) const |
compute the noise rate function More... | |
virtual tReal | computeFunction (const tReal &t) const override |
compute the noise rate function 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 | 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 CORE_UniquePointer< SM_ConstantNoiseRateFunction > | New () |
build a new instance of a SM_NoiseRateFunction 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 | |
SM_ConstantNoiseRateFunction (const SM_ConstantNoiseRateFunction &f) | |
create a copy of instance of 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 an noise rate function of the form \( F(t)=\varepsilon \).
|
inline |
|
inlineprivate |
create a copy of instance of f
[in] | f | function to copy Copy constructor is not permitted |
|
inlinevirtual |
destroy
|
inlineoverridevirtual |
compute the noise rate function
[in] | t | : time value |
Implements SM_NoiseRateFunction.
References computeTemplatedFunction().
compute the noise rate function
[in] | t | : time value |
References SM_NoiseRateFunction::getNoiseRate().
Referenced by computeFunction().
|
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(), getMemorySize(), SM_InverseNoiseRateFunction::getMemorySize(), SM_LandauLifschitzFunction::getMemorySize(), SM_NoiseRateFunction::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_TemplatedNoiseRateFunction< SM_ConstantNoiseRateFunction >.
References CORE_Object::getContentsMemorySize().
|
inlineoverridevirtual |
the the name of the system
Implements SM_NoiseRateFunction.
|
inlineinherited |
get the noise power
References SM_NoiseRateFunction::mNoisePower.
Referenced by SM_InverseNoiseRateFunction::computeTemplatedFunction().
|
inlineinherited |
get the noise rate
References SM_NoiseRateFunction::mNoiseRate.
Referenced by 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().
|
inlinestatic |
build a new instance of a SM_NoiseRateFunction
References SM_ConstantNoiseRateFunction().
Referenced by SM_Beam::discretize(), and SM_ClassFactory::NewInstance().
|
inlineinherited |
|
inlineinherited |
|
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.
|
inlinefinalvirtualinherited |
return the string reprsentation or the class
Reimplemented from CORE_Object.
References SM_NoiseRateFunction::getName(), SM_NoiseRateFunction::mNoisePower, and SM_NoiseRateFunction::mNoiseRate.
|
privateinherited |
|
privateinherited |
|
privateinherited |
Referenced by CORE_Object::getConstSharedPointer(), CORE_Object::getSharedPointer(), and CORE_Object::setThis().