Changeset feb5d0
- Timestamp:
- Apr 17, 2013, 6:56:04 PM (12 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:
- 0773bd
- Parents:
- 2448f8
- git-author:
- Frederik Heber <heber@…> (03/19/13 13:31:32)
- git-committer:
- Frederik Heber <heber@…> (04/17/13 18:56:04)
- Location:
- src
- Files:
-
- 2 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Descriptors/AtomDescriptor.hpp
r2448f8 rfeb5d0 42 42 friend World::AtomComposite World::getAllAtoms(AtomDescriptor descriptor); 43 43 template <class,class,class> friend class SelectiveIterator; 44 template <class,class,class> friend class SelectiveConstIterator; 44 45 45 46 friend AtomDescriptor operator&&(const AtomDescriptor &lhs, const AtomDescriptor &rhs); -
src/Descriptors/DescriptorBase.hpp
r2448f8 rfeb5d0 37 37 template<class _Target, 38 38 class _Container> 39 class SelectiveConstIterator; 40 41 template<class _Target, 42 class _Container> 39 43 class DescriptorBase 40 44 { 41 45 friend class DescriptorBase_impl<_Target,_Container>; 42 46 friend class SelectiveIterator<_Target,_Container>; 47 friend class SelectiveConstIterator<_Target,_Container>; 43 48 44 49 -
src/Descriptors/MoleculeDescriptor.hpp
r2448f8 rfeb5d0 43 43 friend std::vector<molecule*> World::getAllMolecules(MoleculeDescriptor descriptor); 44 44 template <class,class,class> friend class SelectiveIterator; 45 template <class,class,class> friend class SelectiveConstIterator; 45 46 46 47 friend MoleculeDescriptor operator&&(const MoleculeDescriptor &lhs, const MoleculeDescriptor &rhs); -
src/Makefile.am
r2448f8 rfeb5d0 91 91 Descriptors/MoleculePtrDescriptor.hpp \ 92 92 Descriptors/MoleculeSelectionDescriptor.hpp \ 93 Descriptors/SelectiveConstIterator.hpp \ 93 94 Descriptors/SelectiveIterator.hpp 94 95 … … 112 113 Descriptors/MoleculePtrDescriptor_impl.hpp \ 113 114 Descriptors/MoleculeSelectionDescriptor_impl.hpp \ 115 Descriptors/SelectiveConstIterator_impl.hpp \ 114 116 Descriptors/SelectiveIterator_impl.hpp 115 117 -
src/World.cpp
r2448f8 rfeb5d0 52 52 #include "Descriptors/MoleculeDescriptor_impl.hpp" 53 53 #include "Descriptors/MoleculeSelectionDescriptor.hpp" 54 #include "Descriptors/SelectiveConstIterator_impl.hpp" 54 55 #include "Descriptors/SelectiveIterator_impl.hpp" 55 56 #include "Element/periodentafel.hpp" … … 372 373 // external parts with observers 373 374 374 CONSTRUCT_SELECTIVE_ITERATOR(atom*,World::AtomSet,AtomDescriptor); 375 CONSTRUCT_SELECTIVE_ITERATOR(atom*,World::AtomSet,AtomDescriptor) 376 377 CONSTRUCT_SELECTIVE_CONST_ITERATOR(atom*,World::AtomSet,AtomDescriptor) 375 378 376 379 World::AtomIterator … … 379 382 } 380 383 384 World::AtomConstIterator 385 World::getAtomIter(AtomDescriptor descr) const{ 386 return AtomConstIterator(descr,atoms); 387 } 388 381 389 World::AtomIterator 382 390 World::getAtomIter(){ … … 384 392 } 385 393 394 World::AtomConstIterator 395 World::getAtomIter() const{ 396 return AtomConstIterator(AllAtoms(),atoms); 397 } 398 386 399 World::AtomIterator 387 400 World::atomEnd(){ … … 389 402 } 390 403 391 CONSTRUCT_SELECTIVE_ITERATOR(molecule*,World::MoleculeSet,MoleculeDescriptor); 404 World::AtomConstIterator 405 World::atomEnd() const{ 406 return AtomConstIterator(AllAtoms(),atoms,atoms.end()); 407 } 408 409 CONSTRUCT_SELECTIVE_ITERATOR(molecule*,World::MoleculeSet,MoleculeDescriptor) 410 411 CONSTRUCT_SELECTIVE_CONST_ITERATOR(molecule*,World::MoleculeSet,MoleculeDescriptor) 392 412 393 413 World::MoleculeIterator … … 396 416 } 397 417 418 World::MoleculeConstIterator 419 World::getMoleculeIter(MoleculeDescriptor descr) const{ 420 return MoleculeConstIterator(descr,molecules); 421 } 422 398 423 World::MoleculeIterator 399 424 World::getMoleculeIter(){ … … 401 426 } 402 427 428 World::MoleculeConstIterator 429 World::getMoleculeIter() const{ 430 return MoleculeConstIterator(AllMolecules(),molecules); 431 } 432 403 433 World::MoleculeIterator 404 434 World::moleculeEnd(){ 405 435 return MoleculeIterator(AllMolecules(),molecules,molecules.end()); 436 } 437 438 World::MoleculeConstIterator 439 World::moleculeEnd() const{ 440 return MoleculeConstIterator(AllMolecules(),molecules,molecules.end()); 406 441 } 407 442 -
src/World.hpp
r2448f8 rfeb5d0 25 25 #include "Actions/ActionTrait.hpp" 26 26 #include "Atom/AtomSet.hpp" 27 #include "Descriptors/SelectiveConstIterator.hpp" 27 28 #include "Descriptors/SelectiveIterator.hpp" 28 29 #include "CodePatterns/Observer/Observable.hpp" … … 317 318 318 319 typedef SelectiveIterator<atom*,AtomSet,AtomDescriptor> AtomIterator; 320 typedef SelectiveConstIterator<atom*,AtomSet,AtomDescriptor> AtomConstIterator; 319 321 320 322 /** … … 324 326 */ 325 327 AtomIterator getAtomIter(AtomDescriptor descr); 328 AtomConstIterator getAtomIter(AtomDescriptor descr) const; 326 329 AtomIterator getAtomIter(); 330 AtomConstIterator getAtomIter() const; 327 331 328 332 AtomIterator atomEnd(); 333 AtomConstIterator atomEnd() const; 329 334 330 335 typedef SelectiveIterator<molecule*,MoleculeSet,MoleculeDescriptor> MoleculeIterator; 336 typedef SelectiveConstIterator<molecule*,MoleculeSet,MoleculeDescriptor> MoleculeConstIterator; 331 337 332 338 /** … … 336 342 */ 337 343 MoleculeIterator getMoleculeIter(MoleculeDescriptor descr); 344 MoleculeConstIterator getMoleculeIter(MoleculeDescriptor descr) const; 338 345 MoleculeIterator getMoleculeIter(); 346 MoleculeConstIterator getMoleculeIter() const; 339 347 340 348 MoleculeIterator moleculeEnd(); 349 MoleculeConstIterator moleculeEnd() const; 341 350 342 351 /******** Selections of molecules and Atoms *************/
Note:
See TracChangeset
for help on using the changeset viewer.