Particles and Nuclei Sub-Library: Version 0.910
Public Member Functions
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 248 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 full_dist::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:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Friends

Documentation generated with Doxygen. Provided under the GNU Free Documentation License (see License Information).

Get Object-oriented Scientific Computing
Lib at SourceForge.net. Fast, secure and Free Open Source software
downloads.