Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/molecule.cpp

    r46d958 r24a5e0  
    3434  first(new bond(start, end, 1, -1)), last(new bond(start, end, 1, -1)), MDSteps(0), AtomCount(0),
    3535  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)
    3840{
    3941  // init atom chain list
     
    5355};
    5456
     57molecule *NewMolecule(){
     58  return new molecule(World::get()->getPeriode());
     59}
     60
    5561/** Destructor of class molecule.
    5662 * Initialises molecule list with correctly referenced start and end, and sets molecule::last_atom to zero.
     
    6672
    6773
     74void DeleteMolecule(molecule *mol){
     75  delete mol;
     76}
     77
    6878// getter and setter
    6979const std::string molecule::getName(){
     
    7484  OBSERVE;
    7585  strncpy(name,_name.c_str(),MAXSTRINGSIZE);
     86}
     87
     88moleculeId_t molecule::getId(){
     89  return id;
     90}
     91
     92void molecule::setId(moleculeId_t _id){
     93  id =_id;
    7694}
    7795
Note: See TracChangeset for help on using the changeset viewer.