#include <ServiceMaterial.h>
|
| struct | Entry |
| | Structure holding one service material. More...
|
Definition at line 12 of file ServiceMaterial.h.
◆ EntryContainer
◆ EntryIter
◆ ServiceMaterial() [1/3]
| ServiceMaterial::ServiceMaterial |
( |
| ) |
|
|
inline |
◆ ServiceMaterial() [2/3]
| ServiceMaterial::ServiceMaterial |
( |
const std::string & | name, |
|
|
const std::vector< Entry > & | cmp ) |
|
inline |
Definition at line 36 of file ServiceMaterial.h.
36 :
const std::string & name() const
Constructor for elementary material (no components)
std::vector< Entry > m_components
◆ ServiceMaterial() [3/3]
| ServiceMaterial::ServiceMaterial |
( |
const std::string & | name | ) |
|
|
inline |
◆ addEntry() [1/2]
| void ServiceMaterial::addEntry |
( |
const Entry & | e | ) |
|
|
inline |
◆ addEntry() [2/2]
| void ServiceMaterial::addEntry |
( |
const std::string & | nam, |
|
|
int | num, |
|
|
bool | lin, |
|
|
double | w = 1 ) |
|
inline |
Definition at line 52 of file ServiceMaterial.h.
52 {
54 }
Structure holding one service material.
◆ components()
| const std::vector< Entry > & ServiceMaterial::components |
( |
| ) |
const |
|
inline |
◆ dump()
| void ServiceMaterial::dump |
( |
std::ostream & | os | ) |
const |
Definition at line 8 of file ServiceMaterial.cxx.
9{
10 os << std::endl <<
"Dump of ServiceMaterial " <<
name()
11 <<
" containing " <<
components().size() <<
" components" << std::endl;
12 double totalWeight = 0;
15 os <<
"Comp. " <<
i <<
" name " <<
comp.name
16 <<
" number " <<
comp.number
17 <<
" weight " <<
comp.weight
18 <<
" is linear? " <<
comp.linear
19 << std::endl;
20 totalWeight +=
comp.weight *
comp.number;
21 }
22 os <<
"Total weight: " << totalWeight << std::endl;
23}
const std::vector< Entry > & components() const
◆ multiply()
| void ServiceMaterial::multiply |
( |
int | factor | ) |
|
|
inline |
◆ name()
| const std::string & ServiceMaterial::name |
( |
| ) |
const |
|
inline |
Constructor for elementary material (no components)
Definition at line 46 of file ServiceMaterial.h.
◆ m_components
| std::vector< Entry> ServiceMaterial::m_components |
|
private |
◆ m_name
| std::string ServiceMaterial::m_name |
|
private |
The documentation for this class was generated from the following files: