MCPcopy Create free account
hub / github.com/Gecode/gecode / SetAFC

Class SetAFC

gecode/set.hh:1143–1176  ·  view source on GitHub ↗

* \brief Recording AFC information for set variables * * \ingroup TaskModelSetBranch */

Source from the content-addressed store, hash-verified

1141 * \ingroup TaskModelSetBranch
1142 */
1143 class SetAFC : public AFC {
1144 public:
1145 /**
1146 * \brief Construct as not yet initialized
1147 *
1148 * The only member functions that can be used on a constructed but not
1149 * yet initialized AFC storage is init or the assignment operator.
1150 *
1151 */
1152 SetAFC(void);
1153 /// Copy constructor
1154 SetAFC(const SetAFC& a);
1155 /// Assignment operator
1156 SetAFC& operator =(const SetAFC& a);
1157 /**
1158 * \brief Initialize for set variables \a x and decay factor \a d
1159 *
1160 * If several AFC objects are created for a space or its clones,
1161 * the AFC values are shared between spaces. If the values should
1162 * not be shared, \a share should be false.
1163 */
1164 SetAFC(Home home, const SetVarArgs& x, double d=1.0, bool share=true);
1165 /**
1166 * \brief Initialize for set variables \a x with decay factor \a d
1167 *
1168 * This member function can only be used once and only if the
1169 * AFC storage has been constructed with the default constructor.
1170 *
1171 * If several AFC objects are created for a space or its clones,
1172 * the AFC values are shared between spaces. If the values should
1173 * not be shared, \a share should be false.
1174 */
1175 void init(Home home, const SetVarArgs& x, double d=1.0, bool share=true);
1176 };
1177
1178}
1179

Callers 1

expandMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected