File tree 1 file changed +8
-0
lines changed
1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 24
24
#include < boost/serialization/export.hpp>
25
25
#include < boost/serialization/shared_ptr.hpp>
26
26
#include < diffpy/boostextensions/serialize_unordered_set.hpp>
27
+ #include < diffpy/boostextensions/serialize_unordered_map.hpp>
27
28
#include < diffpy/srreal/BVParam.hpp>
28
29
29
30
namespace diffpy {
@@ -44,6 +45,9 @@ class BVParametersTable
44
45
static const BVParam& none ();
45
46
46
47
// methods
48
+ int getAtomValence (const std::string&) const ;
49
+ void setAtomValence (const std::string&, int value);
50
+ void resetAtomValences ();
47
51
const BVParam& lookup (const BVParam&) const ;
48
52
const BVParam& lookup (
49
53
const std::string& smbl0, const std::string& smbl1) const ;
@@ -62,8 +66,12 @@ class BVParametersTable
62
66
63
67
private:
64
68
69
+ // types
70
+ typedef boost::unordered_map<std::string, int > AtomTypeValence;
71
+
65
72
// data
66
73
SetOfBVParam mcustomtable;
74
+ AtomTypeValence matomvalence;
67
75
68
76
// methods
69
77
const SetOfBVParam& getStandardSetOfBVParam () const ;
You can’t perform that action at this time.
0 commit comments