VGM Version 5.3
Loading...
Searching...
No Matches
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
19
20//_____________________________________________________________________________
21std::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}
The VGM interface to elements.
Definition IIsotope.h:28
virtual int N() const =0
Return the effective number of nucleons.
virtual std::string Name() const =0
Return the name of this element.
virtual double A() const =0
Return the effective effective mass of a mole in g/mole.
virtual int Z() const =0
Return the effective atomic number.
std::ostream & operator<<(std::ostream &out, const VGM::IIsotope &isotope)
Definition isotope.cxx:21