full_dist Class Reference

Full distribution including all nuclei from a discrete mass formula. More...

#include <nuclear_dist.h>

Inheritance diagram for full_dist:

nuclear_dist

Detailed Description

For example, to create a collection of all nuclei from the most recent (2003) Atomic Mass Evaluation, and then output all the nuclei in the collection
      ame_mass ame;
      full_dist fd(&ame);
      for(nuclear_dist::iterator ndi=fd.begin();ndi!=fd.end();ndi++) {
        cout << ndi->Z << " " << ndi->A << " " << ndi->m << endl;
      }

Definition at line 247 of file nuclear_dist.h.


Public Member Functions

 full_dist (nuclear_mass &nm, int maxA=400, bool include_neutron=false)
 Create a distribution including all nuclei with atomic numbers less than maxA from the mass formula nm.
int set_dist (nuclear_mass &nm, int maxA=400, bool include_neutron=false)
 Set the distribution to all nuclei with atomic numbers less than maxA from the mass formula nm.
virtual iterator begin ()
 The beginning of the distribution.
virtual iterator end ()
 The end of the distribution.
virtual size_t size ()
 The number of nuclei in the distribution.

Member Function Documentation

int set_dist ( nuclear_mass nm,
int  maxA = 400,
bool  include_neutron = false 
)

The information for the previous distribution is cleared before a new distribution is set.


The documentation for this class was generated from the following file:

Documentation generated with Doxygen and provided under the GNU Free Documentation License. See License Information for details.

Project hosting provided by SourceForge.net Logo, O2scl Sourceforge Project Page