nucleus Namespace Reference

Functions

const char * as_string (nucleus_t nucleus)

Function Documentation

const char* nucleus::as_string ( nucleus_t  nucleus  )  [inline]

Definition at line 35 of file nucleus.h.

References e_Al27, e_C12, e_Fe56, e_free, e_O16, and e_undefined_nucleus.

00035                                                       {
00036        switch(nucleus) {
00037          case e_free:  return "Free nucleon";       break;
00038          case e_C12:   return "Carbon";       break;
00039          case e_O16:   return "Oxygen";       break;
00040          case e_Fe56:  return "Iron";   break;
00041          case e_Al27:  return "Aluminum";   break;
00042 
00043          case e_undefined_nucleus:
00044          default:            
00045                       return "unknown nucleus"; break;
00046        }
00047        return "bad nucleus";
00048      }


Generated on 18 Oct 2018 for loon by  doxygen 1.6.1