C++ main module for stochmagnet Package
1.0
|
Classes | |
struct | is_complex |
struct | is_complex< std::complex< T > > |
Functions | |
template<class T > | |
tString | pointerToString (const T *ptr) |
return the pointer of the class as a string More... | |
template<typename T > | |
tBoolean | areEquals (const T &e1, const T &e2) |
tests if two elements are equals More... | |
template<> | |
tBoolean | areEquals (const tReal &e1, const tReal &e2) |
tests if two string are equals More... | |
template<> | |
tBoolean | areEquals (const tComplex &e1, const tComplex &e2) |
tests if two string are equals More... | |
template<> | |
tBoolean | areEquals (const tString &e1, const tString &e2) |
tests if two string are equals More... | |
template<typename T , std::enable_if_t< std::is_integral_v< T >> * = nullptr> | |
tString | toString (const T &v, const tUCInt &d) |
template<typename T , std::enable_if_t< std::is_arithmetic_v< T >> * = nullptr> | |
tString | toString (const T &v) |
tString | booleanToString (const tBoolean &v) |
tString & | ltrim (tString &s) |
remove all the empty characters at the beginning of the string More... | |
tString & | rtrim (tString &s) |
remove all the empty characters at the end of the string More... | |
tString & | trim (tString &s) |
remove all the empty characters at the begining and end of the string More... | |
void | replaceAll (const tString &word, const tString &rWord, tString &str) |
replace all instnce of word by replace word in string More... | |
void | toLower (tString &s) |
turn a string to lower value More... | |
void | toUpper (tString &s) |
turn a string to lower value More... | |
void | tokenize (tString &str, const tString &delim, std::vector< tString > words) |
tokenize More... | |
template<typename T > | |
requires core_functions::isArithmeticType< T > const T & | min (const T &a, const T &b) |
min function More... | |
template<typename T > | |
requires core_functions::isArithmeticType< T > const T & | max (const T &a, const T &b) |
max function More... | |
template<typename T > | |
requires core_functions::isRealType< T > tBoolean | isNAN (const T &s) |
return true if the argument is an integer number More... | |
tBoolean | isInteger (const tString &s) |
return true if the argument is an integer number More... | |
tBoolean | isNumeric (const tString &s) |
return true if the argument is an integer number More... | |
tBoolean | isString (const tString &s) |
return true if the argument is a string More... | |
template<typename T > | |
void | parse (const tString &s, T &v) |
parse the string More... | |
template<> | |
void | parse (const tString &s, tBoolean &v) |
parse the string More... | |
template<typename T , size_t D> | |
tString | toString (const std::array< T, D > &a) |
rretru the array to string More... | |
template<typename T > | |
tString | toString (const std::valarray< T > &a) |
rretru the array to string More... | |
template<typename Q > | |
const std::pair< Q, Q > & | complexMultiply (const std::pair< Q, Q > &alpha, std::pair< Q, Q > &beta) |
template<typename Q > | |
const std::pair< Q, Q > & | complexAdd (const std::pair< Q, Q > &alpha, std::pair< Q, Q > &beta) |
Variables | |
template<typename T > | |
concept | isComplexType |
template<typename T > | |
concept | isArithmeticType |
template<typename T > | |
concept | isOrderedType |
template<typename T > | |
concept | isStringType |
template<typename T > | |
concept | isRealType |
template<typename T > | |
concept | isIntegerType |
template<typename T > | |
concept | isSignedIntegerType |
template<typename T > | |
concept | isUnsignedIntegerType |
template<class Base , class Derived > | |
concept | isBaseOf = std::is_base_of_v<Base, Derived> |
template<class T > | |
concept | isArray = std::is_array<T>() |
template<class T > | |
concept | isBoundedArray = std::is_bounded_array<T>::value |
template<class T > | |
concept | isUnboundedArray = std::is_unbounded_array<T>::value |
template<class T > | |
concept | isDoubleArray = std::is_pointer_v<T**> |
template<class T > | |
concept | isPointer = std::is_pointer_v<T> |
template<class T > | |
concept | iNotNullPointer = not std::is_pointer<std::nullptr_t>::value |
template<class T , class Q > | |
concept | isSameType = std::is_same<T,Q>::value |
|
inline |
tests if two elements are equals
[in] | e1 | element to compare |
[in] | e2 | element to compare |
tests if two string are equals
[in] | e1 | element to compare |
[in] | e2 | element to compare |
It overrides the generic template areEquals(const T&,const T&)
tests if two string are equals
[in] | e1 | element to compare |
[in] | e2 | element to compare |
It overrides the generic template areEquals(const T&,const T&)
tests if two string are equals
[in] | e1 | element to compare |
[in] | e2 | element to compare |
It overrides the generic template areEquals(const T&,const T&)
brief tranform the numeric type name value v to string
[in] | v | value to turn into string |
Referenced by SM_Test::validate().
|
inline |
|
inline |
return true if the argument is an integer number
[in] | s | string to test |
Referenced by isString().
|
inline |
return true if the argument is an integer number
[in] | s | string to test |
Referenced by SM_Test::testDerivative(), and SM_Test::validate().
return true if the argument is an integer number
[in] | s | string to test |
Referenced by isString().
return true if the argument is a string
[in] | s | string to test |
References isInteger(), and isNumeric().
remove all the empty characters at the beginning of the string
[in] | s | string to remove blank characters |
Referenced by trim().
|
inline |
max function
[in] | a | : a value |
[in] | b | : b value |
Referenced by SM_Output::LoadMagneticMomentField(), CORE_Test::testTypes(), CORE_Array< T, I >::uniformRandomize(), CORE_Field< T, K, D, S, I >::uniformRandomize(), CORE_StdPtrArray< T >::uniformRandomize(), CORE_StdValArray< T >::uniformRandomize(), CORE_StdPtrArray< T >::UniformRandomize(), and CORE_StdValArray< T >::UniformRandomize().
|
inline |
min function
[in] | a | : a value |
[in] | b | : b value |
Referenced by CORE_PtrArray< T, I >::allocate(), CORE_StdPtrArray< T >::axpy(), CORE_StdPtrArray< T >::copy(), CORE_StdValArray< T >::copy(), CORE_StdValArray< T >::l2Distance2(), CORE_StdPtrArray< T >::L2Distance2(), CORE_StdValArray< T >::linfDistance(), CORE_StdPtrArray< T >::LinfDistance(), CORE_StdPtrArray< T >::operator*=(), CORE_StdPtrArray< T >::operator-=(), CORE_StdPtrArray< T >::operator/=(), CORE_ValArray< T, I >::resize(), CORE_StdPtrArray< T >::scalarProduct(), CORE_StdValArray< T >::scalarProduct(), CORE_Test::testTypes(), CORE_Array< T, I >::uniformRandomize(), CORE_StdPtrArray< T >::uniformRandomize(), CORE_StdValArray< T >::uniformRandomize(), CORE_StdPtrArray< T >::UniformRandomize(), and CORE_StdValArray< T >::UniformRandomize().
|
inline |
parse the string
[in] | s | string to parse |
[out] | v | : the numeric value of V |
Referenced by CORE_OptionsReader::ReadArray(), and CORE_OptionsReader::ReadVector().
|
inline |
return the pointer of the class as a string
Referenced by CORE_Object::getIdentityString(), CORE_Object::getPointerString(), CORE_MemoryStack< T >::registerClass(), and CORE_MemoryStack< T >::unregisterClass().
|
inline |
replace all instnce of word by replace word in string
[in] | word | word to replace |
[in] | rWord | replace word |
[in] | str | string to replace |
References tIndex.
remove all the empty characters at the end of the string
[in] | s | string to remove blank characters |
Referenced by trim().
|
inline |
tokenize
[in] | string | string to tokenize |
[in] | delim | : separator |
[out] | words | Get all the words separed by a separator |
References tString.
|
inline |
turn a string to lower value
[in,out] | s | string to transform |
Referenced by CORE_IO::CopyFiles(), CORE_IO::GetFiles(), parse(), and CORE_OptionsReader::ReadBoolean().
|
inline |
rretru the array to string
|
inline |
rretru the array to string
|
inline |
brief tranform the numeric type name value v to string
[in] | v | value to turn into string |
|
inline |
remove all the empty characters at the begining and end of the string
[in] | s | string to remove blank characters |
References ltrim(), and rtrim().
Referenced by CORE_Run::executeRun(), CORE_OptionsReader::ReadBoolean(), CORE_OptionsReader::ReadOptions(), CORE_OptionsReader::ReadOptionValue(), and CORE_OptionsReader::RegisterOption().
concept core_functions::iNotNullPointer = not std::is_pointer<std::nullptr_t>::value |
concept core_functions::isArithmeticType |
concept core_functions::isArray = std::is_array<T>() |
concept core_functions::isBaseOf = std::is_base_of_v<Base, Derived> |
concept core_functions::isBoundedArray = std::is_bounded_array<T>::value |
concept core_functions::isComplexType |
concept core_functions::isDoubleArray = std::is_pointer_v<T**> |
concept core_functions::isIntegerType |
concept core_functions::isOrderedType |
concept core_functions::isPointer = std::is_pointer_v<T> |
concept core_functions::isRealType |
concept core_functions::isSameType = std::is_same<T,Q>::value |
concept core_functions::isSignedIntegerType |
concept core_functions::isStringType |
concept core_functions::isUnboundedArray = std::is_unbounded_array<T>::value |
concept core_functions::isUnsignedIntegerType |