Bayeux
3.4.1
Core Foundation library for SuperNEMO
|
Material compound entry. More...
#include <bayeux/materials/material.h>
Public Member Functions | |
compound_entry () | |
Constructor. More... | |
~compound_entry () | |
Destructor. More... | |
bool | is_valid () const |
Check validity. More... | |
bool | has_element () const |
Check for a element compound. More... | |
bool | has_material () const |
Check for a material compound. More... | |
bool | is_owned () const |
Check for an owned compound. More... | |
bool | has_weight () const |
Check the weight. More... | |
bool | has_number_of_atoms () const |
Check the number of atoms. More... | |
double | get_weight () const |
Return the weight. More... | |
void | set_weight (double) |
Set the weight. More... | |
int | get_number_of_atoms () const |
Return the number of atoms. More... | |
void | set_number_of_atoms (int) |
Set the number of atoms. More... | |
void | set_element (const element &elt_, bool owned_=false) |
Set the element. More... | |
void | set_material (const material &mat_, bool owned_=false) |
Set the material. More... | |
void | set_element (const element *elt_, bool owned_=true) |
Set the element. More... | |
void | set_material (const material *mat_, bool owned_=true) |
Set the material. More... | |
const element & | get_element () const |
Return the compound element. More... | |
const material & | get_material () const |
Return the compound material. More... | |
void | reset () |
Reset. More... | |
void | reset_compound () |
Reset the compound. More... | |
Material compound entry.
materials::compound_entry::compound_entry | ( | ) |
Constructor.
materials::compound_entry::~compound_entry | ( | ) |
Destructor.
const element& materials::compound_entry::get_element | ( | ) | const |
Return the compound element.
const material& materials::compound_entry::get_material | ( | ) | const |
Return the compound material.
int materials::compound_entry::get_number_of_atoms | ( | ) | const |
Return the number of atoms.
double materials::compound_entry::get_weight | ( | ) | const |
Return the weight.
bool materials::compound_entry::has_element | ( | ) | const |
Check for a element compound.
bool materials::compound_entry::has_material | ( | ) | const |
Check for a material compound.
bool materials::compound_entry::has_number_of_atoms | ( | ) | const |
Check the number of atoms.
bool materials::compound_entry::has_weight | ( | ) | const |
Check the weight.
bool materials::compound_entry::is_owned | ( | ) | const |
Check for an owned compound.
bool materials::compound_entry::is_valid | ( | ) | const |
Check validity.
void materials::compound_entry::reset | ( | ) |
Reset.
void materials::compound_entry::reset_compound | ( | ) |
Reset the compound.
void materials::compound_entry::set_element | ( | const element & | elt_, |
bool | owned_ = false |
||
) |
Set the element.
void materials::compound_entry::set_element | ( | const element * | elt_, |
bool | owned_ = true |
||
) |
Set the element.
void materials::compound_entry::set_material | ( | const material & | mat_, |
bool | owned_ = false |
||
) |
Set the material.
void materials::compound_entry::set_material | ( | const material * | mat_, |
bool | owned_ = true |
||
) |
Set the material.
void materials::compound_entry::set_number_of_atoms | ( | int | ) |
Set the number of atoms.
void materials::compound_entry::set_weight | ( | double | ) |
Set the weight.