Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.hpp

    r24a5e0 rac9b56  
    2929#include <string>
    3030
    31 #include "defs.hpp"
    3231#include "graph.hpp"
    3332#include "stackclass.hpp"
     
    8685 */
    8786class molecule : public PointCloud , public Observable {
    88   friend molecule *NewMolecule();
    89   friend void DeleteMolecule(molecule *);
    9087  public:
    9188    double cell_size[6];//!< cell size
     
    111108  private:
    112109    Cacheable<string> formula;
    113     moleculeId_t id;
    114   protected:
    115     molecule(const periodentafel * const teil);
    116     virtual ~molecule();
    117 
    118110
    119111public:
     112  molecule(const periodentafel * const teil);
     113  virtual ~molecule();
     114
    120115  //getter and setter
    121116  const std::string getName();
    122   moleculeId_t getId();
    123   void setId(moleculeId_t);
    124117  void setName(const std::string);
    125118  const std::string getFormula();
    126119  std::string calcFormula();
    127 
    128120
    129121  // re-definition of virtual functions from PointCloud
     
    329321};
    330322
    331 molecule *NewMolecule();
    332 void DeleteMolecule(molecule* mol);
    333 
    334323#include "molecule_template.hpp"
    335324
     
    341330    int MaxIndex;
    342331
    343   MoleculeListClass(World *world);
     332  MoleculeListClass();
    344333  ~MoleculeListClass();
    345334
     
    350339  bool OutputConfigForListOfFragments(config *configuration, int *SortIndex);
    351340  int NumberOfActiveMolecules();
    352   void Enumerate(ostream *out);
     341  void Enumerate(ofstream *out);
    353342  void Output(ofstream *out);
    354343  void DissectMoleculeIntoConnectedSubgraphs(const periodentafel * const periode, config * const configuration);
     
    374363
    375364  private:
    376   World *world; //!< The world this List belongs to. Needed to avoid deadlocks in the destructor
    377365};
    378366
Note: See TracChangeset for help on using the changeset viewer.