Changes in src/molecule.cpp [24a5e0:46d958]
- File:
-
- 1 edited
-
src/molecule.cpp (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/molecule.cpp
r24a5e0 r46d958 34 34 first(new bond(start, end, 1, -1)), last(new bond(start, end, 1, -1)), MDSteps(0), AtomCount(0), 35 35 BondCount(0), ElementCount(0), NoNonHydrogen(0), NoNonBonds(0), NoCyclicBonds(0), BondDistance(0.), 36 ActiveFlag(false), IndexNr(-1), 37 formula(this,boost::bind(&molecule::calcFormula,this)), 38 last_atom(0), 39 InternalPointer(start) 36 ActiveFlag(false), IndexNr(-1), last_atom(0), InternalPointer(start), 37 formula(this,boost::bind(&molecule::calcFormula,this)) 40 38 { 41 39 // init atom chain list … … 55 53 }; 56 54 57 molecule *NewMolecule(){58 return new molecule(World::get()->getPeriode());59 }60 61 55 /** Destructor of class molecule. 62 56 * Initialises molecule list with correctly referenced start and end, and sets molecule::last_atom to zero. … … 72 66 73 67 74 void DeleteMolecule(molecule *mol){75 delete mol;76 }77 78 68 // getter and setter 79 69 const std::string molecule::getName(){ … … 84 74 OBSERVE; 85 75 strncpy(name,_name.c_str(),MAXSTRINGSIZE); 86 }87 88 moleculeId_t molecule::getId(){89 return id;90 }91 92 void molecule::setId(moleculeId_t _id){93 id =_id;94 76 } 95 77
Note:
See TracChangeset
for help on using the changeset viewer.
