3 #ifndef PYNE_7DOEB2PKSBEFFIA3Q2NARI3KFY     4 #define PYNE_7DOEB2PKSBEFFIA3Q2NARI3KFY    14 #ifndef PYNE_IS_AMALGAMATED    20 #define NUM_RX_NAMES 574    27   extern std::string 
_names[NUM_RX_NAMES];  
    28   extern std::set<std::string> 
names;
    31   extern std::map<unsigned int, std::string> 
id_name;
    33   extern std::map<std::string, unsigned int> 
name_id;
    35   extern std::map<std::string, unsigned int> 
altnames;
    37   extern std::map<unsigned int, unsigned int> 
id_mt;
    39   extern std::map<unsigned int, unsigned int> 
mt_id;
    41   extern std::map<unsigned int, std::string> 
labels;
    43   extern std::map<unsigned int, std::string> 
docs;
    46   extern std::map<std::pair<std::string, int>, 
unsigned int> 
offset_id;
    49   extern std::map<std::pair<std::string, unsigned int>, 
int> 
id_offset;
    56   inline int offset(
int dz, 
int da, 
int ds=0) {
return dz*10000000 + da*10000 + ds;}
    63   unsigned int hash(std::string s);
    64   unsigned int hash(
const char * s);
    78   std::string name(
int n);
    79   std::string name(
unsigned int n);
    80   std::string name(
char * s);
    81   std::string name(std::string s);
    82   std::string name(
int from_nuc, 
int to_nuc, std::string z=
"n");
    83   std::string name(
int from_nuc, std::string to_nuc, std::string z=
"n");
    84   std::string name(std::string from_nuc, 
int to_nuc, std::string z=
"n");
    85   std::string name(std::string from_nuc, std::string to_nuc, std::string z=
"n");
   100   unsigned int id(
int x);
   101   unsigned int id(
unsigned int x);
   102   unsigned int id(
const char * x);
   103   unsigned int id(std::string x);
   104   unsigned int id(
int from_nuc, 
int to_nuc, std::string z=
"n");
   105   unsigned int id(
int from_nuc, std::string to_nuc, std::string z=
"n");
   106   unsigned int id(std::string from_nuc, 
int to_nuc, std::string z=
"n");
   107   unsigned int id(std::string from_nuc, std::string to_nuc, std::string z=
"n");
   121   unsigned int mt(
int x);
   122   unsigned int mt(
unsigned int x);
   123   unsigned int mt(
char * x);
   124   unsigned int mt(std::string x);
   125   unsigned int mt(
int from_nuc, 
int to_nuc, std::string z=
"n");
   126   unsigned int mt(
int from_nuc, std::string to_nuc, std::string z=
"n");
   127   unsigned int mt(std::string from_nuc, 
int to_nuc, std::string z=
"n");
   128   unsigned int mt(std::string from_nuc, std::string to_nuc, std::string z=
"n");
   142   std::string label(
int x);
   143   std::string label(
unsigned int x);
   144   std::string label(
char * x);
   145   std::string label(std::string x);
   146   std::string label(
int from_nuc, 
int to_nuc, std::string z=
"n");
   147   std::string label(
int from_nuc, std::string to_nuc, std::string z=
"n");
   148   std::string label(std::string from_nuc, 
int to_nuc, std::string z=
"n");
   149   std::string label(std::string from_nuc, std::string to_nuc, std::string z=
"n");
   163   std::string doc(
int x);
   164   std::string doc(
unsigned int x);
   165   std::string doc(
char * x);
   166   std::string doc(std::string x);
   167   std::string doc(
int from_nuc, 
int to_nuc, std::string z=
"n");
   168   std::string doc(
int from_nuc, std::string to_nuc, std::string z=
"n");
   169   std::string doc(std::string from_nuc, 
int to_nuc, std::string z=
"n");
   170   std::string doc(std::string from_nuc, std::string to_nuc, std::string z=
"n");
   182   int parent(
int nuc, 
unsigned int rx, std::string z=
"n");
   183   int parent(
int nuc, std::string rx, std::string z=
"n");
   184   int parent(std::string nuc, 
unsigned int rx, std::string z=
"n");
   185   int parent(std::string nuc, std::string rx, std::string z=
"n");
   197   int child(
int nuc, 
unsigned int rx, std::string z=
"n");
   198   int child(
int nuc, std::string rx, std::string z=
"n");
   199   int child(std::string nuc, 
unsigned int rx, std::string z=
"n");
   200   int child(std::string nuc, std::string rx, std::string z=
"n");
   227       rxnow = pyne::to_str(nowptr);
   234       rxwas = pyne::to_str(wasptr);
   242       rxwas = pyne::to_str(wasptr);
   243       rxnow = pyne::to_str(nowptr);
   251       rxnow = pyne::to_str(nowptr);
   258       rxwas = pyne::to_str(wasptr);
   266       rxwas = pyne::to_str(wasptr);
   267       rxnow = pyne::to_str(nowptr);
   271     virtual const char* 
