#include <wavelengths.h>
Public Member Functions | |
| characteristic () | |
| Default constructor. Calling certain methods may cause crashes! | |
| characteristic (std::string const &label) | |
| Retrieves characteristic wavelength for given label. | |
| bool | is_valid () const |
| Tests if the label passed to the contructor could be matched. | |
| const char * | label () const |
| Returns label (e.g. Cu or CuA1). | |
| float | as_angstrom () const |
| Wavelength (Angstrom). | |
| float | as_kev () const |
| Energy [keV]. | |
| float | as_ev () const |
| Energy [eV]. | |
Friends | |
| class | characteristic_iterator |
| characteristic | ( | std::string const & | label | ) |
Retrieves characteristic wavelength for given label.
The lookup is not case-sensitive.
See also: is_valid()
| bool is_valid | ( | ) | const [inline] |
Tests if the label passed to the contructor could be matched.
Shorthand for: as_angstrom() != 0
| const char* label | ( | ) | const [inline] |
Returns label (e.g. Cu or CuA1).
See also: is_valid()
| float as_angstrom | ( | ) | const [inline] |
Wavelength (Angstrom).
See also: is_valid()
| float as_kev | ( | ) | const [inline] |
| float as_ev | ( | ) | const [inline] |
1.5.6