Changeset d2dbac0 for src/World.hpp
- Timestamp:
- Feb 25, 2010, 10:50:54 AM (15 years ago)
- 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:
- 244d26
- Parents:
- 0e2a47
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/World.hpp
r0e2a47 rd2dbac0 41 41 template<typename> friend class AtomsCalculation; 42 42 43 typedef std::map<int,atom*> AtomList; 43 typedef std::map<int,atom*> AtomSet; 44 typedef std::map<int,molecule*> MoleculeSet; 44 45 public: 45 46 … … 131 132 AtomIterator operator++(int); // postfix with dummy parameter 132 133 bool operator==(const AtomIterator&); 133 bool operator==(const Atom List::iterator&);134 bool operator==(const AtomSet::iterator&); 134 135 bool operator!=(const AtomIterator&); 135 bool operator!=(const Atom List::iterator&);136 bool operator!=(const AtomSet::iterator&); 136 137 atom* operator*(); 137 138 … … 140 141 void advanceState(); 141 142 World* world; 142 Atom List::iterator state;143 AtomSet::iterator state; 143 144 boost::shared_ptr<AtomDescriptor_impl> descr; 144 145 int index; … … 152 153 153 154 /** 154 * returns an iterator to the end of the Atom List. Due to overloading this iterator155 * returns an iterator to the end of the AtomSet. Due to overloading this iterator 155 156 * can be compared to iterators produced by getAtomIter (see the mis-matching types). 156 157 * Thus it can be used to detect when such an iterator is at the end of the list. 157 158 * used for internal purposes, like AtomProcesses and AtomCalculations. 158 159 */ 159 Atom List::iterator atomEnd();160 AtomSet::iterator atomEnd(); 160 161 161 162 /******* Internal manipulation routines for double callback and Observer mechanism ******/ … … 164 165 private: 165 166 periodentafel *periode; 166 Atom List atoms;167 AtomSet atoms; 167 168 int currAtomId; //!< stores the next available Id for atoms 168 std::set<molecule*> molecules; 169 MoleculeSet molecules; 170 int currMoleculeId; 169 171 170 172
Note:
See TracChangeset
for help on using the changeset viewer.