#include <AtomDef.h>
Definition at line 61 of file AtomDef.h.
◆ AtomDef() [1/2]
Heed::AtomDef::AtomDef |
( |
void |
| ) |
|
Definition at line 25 of file AtomDef.cpp.
25 : nameh("none"), notationh("none") {
27}
static AbsList< AtomDef * > & get_logbook(void)
◆ AtomDef() [2/2]
Heed::AtomDef::AtomDef |
( |
const String & |
fnameh, |
|
|
const String & |
fnotationh, |
|
|
int |
fZh, |
|
|
double |
fAh |
|
) |
| |
Definition at line 29 of file AtomDef.cpp.
31 : nameh(fnameh), notationh(fnotationh), Zh(fZh), Ah(fAh) {
36}
#define check_econd21(a, sign1_b1_sign0, sign2_b2, stream)
const int max_poss_atom_z
◆ ~AtomDef()
Heed::AtomDef::~AtomDef |
( |
| ) |
|
◆ A()
double Heed::AtomDef::A |
( |
void |
| ) |
const |
|
inline |
◆ get_A()
double Heed::AtomDef::get_A |
( |
int |
fZ | ) |
|
|
static |
Definition at line 38 of file AtomDef.cpp.
38 {
39 mfunnamep(
"double AtomDef::get_A(int fZ)");
43 if (
an->el->Z() == fZ)
return an->el->A();
44 }
46 mcerr <<
"Atom is not found, Z=" << fZ <<
'\n';
48 return 0.0;
49}
#define mfunnamep(string)
AbsListNode< T > * get_next_node(AbsListNode< T > *an) const
Referenced by Heed::ElElasticScat::fill_hist().
◆ get_AtomDef() [1/2]
◆ get_AtomDef() [2/2]
AtomDef * Heed::AtomDef::get_AtomDef |
( |
int |
fZ | ) |
|
|
static |
Definition at line 51 of file AtomDef.cpp.
51 {
52 mfunnamep(
"AtomDef* AtomDef::get_AtomDef(int fZ)");
56 if (
an->el->Z() == fZ)
return an->el;
57 }
59 mcerr <<
"Atom is not found, Z=" << fZ <<
'\n';
61 return NULL;
62}
◆ get_const_logbook()
const AbsList< AtomDef * > & Heed::AtomDef::get_const_logbook |
( |
void |
| ) |
|
|
static |
◆ get_logbook()
◆ macro_copy_total()
Heed::AtomDef::macro_copy_total |
( |
AtomDef |
| ) |
|
◆ name()
const String & Heed::AtomDef::name |
( |
void |
| ) |
const |
|
inline |
◆ notation()
const String & Heed::AtomDef::notation |
( |
void |
| ) |
const |
|
inline |
◆ print()
void Heed::AtomDef::print |
( |
std::ostream & |
file, |
|
|
int |
l = 0 |
|
) |
| const |
Definition at line 12 of file AtomDef.cpp.
12 {
13 if (l > 0) file << (*this);
14}
◆ printall()
void Heed::AtomDef::printall |
( |
std::ostream & |
file | ) |
|
|
static |
Definition at line 16 of file AtomDef.cpp.
16 {
17 Ifile <<
"AtomDef::printall:\n";
22 }
23}
◆ verify()
void Heed::AtomDef::verify |
( |
void |
| ) |
|
Definition at line 64 of file AtomDef.cpp.
64 {
66 if (nameh == "none" && notationh == "none") return;
70 if (
an->el->nameh == nameh ||
an->el->notationh == notationh) {
72 mcerr <<
"cannot initialize two atoms with the same name or notation\n";
73 mcerr <<
"name=" << nameh <<
" notation=" << notationh <<
'\n';
75 }
76 }
77}
Referenced by AtomDef().
◆ Z()
int Heed::AtomDef::Z |
( |
void |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: