UpdateSeq
from panda3d.core import UpdateSeq
- class UpdateSeq
Bases:
DTOOL_SUPER_BASE
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 diagram
- __init__(*args, **kwargs)
- clear()
C++ Interface: clear(const UpdateSeq self)
- /**
Resets the UpdateSeq to the ‘initial’ state.
*/
- fresh()
C++ Interface: fresh()
- getSeq()
C++ Interface: get_seq(UpdateSeq self)
- /**
Returns the internal integer value associated with the UpdateSeq. Useful
for debugging only.
*/
- get_seq()
C++ Interface: get_seq(UpdateSeq self)
- /**
Returns the internal integer value associated with the UpdateSeq. Useful
for debugging only.
*/
- increment()
C++ Interface: increment(const UpdateSeq self)
- initial()
C++ Interface: initial()
- isFresh()
C++ Interface: is_fresh(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘fresh’ state.
*/
- isInitial()
C++ Interface: is_initial(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘initial’ state.
*/
- isOld()
C++ Interface: is_old(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘old’ state.
*/
- isSpecial()
C++ Interface: is_special(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in any special states, i.e. ‘initial’,
‘old’, or ‘fresh’.
*/
- is_fresh()
C++ Interface: is_fresh(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘fresh’ state.
*/
- is_initial()
C++ Interface: is_initial(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘initial’ state.
*/
- is_old()
C++ Interface: is_old(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in the ‘old’ state.
*/
- is_special()
C++ Interface: is_special(UpdateSeq self)
- /**
Returns true if the UpdateSeq is in any special states, i.e. ‘initial’,
‘old’, or ‘fresh’.
*/
- old()
C++ Interface: old()
- seq