NAMD
FreeEnergyRMgr.h
Go to the documentation of this file.
1 
7 //-------------------------------------------------------------------------
8 // ARestraintManager contains a (potentially long) list of restraint POINTERS
9 // written by David Hurwitz, March to May 1998.
10 //-------------------------------------------------------------------------
11 #if !defined(RMGR_HPP)
12  #define RMGR_HPP
13 
14 typedef ARestraint* pRestr;
15 
16 // to start, there's room for this number of restraint pointers
17 // each time array size is exceeded, its size is increased by this many times.
18 const int kNumToStart = 1024;
19 const int kMultiplier = 4;
20 
22 
24 private:
25  ARestraint** m_ppRestraints; // list of restraint pointers
26  int m_NumRestraints; // number of pointers in the list
27  int m_MaxNum; // max num pointers without allocating more mem
28  AFixedPosRestraint m_Dummy; // for setting ARestraint statics
29 
30 public:
34  void Add(ARestraint* pRestraint);
35  int GetNumRestraints() {return(m_NumRestraints);}
38  void PrintEnergyInfo();
39  void PrintRestraintInfo();
40  void Print_dU_dLambda_Info();
41  double Sum_dU_dLambdas();
43  void PrintPreInfo(int Index);
44  void SetLambdaKf(double LambdaKf) {m_Dummy.SetLambdaKf(LambdaKf);}
45  void SetLambdaRef(double LambdaRef) {m_Dummy.SetLambdaRef(LambdaRef);}
46  void SetLambdas(double LambdaKf, double LambdaRef)
47  {
48  m_Dummy.SetLambdaKf(LambdaKf);
49  m_Dummy.SetLambdaRef(LambdaRef);
50  }
51 };
52 
53 #endif
54 
void SetLambdas(double LambdaKf, double LambdaRef)
void SetLambdaRef(double LambdaRef)
ARestraint * pRestr
void PrintPreInfo(int Index)
double Sum_dU_dLambdas()
void SetLambdaKf(double LambdaKf)
const int kMultiplier
void Print_dU_dLambda_Info()
void Add(ARestraint *pRestraint)
void SetLambdaKf(double LambdaKf)
int Index
Definition: structures.h:26
Bool_t
const int kNumToStart
void UpdateCOMs(GlobalMasterFreeEnergy &CFE)
void SetLambdaRef(double LambdaRef)
void AddForces(GlobalMasterFreeEnergy &CFE)
Bool_t ThereIsAForcingRestraint()
ARestraint * operator[](int Index)