ClockVector Class

Represents a clock vector in a knowledge structure. This class cannot be inherited.

System.Object
  Microsoft.Synchronization.ClockVector

Namespace:  Microsoft.Synchronization
Assembly:  Microsoft.Synchronization (in Microsoft.Synchronization.dll)

public sealed class ClockVector : IClockVector, 
	IList<IClockVectorElement>, ICollection<IClockVectorElement>, IEnumerable<IClockVectorElement>, 
	IEnumerable, IXmlSerializable

The ClockVector type exposes the following members.

  NameDescription
Public methodClockVectorInitializes a new instance of the ClockVector class.
Top

  NameDescription
Public propertyCountGets the number of elements that are contained in the clock vector.
Public propertyIsReadOnlyGets a value that indicates whether the element list is read-only.
Public propertyItemGets or sets the element in the clock vector that is indicated by the value of index.
Top

  NameDescription
Public methodAddAdds an element to the clock vector.
Public methodClearRemoves all items from the clock vector.
Public methodContainsDetermines whether the clock vector contains the specified element.
Public methodCopyToCopies the elements of the clock vector to array, starting at the index specified by arrayIndex.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetEnumeratorReturns an enumerator that iterates through the clock vector elements.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodIndexOfDetermines the index of a specific item in the clock vector element list.
Public methodInsertInserts an element into the clock vector at the specified index.
Protected methodMemberwiseClone (Inherited from Object.)
Public methodRemoveRemoves the first occurrence of a specific element from the clock vector.
Public methodRemoveAtRemoves the element at the specified index.
Public methodToStringReturns a string that represents this object. (Overrides Object.ToString().)
Top

  NameDescription
Explicit interface implemetationPrivate methodIEnumerable.GetEnumeratorReturns an enumerator that iterates through the collection of clock vector elements.
Explicit interface implemetationPrivate methodIXmlSerializable.GetSchemaReturns a null.
Explicit interface implemetationPrivate methodIXmlSerializable.ReadXmlReconstitutes the object from its XML representation.
Explicit interface implemetationPrivate methodIXmlSerializable.WriteXmlConverts this object into its XML representation.
Top

A clock vector defines the changes that are contained in a knowledge structure by using a list of ClockVectorElement objects. A ClockVectorElement object exists for each replica that has made a change that is contained in the knowledge. A change made by a particular replica is defined to be contained in the knowledge if the tick count for the change occurs between 0 and the tick count contained in ClockVectorElement that tracks that replica.

The members of IXmlSerializable and IEnumerable are implemented explicitly. Code that accesses them must first cast the ClockVector object to the IXmlSerializable or IEnumerable interface by using the casting operator or the as keyword.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Show: