A monte carlo pin cell spectral code for nuclear engineering applications.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
TallyFactory.h
Go to the documentation of this file.
1 
8 #ifndef TALLYFACTORY_H_
9 #define TALLYFACTORY_H_
10 
11 #include "Tally.h"
12 
13 
18 class TallyFactory {
19 
20 private:
25 
31  TallyFactory &operator=(const TallyFactory &) { return *this; }
32 
33 public:
34  ~TallyFactory() { }
35 
40  static TallyFactory *Get() {
41  static TallyFactory instance;
42  return &instance;
43  }
44 
45  Tally* createTally(Geometry* geometry, tallyType tally_type,
46  char* tally_name=(char*)"");
47  Tally* createTally(Region* region, tallyType tally_type,
48  char* tally_name=(char*)"");
49  Tally* createTally(Material* material, tallyType tally_type,
50  char* tally_name=(char*)"");
51  Tally* createTally(Isotope* isotope, tallyType tally_type,
52  char* tally_name=(char*)"");
53 };
54 
55 #endif /* TALLYFACTORY_H_ */
The Isotope represents a nuclide at some temperature.
Definition: Isotope.h:41
The Tally superclass and subclasses.
The region class represents a region in 2D space.
Definition: Region.h:58
static TallyFactory * Get()
Returns a static instance of the TallyFactory class.
Definition: TallyFactory.h:40
enum tallyTypes tallyType
The types of tallies which may be instantiated and used in a PINSPEC simulation.
The Geometry represents the highest level entity in which a neutron may reside during a PINSPEC simul...
Definition: Geometry.h:48
A Tally reprsents a set of bins for tallying some quantity.
Definition: Tally.h:172
TallyFactory & operator=(const TallyFactory &)
Assignment operator for static referencing of the TallyFactory.
Definition: TallyFactory.h:31
Tally * createTally(Geometry *geometry, tallyType tally_type, char *tally_name=(char *)"")
Method to create a tally for some tally type within the geometry.
Definition: TallyFactory.cpp:139
TallyFactory()
TallyFactory constructor.
Definition: TallyFactory.h:24
The Material class represents a collection of isotope objects.
Definition: Material.h:37
A utility class for creating instances of tallies.
Definition: TallyFactory.h:18