GEMC
1.8
Geant4 Monte-Carlo Framework
Main Page
Data Structures
Files
File List
Globals
materials
material_factory.h
Go to the documentation of this file.
1
#ifndef MATERIAL_FACTORY_H
2
#define MATERIAL_FACTORY_H
3
4
5
// %%%%%%%%%%
6
// G4 headers
7
// %%%%%%%%%%
8
#include "G4Material.hh"
9
10
11
// %%%%%%%%%%%
12
// C++ headers
13
// %%%%%%%%%%%
14
#include <map>
15
#include <iostream>
16
using namespace
std
;
17
18
19
// %%%%%%%%%%%%%
20
// gemc headers
21
// %%%%%%%%%%%%%
22
#include "
run_conditions.h
"
23
#include "
usage.h
"
24
25
26
class
materials
27
{
28
public
:
29
virtual
map<string, G4Material*> initMaterials(
run_conditions
,
gemc_opts
) = 0;
// Pure Virtual Method to initialize G4 Materials
30
virtual
~materials
(){}
31
};
32
33
typedef
materials
*(*materialFactory)();
// Define materialFactory as a pointer to a function that returns a pointer
34
35
materials
*
getMaterialFactory
(map<string, materialFactory> *,
string
);
// returns materialFactory Function from Factory Map
36
37
map<string, materialFactory>
registerMaterialFactories
();
// Registers materialFactory in Factory Map
38
39
40
41
#endif
run_conditions.h
std
STL namespace.
getMaterialFactory
materials * getMaterialFactory(map< string, materialFactory > *, string)
Definition:
material_factory.cc:8
materials::~materials
virtual ~materials()
Definition:
material_factory.h:30
materials
Definition:
material_factory.h:26
gemc_opts
Definition:
usage.h:59
registerMaterialFactories
map< string, materialFactory > registerMaterialFactories()
Definition:
material_factory.cc:20
run_conditions
Definition:
run_conditions.h:74
usage.h
Generated on Wed Jul 6 2016 11:12:55 for GEMC by
1.8.11