00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifdef __GNUC__
00029 #pragma interface
00030 #endif
00031
00032 #include <stdexcept>
00033 #include <util/class/scexception.h>
00034
00035 #ifndef _chemistry_qc_mbptr12_spin_h
00036 #define _chemistry_qc_mbptr12_spin_h
00037
00038 namespace sc {
00039
00040 typedef enum { NSpinCases1 = 2, NSpinCases2 = 3} NSpinCases;
00041 typedef enum { NPureSpinCases2 = 2 } NPureSpinCases;
00042 typedef enum { AnySpinCase1 = -1, Alpha = 0, Beta = 1, InvalidSpinCase1 = 2} SpinCase1;
00043 typedef enum { AnySpinCase2 = -1, AlphaBeta = 0, AlphaAlpha = 1, BetaBeta = 2, InvalidSpinCase2 = 3} SpinCase2;
00044 typedef enum { AnyPureSpinCase2 = -1, Singlet = 0, Triplet = 1, InvalidPureSpinCase2 = 2} PureSpinCase2;
00046 unsigned int nspincases1(bool spin_polarized);
00048 unsigned int nspincases2(bool spin_polarized);
00050 unsigned int npurespincases2();
00052 SpinCase1 case1(SpinCase2 S);
00054 SpinCase1 case2(SpinCase2 S);
00055
00056 std::string to_string(SpinCase1 S);
00057 std::string to_string(SpinCase2 S);
00058 std::string to_string(PureSpinCase2 S);
00059 SpinCase1 to_spincase1(const std::string& key);
00060 SpinCase2 to_spincase2(const std::string& key);
00061 PureSpinCase2 to_purespincase2(const std::string& key);
00062
00063 enum { ToLowerCase = true,
00064 ToUpperCase = false };
00066 std::string prepend_spincase(SpinCase1 S, const std::string& R, bool lowercase = false);
00068 std::string prepend_spincase(SpinCase2 S, const std::string& R, bool lowercase = false);
00070 std::string prepend_spincase(PureSpinCase2 S, const std::string& R, bool lowercase = false);
00071
00072
00073 };
00074
00075 #endif
00076