File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 2424#include < boost/serialization/export.hpp>
2525#include < boost/serialization/shared_ptr.hpp>
2626#include < diffpy/boostextensions/serialize_unordered_set.hpp>
27+ #include < diffpy/boostextensions/serialize_unordered_map.hpp>
2728#include < diffpy/srreal/BVParam.hpp>
2829
2930namespace diffpy {
@@ -44,6 +45,9 @@ class BVParametersTable
4445 static const BVParam& none ();
4546
4647 // methods
48+ int getAtomValence (const std::string&) const ;
49+ void setAtomValence (const std::string&, int value);
50+ void resetAtomValences ();
4751 const BVParam& lookup (const BVParam&) const ;
4852 const BVParam& lookup (
4953 const std::string& smbl0, const std::string& smbl1) const ;
@@ -62,8 +66,12 @@ class BVParametersTable
6266
6367 private:
6468
69+ // types
70+ typedef boost::unordered_map<std::string, int > AtomTypeValence;
71+
6572 // data
6673 SetOfBVParam mcustomtable;
74+ AtomTypeValence matomvalence;
6775
6876 // methods
6977 const SetOfBVParam& getStandardSetOfBVParam () const ;
You can’t perform that action at this time.
0 commit comments