VGM
Version 5.5
Toggle main menu visibility
Loading...
Searching...
No Matches
packages
BaseVGM
source
materials
isotope.cxx
Go to the documentation of this file.
1
// $Id$
2
3
// -----------------------------------------------------------------------
4
// The BaseVGM package of the Virtual Geometry Model
5
// Copyright (C) 2007, Ivana Hrivnacova
6
// All rights reserved.
7
//
8
// For the licensing terms see vgm/LICENSE.
9
// Contact: ivana@ipno.in2p3.fr
10
// -----------------------------------------------------------------------
11
12
//
13
// VGM::IIsotope output stream
14
// ----------------------------
15
//
16
// Author: Ivana Hrivnacova; IPN Orsay
17
18
#include "
VGM/materials/IIsotope.h
"
19
20
//_____________________________________________________________________________
21
std::ostream&
operator<<
(std::ostream& out,
const
VGM::IIsotope
& isotope)
22
{
23
out <<
"Isotope: "
24
<<
"\""
<< isotope.
Name
() <<
"\" "
25
<<
" Z = "
<< isotope.
Z
() <<
" N = "
<< isotope.
N
()
26
<<
" A = "
<< isotope.
A
() <<
" g/mole"
;
27
28
return
out;
29
}
IIsotope.h
VGM::IIsotope
The VGM interface to elements.
Definition
IIsotope.h:28
VGM::IIsotope::N
virtual int N() const =0
Return the effective number of nucleons.
VGM::IIsotope::Name
virtual std::string Name() const =0
Return the name of this element.
VGM::IIsotope::A
virtual double A() const =0
Return the effective effective mass of a mole in g/mole.
VGM::IIsotope::Z
virtual int Z() const =0
Return the effective atomic number.
operator<<
std::ostream & operator<<(std::ostream &out, const VGM::IIsotope &isotope)
Definition
isotope.cxx:21
Generated on
for VGM by
1.17.0