|
@@ -11,48 +11,56 @@
|
|
|
* @date 1999-09-30
|
|
* @date 1999-09-30
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
|
|
+/**
|
|
|
|
|
+ * Creates an UpdateSeq in the given state.
|
|
|
|
|
+ */
|
|
|
|
|
+CONSTEXPR UpdateSeq::
|
|
|
|
|
+UpdateSeq(unsigned int seq) : _seq(seq) {
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* Creates an UpdateSeq in the 'initial' state.
|
|
* Creates an UpdateSeq in the 'initial' state.
|
|
|
*/
|
|
*/
|
|
|
-INLINE UpdateSeq::
|
|
|
|
|
-UpdateSeq() {
|
|
|
|
|
- _seq = (unsigned int)SC_initial;
|
|
|
|
|
|
|
+CONSTEXPR UpdateSeq::
|
|
|
|
|
+UpdateSeq() : _seq((unsigned int)SC_initial) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns an UpdateSeq in the 'initial' state.
|
|
* Returns an UpdateSeq in the 'initial' state.
|
|
|
*/
|
|
*/
|
|
|
-INLINE UpdateSeq UpdateSeq::
|
|
|
|
|
|
|
+CONSTEXPR UpdateSeq UpdateSeq::
|
|
|
initial() {
|
|
initial() {
|
|
|
- return UpdateSeq();
|
|
|
|
|
|
|
+ return UpdateSeq((unsigned int)SC_initial);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns an UpdateSeq in the 'old' state.
|
|
* Returns an UpdateSeq in the 'old' state.
|
|
|
*/
|
|
*/
|
|
|
-INLINE UpdateSeq UpdateSeq::
|
|
|
|
|
|
|
+CONSTEXPR UpdateSeq UpdateSeq::
|
|
|
old() {
|
|
old() {
|
|
|
- UpdateSeq result;
|
|
|
|
|
- result._seq = (unsigned int)SC_old;
|
|
|
|
|
- return result;
|
|
|
|
|
|
|
+ return UpdateSeq((unsigned int)SC_old);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* Returns an UpdateSeq in the 'fresh' state.
|
|
* Returns an UpdateSeq in the 'fresh' state.
|
|
|
*/
|
|
*/
|
|
|
-INLINE UpdateSeq UpdateSeq::
|
|
|
|
|
|
|
+CONSTEXPR UpdateSeq UpdateSeq::
|
|
|
fresh() {
|
|
fresh() {
|
|
|
- UpdateSeq result;
|
|
|
|
|
- result._seq = (unsigned int)SC_fresh;
|
|
|
|
|
- return result;
|
|
|
|
|
|
|
+ return UpdateSeq((unsigned int)SC_fresh);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
*
|
|
*
|
|
|
*/
|
|
*/
|
|
|
INLINE UpdateSeq::
|
|
INLINE UpdateSeq::
|
|
|
-UpdateSeq(const UpdateSeq ©) {
|
|
|
|
|
- _seq = AtomicAdjust::get(copy._seq);
|
|
|
|
|
|
|
+UpdateSeq(const UpdateSeq ©) : _seq(AtomicAdjust::get(copy._seq)) {
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+/**
|
|
|
|
|
+ *
|
|
|
|
|
+ */
|
|
|
|
|
+CONSTEXPR UpdateSeq::
|
|
|
|
|
+UpdateSeq(const UpdateSeq &&from) NOEXCEPT : _seq(from._seq) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|