#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 |
◆ ServiceMaterial() [3/3]
ServiceMaterial::ServiceMaterial |
( |
const std::string & |
name | ) |
|
|
inline |
◆ addEntry() [1/2]
◆ addEntry() [2/2]
void ServiceMaterial::addEntry |
( |
const std::string & |
nam, |
|
|
int |
num, |
|
|
bool |
lin, |
|
|
double |
w = 1 |
|
) |
| |
|
inline |
◆ 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.
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
20 totalWeight +=
comp.weight *
comp.number;
22 os <<
"Total weight: " << totalWeight << std::endl;
◆ 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:
Structure holding one service material.