- Solved the proliferation of type checks for different DAI_ENUM's in properties.cpp
[libdai.git] / include / dai / mr.h
index 41610e7..2c09295 100644 (file)
@@ -60,8 +60,8 @@ class MR : public DAIAlgFG {
         struct Properties {
             size_t verbose;
             double tol;
-            ENUM2(UpdateType,FULL,LINEAR)
-            ENUM3(InitType,RESPPROP,CLAMPING,EXACT)
+            DAI_ENUM(UpdateType,FULL,LINEAR)
+            DAI_ENUM(InitType,RESPPROP,CLAMPING,EXACT)
             UpdateType updates;
             InitType inits;
         } props;
@@ -106,6 +106,7 @@ class MR : public DAIAlgFG {
 
         void setProperties( const PropertySet &opts );
         PropertySet getProperties() const;
+        std::string printProperties() const;
         double maxDiff() const { return maxdiff; }
 };