Class xlifepp::Parameter#
-
class Parameter#
-
Collaboration diagram for xlifepp::Parameter:
encapsulates any scalar value of type int, real_t, complex_t, string_t or const void*.
main standard algebric operations are supported for parameter of numerical type
const void* allows to store anything; it is designed for advanced users because void pointers are unsafe particular pointers are managed by class: std::vector<real_t>* to store some reals std::vector<complex_t>* to store some complexes std::vector<int_t>* to store some integers std::vector<string_t>* to store some strings Matrix<real_t>* to store a real matrix Matrix<complex_t>* to store a complex matrix Point* to store a point std::vector<Point>* to store some points
Public Functions
-
Parameter()#
-
default constructor
-
Parameter(const bool b, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a bool
-
Parameter(const char *s, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a char array
-
Parameter(const complex_t &c, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a complex_t
-
explicit Parameter(const Function &fct, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Function (defined in Function.cpp)
-
explicit Parameter(const GeomDomain &dom, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Spline
constructor from a GeomDomain (defined in GeomDomain.cpp)
-
Parameter(const int i, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from an int
-
Parameter(const int_t i, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from an int_t
-
explicit Parameter(const IntegrationMethod &im, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a IntegrationMethod (defined in IntegrationMethod.cpp)
-
explicit Parameter(const IntegrationMethods &ims, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a IntegrationMethod (defined in IntegrationMethod.cpp)
-
explicit Parameter(const Matrix<complex_t> &cm, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Matrix<complex_t>
-
explicit Parameter(const Matrix<real_t> &rm, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Matrix<real_t>
-
Parameter(const number_t i, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a number_t
-
Parameter(const Parameter &p, const string_t &nm, const Strings &snm)#
-
copy constructor with optional arg name
-
Parameter(const Parameter &p, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
copy constructor with optional arg name
-
explicit Parameter(const Parametrization &par, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Parametrization (defined in Parametrization.cpp)
-
explicit Parameter(const Point &p, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a Point
-
Parameter(const real_t r, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a real_t
-
explicit Parameter(const std::vector<bool> &bv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<bool>
-
explicit Parameter(const std::vector<complex_t> &cv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<complex_t>
-
explicit Parameter(const std::vector<int_t> &iv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<int_t>
-
explicit Parameter(const std::vector<number_t> &nv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<number_t>
-
explicit Parameter(const std::vector<Point> &pv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a vector of Point
-
explicit Parameter(const std::vector<real_t> &rv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<real_t>
-
explicit Parameter(const std::vector<string_t> &sv, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a std::vector<string_t>
-
Parameter(const string_t &s, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a string_t
-
explicit Parameter(const TermVectors &tvs, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a TermVectors (defined in TermVector.cpp)
-
Parameter(const void *p, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from a const void*
-
Parameter(ParameterKey key, const string_t &nm, const Strings &snm)#
-
constructor from key
default constructor
-
Parameter(ParameterKey key, const string_t &nm = string_t(""), const string_t &snm = string_t(""))#
-
constructor from key
default constructor
-
inline ~Parameter()#
-
parameter destructor
-
void deletePointer()#
-
delete pointer if type is a vector or a matrix
delete pointer if type is a vector, a matrix, ….
-
inline bool get_b() const#
-
get parameter bool value
-
inline const std::vector<bool> &get_bv() const#
-
get parameter as std::vector<bool>
-
inline complex_t get_c() const#
-
get parameter complex value
-
inline const std::vector<complex_t> &get_cv() const#
-
get parameter as std::vector<complex_t>
-
inline const void *get_p() const#
-
get parameter const void* value
-
inline real_t get_r() const#
-
get parameter real value
-
inline const Matrix<real_t> &get_rm() const#
-
get parameter as Matrix<real_t>
-
inline const std::vector<real_t> &get_rv() const#
-
get parameter as std::vector<real_t>
-
inline string_t get_s() const#
-
get parameter string_t value
-
inline const std::vector<string_t> &get_sv() const#
-
get parameter as std::vector<string_t>
-
void illegalOperation(const string_t &t1, const string_t &op, const string_t &t2) const#
-
error handlers
-
inline ParameterKey key() const#
-
get parameter key
-
inline string_t name() const#
-
get name
-
inline void name(const string_t &nm)#
-
set name
-
template<typename T>
inline bool operator<=(const T &t)#
-
returns true if parameter is less than or equal to t
-
inline Parameter &operator=(const BezierSpline &s)#
-
set to a Spline parameter
-
inline Parameter &operator=(const CatmullRomSpline &s)#
-
set to a Spline parameter
-
inline Parameter &operator=(const ComputationType ct)#
-
set to a ComputationType
-
inline Parameter &operator=(const DimensionType dt)#
-
set to a DimensionType
-
inline Parameter &operator=(const EigenComputationalMode ecm)#
-
set to a EigenComputationalMode
-
inline Parameter &operator=(const EigenSolverType est)#
-
set to a EigenSolverType
-
inline Parameter &operator=(const EigenSortKind esk)#
-
set to a EigenSortKind
-
inline Parameter &operator=(const FunctionPart fp)#
-
set to a FunctionPart
-
Parameter &operator=(const GeomDomain &dom)#
-
set to a GeomDomain
-
inline Parameter &operator=(const GeometricEndShape ges)#
-
set to a GeometricEndShape
-
inline Parameter &operator=(const IntegrationMethod &im)#
-
- Parameters:
-
im – set to a IntegrationMethod
-
inline Parameter &operator=(const IntegrationMethodType imt)#
-
set to a IntegrationMethodType
-
inline Parameter &operator=(const InterpolationType it)#
-
set to a InterpolationType
-
inline Parameter &operator=(const IterativeSolverType ist)#
-
set to an IterativeSolverType
-
inline Parameter &operator=(const LenoirSalles2dIM &im)#
-
set to a LenoirSalles2dIM parameter
-
inline Parameter &operator=(const LenoirSalles2dIR &im)#
-
set to a LenoirSalles2dIR parameter
-
inline Parameter &operator=(const LenoirSalles3dIM &im)#
-
set to a LenoirSalles3dIM parameter
-
inline Parameter &operator=(const LenoirSalles3dIR &im)#
-
set to a LenoirSalles3dIR parameter
-
inline Parameter &operator=(const Matrix<real_t> &rm)#
-
set to a Matrix<real_t>
-
inline Parameter &operator=(const MeshGenerator mg)#
-
set to a MeshGenerator
-
Parameter &operator=(const Parametrization&)#
-
set to a Parametrization parameter
-
inline Parameter &operator=(const Partitioning p)#
-
set to a Partitioning
-
inline Parameter &operator=(const PolynomialIM &im)#
-
set to a PolynomialIM parameter
-
inline Parameter &operator=(const QuadratureIM &im)#
-
set to a QuadratureIM parameter
-
inline Parameter &operator=(const ReductionMethodType rmt)#
-
set to a ReductionMethodType
-
inline Parameter &operator=(const SauterSchwabIM &im)#
-
set to a SauterSchwabIM parameter
-
inline Parameter &operator=(const SauterSchwabSymIM &im)#
-
set to a SauterSchwabSymIM parameter
-
inline Parameter &operator=(const SobolevType st)#
-
set to a SobolevType
-
inline Parameter &operator=(const SplineParametrization sp)#
-
set to a SplineParametrization
-
inline Parameter &operator=(const SplineSubtype sst)#
-
set to a SplineSubtype
-
inline Parameter &operator=(const SplineType st)#
-
set to a SplineType
-
inline Parameter &operator=(const StorageAccessType sat)#
-
set to a StorageAccessType
-
inline Parameter &operator=(const StorageType st)#
-
set to a StorageType
-
inline Parameter &operator=(const StructuredMeshSplitRule smsr)#
-
set to a StructuredMeshSplitRule
-
Parameter &operator=(const TermVectors &tvs)#
-
set to a IntegrationMethods
-
Parameter &operator=(const Transformation &t)#
-
set to a TermVectors
-
inline Parameter &operator=(const TransformType tt)#
-
set to a TransformType
-
template<typename T_>
inline Parameter &operator=(T_ t)#
-
set to a Transformation
set to any value
-
bool operator==(const bool)#
-
compare to a bool
-
bool operator==(const char*)#
-
compare to a string_t char
-
bool operator==(const complex_t&)#
-
compare to a complex
-
bool operator==(const int)#
-
compare to an int
-
bool operator==(const real_t)#
-
compare to a real
-
bool operator==(const string_t&)#
-
compare to a string_t
-
bool operator>(const complex_t&)#
-
compare to a complex
-
bool operator>(const int)#
-
compare to an int
-
bool operator>(const real_t)#
-
compare to a real
-
bool operator>(const string_t&)#
-
compare to a string_t
-
template<typename T>
inline bool operator>=(const T &t)#
-
returns true if parameter is greater than or equal to t
-
void setToIntegrationMethod(const IntegrationMethod &im)#
-
set to a IntegrationMethod parameter
-
inline void shortnames(const string_t &snm)#
-
set shortnames
-
inline string_t typeName() const#
-
get parameter type as string