uint32_t (and similar) should only be used when an exact field-size is needed
across platforms with different integer sizes. In this case, we only need an
unsigned type, so just use unsigned int.
* Sets a promise to explore meeting with the given node.
* @param i is the promise index.
*/
-void Node::set_promise(uint32_t i) {
+void Node::set_promise(unsigned int i) {
if (i>=promises.size())
promises.resize(i+1,0);
promises[i]=1;
* @param i The promise index.
* @return true if the promise should be satisfied by the given model action.
*/
-bool Node::get_promise(uint32_t i) {
+bool Node::get_promise(unsigned int i) {
return (i<promises.size())&&(promises[i]==2);
}
bool increment_read_from();
bool read_from_empty();
- void set_promise(uint32_t i);
- bool get_promise(uint32_t i);
+ void set_promise(unsigned int i);
+ bool get_promise(unsigned int i);
bool increment_promise();
bool promise_empty();
unsigned int read_from_index;
std::vector< uint64_t, MyAlloc< uint64_t > > future_values;
- std::vector< uint32_t, MyAlloc< uint32_t > > promises;
+ std::vector< unsigned int, MyAlloc<unsigned int> > promises;
unsigned int future_index;
};