Changes in src/molecule.hpp [24a5e0:ac9b56]
- File:
-
- 1 edited
-
src/molecule.hpp (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.hpp
r24a5e0 rac9b56 29 29 #include <string> 30 30 31 #include "defs.hpp"32 31 #include "graph.hpp" 33 32 #include "stackclass.hpp" … … 86 85 */ 87 86 class molecule : public PointCloud , public Observable { 88 friend molecule *NewMolecule();89 friend void DeleteMolecule(molecule *);90 87 public: 91 88 double cell_size[6];//!< cell size … … 111 108 private: 112 109 Cacheable<string> formula; 113 moleculeId_t id;114 protected:115 molecule(const periodentafel * const teil);116 virtual ~molecule();117 118 110 119 111 public: 112 molecule(const periodentafel * const teil); 113 virtual ~molecule(); 114 120 115 //getter and setter 121 116 const std::string getName(); 122 moleculeId_t getId();123 void setId(moleculeId_t);124 117 void setName(const std::string); 125 118 const std::string getFormula(); 126 119 std::string calcFormula(); 127 128 120 129 121 // re-definition of virtual functions from PointCloud … … 329 321 }; 330 322 331 molecule *NewMolecule();332 void DeleteMolecule(molecule* mol);333 334 323 #include "molecule_template.hpp" 335 324 … … 341 330 int MaxIndex; 342 331 343 MoleculeListClass( World *world);332 MoleculeListClass(); 344 333 ~MoleculeListClass(); 345 334 … … 350 339 bool OutputConfigForListOfFragments(config *configuration, int *SortIndex); 351 340 int NumberOfActiveMolecules(); 352 void Enumerate(o stream *out);341 void Enumerate(ofstream *out); 353 342 void Output(ofstream *out); 354 343 void DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration); … … 374 363 375 364 private: 376 World *world; //!< The world this List belongs to. Needed to avoid deadlocks in the destructor377 365 }; 378 366
Note:
See TracChangeset
for help on using the changeset viewer.
