Changeset 8d9d38 for molecuilder/src/molecule.hpp
- Timestamp:
- Feb 25, 2010, 4:43:02 PM (16 years ago)
- Children:
- 3db67e
- Parents:
- 2e6496
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
molecuilder/src/molecule.hpp
r2e6496 r8d9d38 29 29 #include <string> 30 30 31 #include "defs.hpp" 31 32 #include "graph.hpp" 32 33 #include "stackclass.hpp" … … 85 86 */ 86 87 class molecule : public PointCloud , public Observable { 88 friend molecule *NewMolecule(); 89 friend void DeleteMolecule(molecule *); 87 90 public: 88 91 double cell_size[6];//!< cell size … … 108 111 private: 109 112 Cacheable<string> formula; 113 moleculeId_t id; 114 protected: 115 molecule(const periodentafel * const teil); 116 virtual ~molecule(); 117 110 118 111 119 public: 112 molecule(const periodentafel * const teil);113 virtual ~molecule();114 115 120 //getter and setter 116 121 const std::string getName(); 122 moleculeId_t getId(); 123 void setId(moleculeId_t); 117 124 void setName(const std::string); 118 125 const std::string getFormula(); 119 126 std::string calcFormula(); 127 120 128 121 129 // re-definition of virtual functions from PointCloud … … 321 329 }; 322 330 331 molecule *NewMolecule(); 332 void DeleteMolecule(molecule* mol); 333 323 334 #include "molecule_template.hpp" 324 335 … … 330 341 int MaxIndex; 331 342 332 MoleculeListClass( );343 MoleculeListClass(World *world); 333 344 ~MoleculeListClass(); 334 345 … … 363 374 364 375 private: 376 World *world; //!< The world this List belongs to. Needed to avoid deadlocks in the destructor 365 377 }; 366 378
Note:
See TracChangeset
for help on using the changeset viewer.