Changeset 9317be


Ignore:
Timestamp:
Oct 20, 2011, 1:20:03 PM (13 years ago)
Author:
Frederik Heber <heber@…>
Branches:
Action_Thermostats, Add_AtomRandomPerturbation, Add_FitFragmentPartialChargesAction, Add_RotateAroundBondAction, Add_SelectAtomByNameAction, Added_ParseSaveFragmentResults, AddingActions_SaveParseParticleParameters, Adding_Graph_to_ChangeBondActions, Adding_MD_integration_tests, Adding_ParticleName_to_Atom, Adding_StructOpt_integration_tests, AtomFragments, Automaking_mpqc_open, AutomationFragmentation_failures, Candidate_v1.5.4, Candidate_v1.6.0, Candidate_v1.6.1, ChangeBugEmailaddress, ChangingTestPorts, ChemicalSpaceEvaluator, CombiningParticlePotentialParsing, Combining_Subpackages, Debian_Package_split, Debian_package_split_molecuildergui_only, Disabling_MemDebug, Docu_Python_wait, EmpiricalPotential_contain_HomologyGraph, EmpiricalPotential_contain_HomologyGraph_documentation, Enable_parallel_make_install, Enhance_userguide, Enhanced_StructuralOptimization, Enhanced_StructuralOptimization_continued, Example_ManyWaysToTranslateAtom, Exclude_Hydrogens_annealWithBondGraph, FitPartialCharges_GlobalError, Fix_BoundInBox_CenterInBox_MoleculeActions, Fix_ChargeSampling_PBC, Fix_ChronosMutex, Fix_FitPartialCharges, Fix_FitPotential_needs_atomicnumbers, Fix_ForceAnnealing, Fix_IndependentFragmentGrids, Fix_ParseParticles, Fix_ParseParticles_split_forward_backward_Actions, Fix_PopActions, Fix_QtFragmentList_sorted_selection, Fix_Restrictedkeyset_FragmentMolecule, Fix_StatusMsg, Fix_StepWorldTime_single_argument, Fix_Verbose_Codepatterns, Fix_fitting_potentials, Fixes, ForceAnnealing_goodresults, ForceAnnealing_oldresults, ForceAnnealing_tocheck, ForceAnnealing_with_BondGraph, ForceAnnealing_with_BondGraph_continued, ForceAnnealing_with_BondGraph_continued_betteresults, ForceAnnealing_with_BondGraph_contraction-expansion, FragmentAction_writes_AtomFragments, FragmentMolecule_checks_bonddegrees, GeometryObjects, Gui_Fixes, Gui_displays_atomic_force_velocity, ImplicitCharges, IndependentFragmentGrids, IndependentFragmentGrids_IndividualZeroInstances, IndependentFragmentGrids_IntegrationTest, IndependentFragmentGrids_Sole_NN_Calculation, JobMarket_RobustOnKillsSegFaults, JobMarket_StableWorkerPool, JobMarket_unresolvable_hostname_fix, MoreRobust_FragmentAutomation, ODR_violation_mpqc_open, PartialCharges_OrthogonalSummation, PdbParser_setsAtomName, PythonUI_with_named_parameters, QtGui_reactivate_TimeChanged_changes, Recreated_GuiChecks, Rewrite_FitPartialCharges, RotateToPrincipalAxisSystem_UndoRedo, SaturateAtoms_findBestMatching, SaturateAtoms_singleDegree, StoppableMakroAction, Subpackage_CodePatterns, Subpackage_JobMarket, Subpackage_LinearAlgebra, Subpackage_levmar, Subpackage_mpqc_open, Subpackage_vmg, Switchable_LogView, ThirdParty_MPQC_rebuilt_buildsystem, TrajectoryDependenant_MaxOrder, TremoloParser_IncreasedPrecision, TremoloParser_MultipleTimesteps, TremoloParser_setsAtomName, Ubuntu_1604_changes, stable
Children:
539f32
Parents:
025048
git-author:
Frederik Heber <heber@…> (10/20/11 13:18:47)
git-committer:
Frederik Heber <heber@…> (10/20/11 13:20:03)
Message:

Replaced molecule::atomVector by World::AtomComposite everywhere.

Location:
src
Files:
10 edited

Legend:

