C++ main module for stochmagnet Package
1.0
|
This class is describes a time stepper. More...
#include <SM_TimeStepper.h>
Public Member Functions | |
SM_TimeStepper (void) | |
create a network class More... | |
virtual | ~SM_TimeStepper (void) |
destroy More... | |
virtual tMemSize | getMemorySize () const |
return the memory size of the class and the memory size of all its attributes/associations More... | |
void | copy (const SM_TimeStepper &T) |
copy the time stepper More... | |
void | setTimeStep (const tReal &dt) |
set the time step More... | |
const tReal & | getTimeStep () const |
return the time step More... | |
void | setTargetTime (const tReal &t) |
set the target time More... | |
const tReal & | getTargetTime () const |
return the target time More... | |
void | setMaximumTimeStepsNumber (const tIndex &nSteps) |
set the maximum time steps number More... | |
const tIndex & | getMaximumTimeStepsNumber () const |
return the time steps number More... | |
virtual tString | toString () const override |
turn the class into a string representation 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_TimeStepper > | New () |
build a new instance of a TimeStepper 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... | |
Private Attributes | |
tReal | mTimeStep |
tReal | mTargetTime |
tIndex | mMaximumTimeStepsNumber |
std::weak_ptr< CORE_Object > | mThis |
This class is describes a time stepper.
|
inline |
create a network class
References mMaximumTimeStepsNumber, mTargetTime, and mTimeStep.
Referenced by New().
|
inlinevirtual |
destroy
|
inline |
copy the time stepper
[in] | T | : the time stepper to copy |
References getTargetTime(), getTimeStep(), mMaximumTimeStepsNumber, mTargetTime, and mTimeStep.
|
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(), SM_NoiseRateFunction::getMemorySize(), SM_Object::getMemorySize(), SM_StochasticFunction::getMemorySize(), SM_TemplatedNoiseRateFunction< DerivedClass >::getMemorySize(), 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().
|
inline |
return the time steps number
References mMaximumTimeStepsNumber.
Referenced by SM_Beam::computeL2Convergence(), SM_Beam::discretize(), SM_ZeemanOperator::discretize(), SM_Output::generateOutput(), SM_System::makeRelaxation(), SM_TemplatedSystem< SystemImpl >::makeTemplatedRelaxation(), SM_VTK::save(), SM_Output::saveStochasticIndicators(), and SM_Test::validate().
|
inlinevirtual |
return the memory size of the class and the memory size of all its attributes/associations
Reimplemented from SM_Object.
References CORE_Object::getContentsMemorySize().
|
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.
|
inline |
return the target time
References mTargetTime.
Referenced by copy().
|
inline |
return the time step
References mTimeStep.
Referenced by SM_Beam::computeL2Convergence(), copy(), SM_Output::generateOutput(), SM_System::makeRelaxation(), SM_TemplatedSystem< SystemImpl >::makeTemplatedRelaxation(), SM_Output::saveStochasticIndicators(), and SM_Test::validate().
|
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 TimeStepper
References SM_TimeStepper().
Referenced by SM_ClassFactory::NewInstance().
|
inline |
set the maximum time steps number
[in] | nSteps | maximum time step number |
References mMaximumTimeStepsNumber, mTargetTime, and mTimeStep.
|
inline |
set the target time
[in] | t | : the target time of the relaxation |
References mMaximumTimeStepsNumber, mTargetTime, mTimeStep, and tInteger.
Referenced by SM_Test::grid3DParticlesTestCase(), SM_Test::linedParticlesTestCase(), SM_Run::loadBeamFromOptions(), and SM_Test::testOperators().
|
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 |
set the time step
[in] | dt | : the time step |
References ASSERT_IN, mMaximumTimeStepsNumber, mTargetTime, mTimeStep, and tInteger.
Referenced by SM_Test::grid3DParticlesTestCase(), SM_Test::linedParticlesTestCase(), SM_Run::loadBeamFromOptions(), and SM_Test::testOperators().
|
inlineoverridevirtual |
turn the class into a string representation
Reimplemented from CORE_Object.
References mMaximumTimeStepsNumber, mTargetTime, mTimeStep, and CORE_Object::toString().
Referenced by SM_System::toString().
|
private |
Referenced by copy(), getMaximumTimeStepsNumber(), setMaximumTimeStepsNumber(), setTargetTime(), setTimeStep(), SM_TimeStepper(), and toString().
|
private |
Referenced by copy(), getTargetTime(), setMaximumTimeStepsNumber(), setTargetTime(), setTimeStep(), SM_TimeStepper(), and toString().
|
privateinherited |
Referenced by CORE_Object::getConstSharedPointer(), CORE_Object::getSharedPointer(), and CORE_Object::setThis().
|
private |
Referenced by copy(), getTimeStep(), setMaximumTimeStepsNumber(), setTargetTime(), setTimeStep(), SM_TimeStepper(), and toString().