Changes in src/molecule.cpp [46d958:24a5e0]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified src/molecule.cpp ¶
r46d958 r24a5e0 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), last_atom(0), InternalPointer(start), 37 formula(this,boost::bind(&molecule::calcFormula,this)) 36 ActiveFlag(false), IndexNr(-1), 37 formula(this,boost::bind(&molecule::calcFormula,this)), 38 last_atom(0), 39 InternalPointer(start) 38 40 { 39 41 // init atom chain list … … 53 55 }; 54 56 57 molecule *NewMolecule(){ 58 return new molecule(World::get()->getPeriode()); 59 } 60 55 61 /** Destructor of class molecule. 56 62 * Initialises molecule list with correctly referenced start and end, and sets molecule::last_atom to zero. … … 66 72 67 73 74 void DeleteMolecule(molecule *mol){ 75 delete mol; 76 } 77 68 78 // getter and setter 69 79 const std::string molecule::getName(){ … … 74 84 OBSERVE; 75 85 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; 76 94 } 77 95
Note:
See TracChangeset
for help on using the changeset viewer.