# UpdateSeq

from pandac.PandaModules import UpdateSeq

Class : UpdateSeq
Description : This is a sequence number that increments monotonically. It can be used to track cache updates, or serve as a kind of timestamp for any changing properties.
A special class is used instead of simply an int, so we can elegantly handle such things as wraparound and special cases. There are two special cases. Firstly, a sequence number is 'initial' when it is first created. This sequence is older than any other sequence number. Secondly, a sequence number may be explicitly set to 'old'. This is older than any other sequence number except 'initial'. Finally, we have the explicit number 'fresh', which is newer than any other sequence number. All other sequences are numeric and are monotonically increasing.

## Inheritance:

UpdateSeq:

## Methods of UpdateSeq:

clear
fresh
initial
isFresh
isInitial
isOld
isSpecial
old
operator !=
operator ++
operator ++
operator <
operator <=
operator =
operator ==
operator >
operator >=
output

clear void UpdateSeq::clear(void); Description: Resets the UpdateSeq to the 'initial' state.

fresh static UpdateSeq UpdateSeq::fresh(void); Description: Returns an UpdateSeq in the 'fresh' state.

initial static UpdateSeq UpdateSeq::initial(void); Description: Returns an UpdateSeq in the 'initial' state.

isFresh bool UpdateSeq::is_fresh(void) const; Description: Returns true if the UpdateSeq is in the 'fresh' state.

isInitial bool UpdateSeq::is_initial(void) const; Description: Returns true if the UpdateSeq is in the 'initial' state.

isOld bool UpdateSeq::is_old(void) const; Description: Returns true if the UpdateSeq is in the 'old' state.

isSpecial bool UpdateSeq::is_special(void) const; Description: Returns true if the UpdateSeq is in any special states, i.e. 'initial', 'old', or 'fresh'.

old static UpdateSeq UpdateSeq::old(void); Description: Returns an UpdateSeq in the 'old' state.

operator != bool UpdateSeq::operator !=(UpdateSeq const &other) const; Description:

operator ++ UpdateSeq UpdateSeq::operator ++(int ); Description:

operator ++ UpdateSeq UpdateSeq::operator ++(int ); Description:

operator < bool UpdateSeq::operator <(UpdateSeq const &other) const; Description:

operator <= bool UpdateSeq::operator <=(UpdateSeq const &other) const; Description:

operator = UpdateSeq &UpdateSeq::operator =(UpdateSeq const &copy); Description:

operator == bool UpdateSeq::operator ==(UpdateSeq const &other) const; Description:

operator > bool UpdateSeq::operator >(UpdateSeq const &other) const; Description:

operator >= bool UpdateSeq::operator >=(UpdateSeq const &other) const; Description:

output void UpdateSeq::output(ostream &out) const; Description: