A monte carlo pin cell spectral code for nuclear engineering applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
TallyFactory Class Reference

A utility class for creating instances of tallies. More...

#include "pinspec/src/TallyFactory.h"

Public Member Functions

TallycreateTally (Geometry *geometry, tallyType tally_type, char *tally_name=(char *)"")
 Method to create a tally for some tally type within the geometry. More...
 
TallycreateTally (Region *region, tallyType tally_type, char *tally_name=(char *)"")
 Method to create a tally for some tally type within a region. More...
 
TallycreateTally (Material *material, tallyType tally_type, char *tally_name=(char *)"")
 Method to create a tally for some tally type within a material. More...
 
TallycreateTally (Isotope *isotope, tallyType tally_type, char *tally_name=(char *)"")
 Method to create a tally for some tally type within an isotope. More...
 

Static Public Member Functions

static TallyFactoryGet ()
 Returns a static instance of the TallyFactory class. More...
 

Private Member Functions

 TallyFactory ()
 TallyFactory constructor.
 
TallyFactoryoperator= (const TallyFactory &)
 Assignment operator for static referencing of the TallyFactory. More...
 

Detailed Description

A utility class for creating instances of tallies.

Member Function Documentation

Tally * TallyFactory::createTally ( Geometry geometry,
tallyType  tally_type,
char *  tally_name = (char*)"" 
)

Method to create a tally for some tally type within the geometry.

Parameters
geometrya pointer to the geometry within which to tally
tally_typethe type of tally (ie, FLUX, CAPTURE_RATE, etc.)
tally_namea character array for the name of the tally
Returns
a pointer to the newly created tally
Tally * TallyFactory::createTally ( Region region,
tallyType  tally_type,
char *  tally_name = (char*)"" 
)

Method to create a tally for some tally type within a region.

Parameters
regiona pointer to the region within which to tally
tally_typethe type of tally (ie, FLUX, CAPTURE_RATE, etc.)
tally_namea character array for the name of the tally
Returns
a pointer to the newly created tally
Tally * TallyFactory::createTally ( Material material,
tallyType  tally_type,
char *  tally_name = (char*)"" 
)

Method to create a tally for some tally type within a material.

Parameters
materiala pointer to the material within which to tally
tally_typethe type of tally (ie, FLUX, CAPTURE_RATE, etc.)
tally_namea character array for the name of the tally
Returns
a pointer to the newly created tally
Tally * TallyFactory::createTally ( Isotope isotope,
tallyType  tally_type,
char *  tally_name = (char*)"" 
)

Method to create a tally for some tally type within an isotope.

Parameters
isotopea pointer to the isotope to tally
tally_typethe type of tally (ie, FLUX, CAPTURE_RATE, etc.)
tally_namea character array for the name of the tally
Returns
a pointer to the newly created tally
static TallyFactory* TallyFactory::Get ( )
inlinestatic

Returns a static instance of the TallyFactory class.

Returns
a pointer to the static TallyFactory class
TallyFactory& TallyFactory::operator= ( const TallyFactory )
inlineprivate

Assignment operator for static referencing of the TallyFactory.

Parameters
&the TallyFactory static class object
Returns
a pointer to the TallyFactory static class object

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