simple_dist Class Reference

#include <nuclear_dist.h>

Inheritance diagram for simple_dist:

nuclear_dist

Detailed Description

A simple nuclear distribution given a range in A and Z.

The iterator for this distribution begins with the nucleus with the lowest Z and A, and increases A before incrementing Z and beginning again with the lowest A for that value of Z.

Todo:
This takes a nuclear_mass pointer as input. It should probably be a reference instead?
Todo:
Add error checking in constructors and set functions

Definition at line 150 of file nuclear_dist.h.


Public Member Functions

 simple_dist (int minZ, int maxZ, int minA[], int maxA[], nuclear_mass *nm)
 Create a distribution from ranges in A specified for each Z.
 simple_dist (int minZ, int maxZ, int minA, int maxA, nuclear_mass *nm)
 Create a square distribution in A and Z.
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.
int set_dist (int minZ, int maxZ, int minA[], int maxA[], nuclear_mass *nm)
 Set the distribution from ranges in A specified for each Z.
int set_dist (int minZ, int maxZ, int minA, int maxA, nuclear_mass *nm)
 Set a square distribution in A and Z.

Constructor & Destructor Documentation

simple_dist ( int  minZ,
int  maxZ,
int  minA[],
int  maxA[],
nuclear_mass nm 
)

Create a distribution from ranges in A specified for each Z.

The length of the arrays minA and maxA should be exactly $\mathrm{maxZ}-\mathrm{minZ}+1$.


Member Function Documentation

int set_dist ( int  minZ,
int  maxZ,
int  minA[],
int  maxA[],
nuclear_mass nm 
)

Set the distribution from ranges in A specified for each Z.

The length of the arrays minA and maxA should be exactly $\mathrm{maxZ}-\mathrm{minZ}+1$.


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.