VersionUtils.kl¶
Interfaces¶
Versioned (interface)¶
Version and valueVersion are actually the same. Users that don’t care about the distinction between container and value versions can simply use ‘version’.
The usage of containerVersion is optional, and its interpretation is implementation dependant. In general, it implies changes that are more fundamental than value changes, such as structural changes.
For example, an Image that changes its size or pixel type can be a container change, while pixel data changes are value changes.
Functions¶
UInt32 | getStructureVersion ? () |
UInt32 | getValueVersion ? () |
UInt32 | getVersion ? () |
incrementStructureVersion ! () | |
incrementValueVersion ! () | |
incrementVersion ! () | |
initStructureVersion ! ( in UInt32 version ) | |
initValueVersion ! ( in UInt32 version ) | |
initVersion ! ( in UInt32 version ) |
Functions in detail¶
UInt32 Versioned.getStructureVersion? ()
UInt32 Versioned.getValueVersion? ()
UInt32 Versioned.getVersion? ()
Versioned.incrementStructureVersion! ()
Versioned.incrementValueVersion! ()
Versioned.incrementVersion! ()
Versioned.initStructureVersion! ( in UInt32 version )
Versioned.initValueVersion! ( in UInt32 version )
Types¶
VersionedSynch (struct)¶
Methods¶
VersionedSynch ( in VersionedSynch other ) | |
VersionedSynch () | |
VersionedSynch | clone ? () |
Boolean | synchronize ! ( in Ref<Versioned> versioned ) |
Versions (struct)¶
A data structure used to express value + topology version changes.
BaseVersioned (object)¶
Methods¶
BaseVersioned ( in BaseVersioned other ) | |
BaseVersioned () | |
BaseVersioned | clone ? () |
UInt32 | getStructureVersion ? () |
UInt32 | getValueVersion ? () |
UInt32 | getVersion ? () |
incrementStructureVersion ! () | |
Boolean | incrementStructureVersionIf ! ( in Boolean condition ) |
incrementValueVersion ! () | |
incrementVersion ! () | |
Boolean | incrementVersionIf ! ( in Boolean condition ) |
initStructureVersion ! ( in UInt32 version ) | |
initValueVersion ! ( in UInt32 version ) | |
initVersion ! ( in UInt32 version ) |
Functions¶
synchronizeVersion¶
Boolean synchronizeVersion ( in UInt64 source, io UInt64 observer )
returns true if the observer version needs to be synchronized with the source