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.

Versioned Versioned Versioned BaseAttribute BaseAttribute BaseAttribute->Versioned ColorAttribute ColorAttribute ColorAttribute->BaseAttribute IntegerAttribute IntegerAttribute IntegerAttribute->BaseAttribute Mat33Attribute Mat33Attribute Mat33Attribute->BaseAttribute Mat44Attribute Mat44Attribute Mat44Attribute->BaseAttribute QuatAttribute QuatAttribute QuatAttribute->BaseAttribute RGBAAttribute RGBAAttribute RGBAAttribute->BaseAttribute RGBAttribute RGBAttribute RGBAttribute->BaseAttribute ScalarAttribute ScalarAttribute ScalarAttribute->BaseAttribute ScalarConstantArrayAttribute ScalarConstantArrayAttribute ScalarConstantArrayAttribute->BaseAttribute SkinningAttribute SkinningAttribute SkinningAttribute->BaseAttribute UInt16ConstantArrayAttribute UInt16ConstantArrayAttribute UInt16ConstantArrayAttribute->BaseAttribute UInt32Attribute UInt32Attribute UInt32Attribute->BaseAttribute Vec2Attribute Vec2Attribute Vec2Attribute->BaseAttribute Vec3Attribute Vec3Attribute Vec3Attribute->BaseAttribute Vec3_dAttribute Vec3_dAttribute Vec3_dAttribute->BaseAttribute Vec4Attribute Vec4Attribute Vec4Attribute->BaseAttribute BaseGeometry BaseGeometry BaseGeometry->Versioned Curves Curves Curves->BaseGeometry DrawElements DrawElements DrawElements->BaseGeometry Lines Lines Lines->BaseGeometry Points Points Points->BaseGeometry PolygonMesh PolygonMesh PolygonMesh->BaseGeometry BaseVersioned BaseVersioned BaseVersioned->Versioned OGLBaseObject OGLBaseObject OGLBaseObject->BaseVersioned OGLBuffer_ OGLBuffer_ OGLBuffer_->OGLBaseObject OGLFramebuffer OGLFramebuffer OGLFramebuffer->OGLBaseObject OGLProgram OGLProgram OGLProgram->OGLBaseObject OGLRenderbuffer OGLRenderbuffer OGLRenderbuffer->OGLBaseObject OGLShader_ OGLShader_ OGLShader_->OGLBaseObject OGLTexture OGLTexture OGLTexture->OGLBaseObject OGLVertexArray OGLVertexArray OGLVertexArray->OGLBaseObject OGLViewport OGLViewport OGLViewport->OGLBaseObject OGLProgramParamValues OGLProgramParamValues OGLProgramParamValues->BaseVersioned ThreadsafeMetaDataContainer ThreadsafeMetaDataContainer ThreadsafeMetaDataContainer->BaseVersioned

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 )


Versioned.initVersion! ( in UInt32 version )

Types

VersionedSynch (struct)

Members

UInt32 lastVersion  
UInt64 lastVersionedUID  

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.

Members

UInt32 value  
UInt32 topo  

Methods

  Versions ( in Versions other )
  Versions ()
Versions clone ? ()
  incTopo ! ()
  incValue ! ()
Boolean synchronize ! ( in Versions source )
Boolean synchronize ! ( in Versions source, io Versions parent )

BaseVersioned (object)

Members

Versions version  

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

synchronizeVersion

Boolean synchronizeVersion ( in UInt64 source, io UInt64 observer )

returns true if the observer version needs to be synchronized with the source

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )

updateValue

updateValue ( in Float64 source, io Float64 target, io Boolean changedAccumulator )