Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/molecule.cpp

    r24a5e0 r46d958  
    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),
    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))
    4038{
    4139  // init atom chain list
     
    5553};
    5654
    57 molecule *NewMolecule(){
    58   return new molecule(World::get()->getPeriode());
    59 }
    60 
    6155/** Destructor of class molecule.
    6256 * Initialises molecule list with correctly referenced start and end, and sets molecule::last_atom to zero.
     
    7266
    7367
    74 void DeleteMolecule(molecule *mol){
    75   delete mol;
    76 }
    77 
    7868// getter and setter
    7969const std::string molecule::getName(){
     
    8474  OBSERVE;
    8575  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;
    9476}
    9577
Note: See TracChangeset for help on using the changeset viewer.