Skip to content

Commit 5ac6995

Browse files
committed
Declare BVParametersTable methods for custom valences.
1 parent 76219ae commit 5ac6995

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/diffpy/srreal/BVParametersTable.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
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

2930
namespace 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;

0 commit comments

Comments
 (0)