Changeset 955b91 for src/Shapes


Ignore:
Timestamp:
Mar 27, 2012, 3:53:35 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:
4d2b33
Parents:
912c40
git-author:
Frederik Heber <heber@…> (03/14/12 18:08:24)
git-committer:
Frederik Heber <heber@…> (03/27/12 15:53:35)
Message:

FIX: Removed using namespace std in Vector.hpp.

  • this caused some follow-up problems in other LinearAlgebra modules,
mostly stuff from iostream not having std
prefix then.
this also caused more of them in MoleCuilder modules, mostly due to string,
stringstream, and numeric_limits with std
prefix.
Location:
src/Shapes
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/Shapes/BaseShapes.cpp

    r912c40 r955b91  
    6161}
    6262
    63 string Sphere_impl::toString(){
     63std::string Sphere_impl::toString(){
    6464  return "Sphere()";
    6565}
     
    165165  LineSegmentSet res(line);
    166166  // get the intersection on each of the six faces
    167   vector<Vector> intersections;
     167  std::vector<Vector> intersections;
    168168  intersections.resize(2);
    169169  int c=0;
     
    192192}
    193193
    194 string Cuboid_impl::toString(){
     194std::string Cuboid_impl::toString(){
    195195  return "Cuboid()";
    196196}
     
    215215  Vector sortedC2;
    216216  for(int i=NDIM;i--;){
    217     sortedC1[i] = min(corner1[i],corner2[i]);
    218     sortedC2[i] = max(corner1[i],corner2[i]);
     217    sortedC1[i] = std::min(corner1[i],corner2[i]);
     218    sortedC2[i] = std::max(corner1[i],corner2[i]);
    219219    ASSERT(corner1[i]!=corner2[i],"Given points for cuboid edges did not define a valid space");
    220220  }
  • src/Shapes/Shape.cpp

    r912c40 r955b91  
    153153}
    154154
    155 string AndShape_impl::toString(){
    156   return string("(") + lhs->toString() + string("&&") + rhs->toString() + string(")");
     155std::string AndShape_impl::toString() {
     156  return std::string("(") + lhs->toString() + std::string("&&") + rhs->toString() + std::string(")");
    157157}
    158158
     
    239239}
    240240
    241 string OrShape_impl::toString(){
    242   return string("(") + lhs->toString() + string("||") + rhs->toString() + string(")");
     241std::string OrShape_impl::toString() {
     242  return std::string("(") + lhs->toString() + std::string("||") + rhs->toString() + std::string(")");
    243243}
    244244
     
    289289}
    290290
    291 string NotShape_impl::toString(){
    292   return string("!") + arg->toString();
     291std::string NotShape_impl::toString(){
     292  return std::string("!") + arg->toString();
    293293}
    294294
     
    304304
    305305/**************** global operations *********************************/
    306 ostream &operator<<(ostream &ost,const Shape &shape){
     306std::ostream &operator<<(std::ostream &ost,const Shape &shape){
    307307  ost << shape.toString();
    308308  return ost;
  • src/Shapes/ShapeOps.cpp

    r912c40 r955b91  
    105105}
    106106
    107 string Resize_impl::toString(){
    108   stringstream sstr;
     107std::string Resize_impl::toString() {
     108  std::stringstream sstr;
    109109  sstr << "resize(" << getArg()->toString() << "," << size << ")";
    110110  return sstr.str();
     
    149149}
    150150
    151 string Translate_impl::toString(){
    152   stringstream sstr;
     151std::string Translate_impl::toString() {
     152  std::stringstream sstr;
    153153  sstr << "translate(" << getArg()->toString() << "," << offset << ")";
    154154  return sstr.str();
     
    213213}
    214214
    215 string Stretch_impl::toString(){
    216   stringstream sstr;
     215std::string Stretch_impl::toString() {
     216  std::stringstream sstr;
    217217  sstr << "stretch(" << getArg()->toString() << "," << factors << ")";
    218218  return sstr.str();
     
    259259}
    260260
    261 string Transform_impl::toString(){
    262   stringstream sstr;
     261std::string Transform_impl::toString() {
     262  std::stringstream sstr;
    263263  sstr << "transform(" << getArg()->toString() << "," << transformation << ")";
    264264  return sstr.str();
Note: See TracChangeset for help on using the changeset viewer.