init_state Namespace Reference

Functions

const char * as_string (init_state_t initial_state)
init_state_t get_init_state_from_code (int code)

Function Documentation

const char* init_state::as_string ( init_state_t  initial_state  ) 
init_state_t init_state::get_init_state_from_code ( int  code  )  [inline]

Definition at line 41 of file init_state.h.

References e_undefined_init_state, e_vA, e_vbA, e_vbN, e_vbn, e_vbp, e_vN, e_vn, and e_vp.

Referenced by neugen_inputs::get_interaction().

00042      {
00043         if      (code == 1) return e_vp;
00044         else if (code == 2) return e_vn;
00045         else if (code == 5) return e_vN;
00046         else if (code == 6) return e_vA;
00047         else if (code == 3) return e_vbp;
00048         else if (code == 4) return e_vbn;
00049         else if (code == 7) return e_vbN;
00050         else if (code == 8) return e_vbA;
00051         else                return e_undefined_init_state;
00052      }


Generated on 3 Dec 2018 for loon by  doxygen 1.6.1