added -- operator
This commit is contained in:
parent
1b7e0371c3
commit
caf78835b2
@ -23,13 +23,15 @@ class SourceSequenceCounter {
|
|||||||
this->increment();
|
this->increment();
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
SourceSequenceCounter& operator--(int) {
|
||||||
|
this->decrement();
|
||||||
|
return *this;
|
||||||
|
}
|
||||||
SourceSequenceCounter& operator=(const uint16_t& newCount) {
|
SourceSequenceCounter& operator=(const uint16_t& newCount) {
|
||||||
sequenceCount = newCount;
|
sequenceCount = newCount;
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
operator uint16_t() {
|
operator uint16_t() { return this->get(); }
|
||||||
return this->get();
|
|
||||||
}
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* FSFW_TMTCSERVICES_SOURCESEQUENCECOUNTER_H_ */
|
#endif /* FSFW_TMTCSERVICES_SOURCESEQUENCECOUNTER_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user