|
musrWiz 0.1.0
|
The PMusrfitFunc class represents a musrfit theory function. More...
#include <PMusrfitFunc.h>
Public Member Functions | |
| PMusrfitFunc () | |
| Constructor. Initializes to default values. | |
| ~PMusrfitFunc () | |
| Destructor. | |
| void | initFunc () |
| Initializes all member variables to default values. | |
| void | setName (QString name) |
| Sets the function name. | |
| void | setAbbrv (QString abbrv) |
| Sets the function abbreviation. | |
| void | setNoOfParam (int ival) |
| Sets the number of parameters this function takes. | |
| void | addFuncParam (PFuncParam param) |
| Adds a parameter definition to this function. | |
| QString | getName () |
| Returns the function name. | |
| QString | getAbbrv () |
| Returns the function abbreviation. | |
| int | getNoOfParam () |
| Returns the number of parameters. | |
| PFuncParam | getFuncParam (int idx) |
| Returns a function parameter by index. | |
| QVector< PFuncParam > * | getFuncParams () |
| Returns a pointer to the parameter vector. | |
Private Attributes | |
| QString | fName |
| full function name | |
| QString | fAbbrv |
| abbreviation for msr-files | |
| int | fNoOfParam |
| number of parameters | |
| QVector< PFuncParam > | fParam |
| parameter definitions | |
The PMusrfitFunc class represents a musrfit theory function.
This class holds the definition of a musrfit theory function including its full name, abbreviation (used in msr-files), number of parameters, and the parameter definitions. Examples include simpleGss (sg), simpleLor (sl), TFieldCos (tf), etc.
|
inline |
Constructor. Initializes to default values.
|
inline |
Destructor.
|
inline |
Adds a parameter definition to this function.
| param | Parameter object to add. |
|
inline |
Returns the function abbreviation.
| PFuncParam PMusrfitFunc::getFuncParam | ( | int | idx | ) |
Returns a function parameter by index.
PMusrfitFunc::getFuncParam returns a function parameter by index.
| idx | Index of the parameter. |
| idx | Index of the parameter (0-based). |
|
inline |
Returns a pointer to the parameter vector.
|
inline |
Returns the function name.
|
inline |
Returns the number of parameters.
| void PMusrfitFunc::initFunc | ( | ) |
Initializes all member variables to default values.
PMusrfitFunc::initFunc initializes all member variables to default values.
Sets name and abbreviation to "UnDef", number of parameters to -1, and clears the parameter list.
|
inline |
Sets the function abbreviation.
| abbrv | Abbreviation used in msr-files (e.g., "sg"). |
|
inline |
Sets the function name.
| name | Full function name (e.g., "simpleGss"). |
|
inline |
Sets the number of parameters this function takes.
| ival | Number of parameters. |
|
private |
abbreviation for msr-files
|
private |
full function name
|
private |
number of parameters
|
private |
parameter definitions