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 #ifndef _chemistry_qc_basis_sointegral_h
00029 #define _chemistry_qc_basis_sointegral_h
00030
00031 #ifdef __GNUC__
00032 #pragma interface
00033 #endif
00034
00035 #include <chemistry/qc/basis/integral.h>
00036 #include <chemistry/qc/basis/tbint.h>
00037 #include <chemistry/qc/basis/sobasis.h>
00038
00039 class OneBodySOInt : public RefCount {
00040 protected:
00041 Ref<OneBodyInt> ob_;
00042
00043 Ref<SOBasis> b1_;
00044 Ref<SOBasis> b2_;
00045
00046 double *buffer_;
00047
00048 int only_totally_symmetric_;
00049 public:
00050 OneBodySOInt(const Ref<OneBodyInt> &);
00051 virtual ~OneBodySOInt();
00052
00053 Ref<SOBasis> basis() const;
00054 Ref<SOBasis> basis1() const;
00055 Ref<SOBasis> basis2() const;
00056
00057 const double * buffer() const { return buffer_; }
00058
00059 virtual void compute_shell(int,int);
00060
00061
00062
00063
00064 virtual void reinitialize();
00065
00066 int only_totally_symmetric() const { return only_totally_symmetric_; }
00067 void set_only_totally_symmetric(int i) { only_totally_symmetric_ = i; }
00068 };
00069
00070
00071
00072 class TwoBodySOInt : public RefCount {
00073 protected:
00074 Ref<TwoBodyInt> tb_;
00075
00076 Ref<SOBasis> b1_;
00077 Ref<SOBasis> b2_;
00078 Ref<SOBasis> b3_;
00079 Ref<SOBasis> b4_;
00080
00081 double *buffer_;
00082
00083 int redundant_;
00084 int only_totally_symmetric_;
00085 public:
00086 TwoBodySOInt(const Ref<TwoBodyInt> &);
00087 virtual ~TwoBodySOInt();
00088
00089 Ref<SOBasis> basis() const;
00090 Ref<SOBasis> basis1() const;
00091 Ref<SOBasis> basis2() const;
00092 Ref<SOBasis> basis3() const;
00093 Ref<SOBasis> basis4() const;
00094
00095 const double * buffer() const { return buffer_; }
00096
00097 virtual void compute_shell(int,int,int,int);
00098
00099
00100
00101
00102
00103
00104 int redundant() const { return redundant_; }
00105
00106
00107
00108 int only_totally_symmetric() const { return only_totally_symmetric_; }
00109 void set_only_totally_symmetric(int i) { only_totally_symmetric_ = i; }
00110 };
00111
00112
00113
00114 #endif
00115
00116
00117
00118
00119