Auxiliary data structure to customize scattering length.
More...
#include <JPDFSupportkit.hh>
|
| static double | getScatteringLength (const double lambda) |
| | Get scattering length.
|
| |
| static double & | get_factor () |
| | Get reference to multiplication factor.
|
| |
| static mapped_type & | get_function () |
| | Get reference to global functon.
|
| |
|
| static constexpr const char *const | default_t = "default" |
| |
Auxiliary data structure to customize scattering length.
Definition at line 183 of file JPDFSupportkit.hh.
◆ JScatteringLength()
| JPHYSICS::JScatteringLength::JScatteringLength |
( |
| ) |
|
|
inline |
Default constructor.
Definition at line 192 of file JPDFSupportkit.hh.
193 {
195
198 }
double getScatteringLength(const double lambda)
static constexpr const char *const default_t
static double & get_factor()
Get reference to multiplication factor.
static mapped_type & get_function()
Get reference to global functon.
◆ getScatteringLength()
| static double JPHYSICS::JScatteringLength::getScatteringLength |
( |
const double | lambda | ) |
|
|
inlinestatic |
Get scattering length.
- Parameters
-
| lambda | wavelength of light [nm] |
- Returns
- scattering length [m]
Definition at line 246 of file JPDFSupportkit.hh.
◆ get_factor()
| static double & JPHYSICS::JScatteringLength::get_factor |
( |
| ) |
|
|
inlinestatic |
Get reference to multiplication factor.
- Returns
- factor
Definition at line 257 of file JPDFSupportkit.hh.
258 {
259 static double factor = 1.0;
260
261 return factor;
262 }
◆ get_function()
| static mapped_type & JPHYSICS::JScatteringLength::get_function |
( |
| ) |
|
|
inlinestatic |
Get reference to global functon.
- Returns
- function
Definition at line 270 of file JPDFSupportkit.hh.
271 {
273
274 return f1;
275 }
◆ operator>>
Read scattering length from input stream.
- Parameters
-
| in | input stream |
| object | scattering length |
- Returns
- input stream
Definition at line 208 of file JPDFSupportkit.hh.
209 {
211
213
214 JScatteringLength::const_iterator p = object.find(option);
215
216 if (p != object.end())
218 else
219 in.setstate(ios_base::badbit);
220 }
221
222 return in;
223 }
◆ operator<<
Write scattering length to output stream.
- Parameters
-
| out | output stream |
| object | scattering length |
- Returns
- output stream
Definition at line 233 of file JPDFSupportkit.hh.
234 {
237 }
std::string getKey(const std::map< std::string, T > &map, const std::string &key, const T &value)
Auxiliary method to get preferred key for given value.
◆ default_t
| const char* const JPHYSICS::JScatteringLength::default_t = "default" |
|
staticconstexpr |
The documentation for this struct was generated from the following file: