Changeset 942906


Ignore:
Timestamp:
Oct 18, 2011, 3:42:54 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:
2d5fee
Parents:
1b145f
git-author:
Frederik Heber <heber@…> (09/20/11 10:10:14)
git-committer:
Frederik Heber <heber@…> (10/18/11 15:42:54)
Message:

Added serialize() template functions to MatrixContainer and KeySetsContainer.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • configure.ac

    r1b145f r942906  
    137137
    138138
    139 # CodePatterns library (needs Observer::Channels )
    140 AM_PATH_CODEPATTERNS([1.1.5], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
     139# CodePatterns library (needs valarray in MemDebug )
     140AM_PATH_CODEPATTERNS([1.1.6], $have_debug,,[AC_MSG_ERROR([Missing CodePatterns library, please specify PKG_CONFIG_PATH or use --with-codepatterns...])])
    141141
    142142# Checks for header files.
  • src/Fragmentation/KeySetsContainer.hpp

    r1b145f r942906  
    1414#endif
    1515
     16#include "boost/serialization/vector.hpp"
     17
     18#include <vector>
    1619
    1720/** Contains the index set for each fragment.
     
    4144    return !(*this == other);
    4245  }
     46
     47private:
     48  friend class boost::serialization::access;
     49  // serialization
     50  template<class Archive>
     51  void serialize(Archive & ar, const unsigned int version)
     52  {
     53    ar & KeySets;
     54    ar & AtomCounter;
     55    ar & FragmentCounter;
     56    ar & Order;
     57    ar & FragmentsPerOrder;
     58    ar & OrderSet;
     59  }
    4360};
    4461
  • src/Fragmentation/MatrixContainer.hpp

    r1b145f r942906  
    1515
    1616#include <vector>
     17
     18#include "boost/serialization/vector.hpp"
    1719
    1820/** Contains a sequence of matrices parsed from file.
     
    5759    return !(*this == other);
    5860  }
     61
     62private:
     63  friend class boost::serialization::access;
     64  // serialization
     65  template<class Archive>
     66  void serialize(Archive & ar, const unsigned int version)
     67  {
     68    ar & Matrix;
     69    ar & Indices;
     70    ar & Header;
     71    ar & MatrixCounter;
     72    ar & RowCounter;
     73    ar & ColumnCounter;
     74  }
    5975};
    6076
Note: See TracChangeset for help on using the changeset viewer.