what() 
const throw()
   273       std::string narxstr (
"Not a reaction! ");
   282       const char* narxstr_rtn = narxstr.c_str();
   317       rxnow = pyne::to_str(nowptr);
   324       rxwas = pyne::to_str(wasptr);
   332       rxwas = pyne::to_str(wasptr);
   333       rxnow = pyne::to_str(nowptr);
   337     virtual const char* 
what() 
const throw()
   339       std::string INFEstr (
"Indeterminate reaction form: ");
   348       const char* INFEstr_rtn = INFEstr.c_str();
   359 #endif  // PYNE_7DOEB2PKSBEFFIA3Q2NARI3KFY std::map< std::string, unsigned int > altnames
Mapping between alternative names for reactions and the reaction id. 
Definition: rxname.cpp:585
std::map< unsigned int, std::string > id_name
Mapping from reaction ids to reaction names. 
Definition: rxname.cpp:586
NotAReaction(std::string wasptr, unsigned int nowptr)
Definition: rxname.h:248
virtual const char * what() const
Returns a helpful error message containing prior and current reaction state. 
Definition: rxname.h:271
NotAReaction(std::string wasptr, int nowptr)
Definition: rxname.h:224
void * _fill_maps()
A helper function to set the contents of the variables in this library. 
Definition: rxname.cpp:595
std::map< std::string, unsigned int > name_id
Mapping from reaction names to reaction ids. 
Definition: rxname.cpp:587
std::map< unsigned int, unsigned int > mt_id
Mapping from MT numbers to reaction names. 
Definition: rxname.cpp:589
~NotAReaction()
default destructor 
Definition: rxname.h:212
std::map< std::pair< std::string, int >, unsigned int > offset_id
Definition: rxname.cpp:592
NotAReaction(unsigned int wasptr, unsigned int nowptr)
Definition: rxname.h:264
std::map< std::pair< std::string, unsigned int >, int > id_offset
Definition: rxname.cpp:593
NotAReaction()
default constructor 
Definition: rxname.h:209
NotAReaction(int wasptr, std::string nowptr)
Definition: rxname.h:232
std::map< unsigned int, std::string > labels
Mapping from reaction ids to labels (short descriptions). 
Definition: rxname.cpp:590
std::set< std::string > names
Set of reaction names, must be valid variable names. 
std::map< unsigned int, unsigned int > id_mt
Mapping from reaction ids to MT numbers. 
Definition: rxname.cpp:588
NotAReaction(std::string wasptr, std::string nowptr)
Definition: rxname.h:216
std::map< unsigned int, std::string > docs
Mapping from reaction ids to documentation strings (long descriptions). 
Definition: rxname.cpp:591
NotAReaction(int wasptr, int nowptr)
Definition: rxname.h:240
NotAReaction(unsigned int wasptr, std::string nowptr)
Definition: rxname.h:256
A container representing enrichment cascades. 
Definition: _atomic_data.h:16
std::string _names[NUM_RX_NAMES]
Definition: rxname.cpp:5
Custom exception for declaring a value not to be a valid reaction. 
Definition: rxname.h:204
int offset(int dz, int da, int ds=0)
A helper function to compute nuclide id offsets from z-, a-, and s- deltas. 
Definition: rxname.h:56
void * _
A dummy variable used when calling _fill_maps(). 
Definition: rxname.cpp:2570