Changeset c830e8e for molecuilder/src/molecules.hpp
- Timestamp:
- Apr 2, 2009, 4:12:54 PM (17 years ago)
- Children:
- 3021d93
- Parents:
- 451d7a
- File:
-
- 1 edited
-
molecuilder/src/molecules.hpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecules.hpp
r451d7a rc830e8e 68 68 #define DistanceMultiMap multimap <double, pair < PointMap::iterator, PointMap::iterator> > 69 69 #define DistanceMultiMapPair pair <double, pair < PointMap::iterator, PointMap::iterator> > 70 71 #define MoleculeList list <molecule *> 72 #define MoleculeListTest pair <MoleculeList::iterator, bool> 70 73 71 74 /******************************** Some small functions and/or structures **********************************/ … … 142 145 ~atom(); 143 146 144 bool Output(int ElementNo, int AtomNo, ofstream *out ) const;147 bool Output(int ElementNo, int AtomNo, ofstream *out, const char *comment = NULL) const; 145 148 bool OutputXYZLine(ofstream *out) const; 146 149 atom *GetTrueFather(); … … 216 219 int NoCyclicBonds; //!< number of cyclic bonds in molecule, by DepthFirstSearchAnalysis() 217 220 double BondDistance; //!< typical bond distance used in CreateAdjacencyList() and furtheron 221 bool ActiveFlag; //!< in a MoleculeListClass used to discern active from inactive molecules 222 Vector Center; //!< Center of molecule in a global box 223 char name[MAXSTRINGSIZE]; //!< arbitrary name 224 int IndexNr; //!< index of molecule in a MoleculeListClass 218 225 219 226 molecule(periodentafel *teil); … … 223 230 bool AddAtom(atom *pointer); 224 231 bool RemoveAtom(atom *pointer); 232 bool UnlinkAtom(atom *pointer); 225 233 bool CleanupMolecule(); 226 234 … … 252 260 Vector * DetermineCenterOfGravity(ofstream *out); 253 261 Vector * DetermineCenterOfAll(ofstream *out); 262 void SetNameFromFilename(char *filename); 254 263 void SetBoxDimension(Vector *dim); 255 264 double * ReturnFullMatrixforSymmetric(double *cell_size); … … 326 335 class MoleculeListClass { 327 336 public: 328 molecule **ListOfMolecules; //!< pointer list of fragment molecules to check for equality 329 int NumberOfMolecules; //!< Number of entries in \a **FragmentList and of to be returned one. 330 int NumberOfTopAtoms; //!< Number of atoms in the molecule from which all fragments originate 337 MoleculeList ListOfMolecules; //!< List of the contained molecules 338 int MaxIndex; 331 339 332 340 MoleculeListClass(); 333 MoleculeListClass(int Num, int NumAtoms);334 341 ~MoleculeListClass(); 335 342 336 /// Output configs.337 343 bool AddHydrogenCorrection(ofstream *out, char *path); 338 344 bool StoreForcesFile(ofstream *out, char *path, int *SortIndex); 345 bool insert(molecule *mol); 346 molecule * ReturnIndex(int index); 339 347 bool OutputConfigForListOfFragments(ofstream *out, config *configuration, int *SortIndex); 348 int NumberOfActiveMolecules(); 349 void Enumerate(ofstream *out); 340 350 void Output(ofstream *out); 351 352 // merging of molecules 353 bool SimpleMerge(molecule *mol, molecule *srcmol); 354 bool SimpleAdd(molecule *mol, molecule *srcmol); 355 bool SimpleMultiMerge(molecule *mol, int *src, int N); 356 bool SimpleMultiAdd(molecule *mol, int *src, int N); 357 bool ScatterMerge(molecule *mol, int *src, int N); 358 bool EmbedMerge(molecule *mol, molecule *srcmol); 341 359 342 360 private: … … 454 472 bool Save(const char *filename, periodentafel *periode, molecule *mol) const; 455 473 bool SaveMPQC(const char *filename, molecule *mol) const; 456 void Edit( molecule *mol);474 void Edit(); 457 475 bool GetIsAngstroem() const; 458 476 char *GetDefaultPath() const;
Note:
See TracChangeset
for help on using the changeset viewer.