Unmodified
Added
Removed
  • src/Actions/GraphAction/SubgraphDissectionAction.cpp

    r025048 r9317be  
    9393  if (mol->getBondCount() == 0) {
    9494    BondGraph *BG = World::getInstance().getBondGraph();
    95     molecule::atomVector Set = mol->getAtomSet();
     95    World::AtomComposite Set = mol->getAtomSet();
    9696    BG->CreateAdjacency(Set);
    9797//    if (mol->getBondCount() == 0) {
  • src/Actions/MoleculeAction/BondFileAction.cpp

    r025048 r9317be  
    5050        << ", adding " << params.id_offset << " to each id.");
    5151    ifstream input(params.bondfile.string().c_str());
    52     molecule::atomVector Set = mol->getAtomSet();
     52    World::AtomComposite Set = mol->getAtomSet();
    5353    World::getInstance().getBondGraph()->CreateAdjacencyListFromDbondFile(Set, &input, params.skiplines, params.id_offset);
    5454    input.close();
  • src/Actions/MoleculeAction/FillVoidWithMoleculeAction.cpp

    r025048 r9317be  
    7373  molecule *filler = World::getInstance().getMolecule(MoleculeByOrder(-1)); // get last molecule
    7474  filler->SetNameFromFilename(params.fillername.string().c_str());
    75   molecule::atomVector Set = filler->getAtomSet();
     75  World::AtomComposite Set = filler->getAtomSet();
    7676  World::getInstance().getBondGraph()->CreateAdjacency(Set);
    7777
  • src/Actions/MoleculeAction/FillWithMoleculeAction.cpp

    r025048 r9317be  
    8383//    filler->AddBond(first, third, 1);
    8484//    filler->AddBond(second, third, 1);
    85   molecule::atomVector Set = filler->getAtomSet();
     85  World::AtomComposite Set = filler->getAtomSet();
    8686  World::getInstance().getBondGraph()->CreateAdjacency(Set);
    8787//    filler->SetNameFromFilename("water");
  • src/Analysis/unittests/AnalysisBondsUnitTest.cpp

    r025048 r9317be  
    109109  CPPUNIT_ASSERT_EQUAL( 1.5, BG->GetBondLength(5,5) );
    110110
    111   molecule::atomVector Set = TestMolecule->getAtomSet();
     111  World::AtomComposite Set = TestMolecule->getAtomSet();
    112112  BG->CreateAdjacency(Set);
    113113};
  • src/Analysis/unittests/CountBondsUnitTest.cpp

    r025048 r9317be  
    112112
    113113  // construct bond graphs
    114   molecule::atomVector Set1 = TestMolecule1->getAtomSet();
     114  World::AtomComposite Set1 = TestMolecule1->getAtomSet();
    115115  BG->CreateAdjacency(Set1);
    116116  CPPUNIT_ASSERT( TestMolecule1->getBondCount() != 0);
    117   molecule::atomVector Set2 = TestMolecule2->getAtomSet();
     117  World::AtomComposite Set2 = TestMolecule2->getAtomSet();
    118118  BG->CreateAdjacency(Set2);
    119119  CPPUNIT_ASSERT( TestMolecule2->getBondCount() != 0);
  • src/Graph/unittests/BondGraphUnitTest.cpp

    r025048 r9317be  
    151151  Runner++;
    152152  CPPUNIT_ASSERT_EQUAL( true , BG->LoadBondLengthTable(test) );
    153   molecule::atomVector Set = TestMolecule->getAtomSet();
     153  World::AtomComposite Set = TestMolecule->getAtomSet();
    154154  BG->CreateAdjacency(Set);
    155155  CPPUNIT_ASSERT( TestMolecule->getBondCount() != 0);
     
    163163
    164164  CPPUNIT_ASSERT_EQUAL( false , BG->LoadBondLengthTable(dummy) );
    165   molecule::atomVector Set = TestMolecule->getAtomSet();
     165  World::AtomComposite Set = TestMolecule->getAtomSet();
    166166  BG->CreateAdjacency(Set);
    167167  CPPUNIT_ASSERT( TestMolecule->getBondCount() != 0);
  • src/molecule.cpp

    r025048 r9317be  
    233233}
    234234
    235 molecule::atomVector molecule::getAtomSet() const
    236 {
    237   atomVector vector_of_atoms;
     235World::AtomComposite molecule::getAtomSet() const
     236{
     237  World::AtomComposite vector_of_atoms;
    238238  BOOST_FOREACH(atom *_atom, atoms)
    239239    vector_of_atoms.push_back(_atom);
  • src/molecule.hpp

    r025048 r9317be  
    6969public:
    7070  typedef ATOMSET(std::list) atomSet;
    71   typedef ATOMSET(std::vector) atomVector;
    7271  typedef std::set<atomId_t> atomIdSet;
    7372  typedef ObservedIterator<atomSet> iterator;
     
    125124  virtual bool changeId(atomId_t newId);
    126125
    127   atomVector getAtomSet() const;
     126  World::AtomComposite getAtomSet() const;
    128127
    129128  iterator begin();
  • src/molecule_fragmentation.cpp

    r025048 r9317be  
    681681      ++iter) {
    682682    // correct bond degree
    683     molecule::atomVector Set = (*iter)->getAtomSet();
     683    World::AtomComposite Set = (*iter)->getAtomSet();
    684684    World::getInstance().getBondGraph()->CorrectBondDegree(Set);
    685685  }
Note: See TracChangeset for help on using the changeset viewer.