Infinity.AdoptedSplitOperation¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The first operation of the split operation |
||
r/w/co |
The second operation of the split operation |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class Infinity.AdoptedSplitOperation(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Infinity.AdoptedSplitOperation
is an opaque data type. You should only access it via the public API functions.- classmethod new(first, second)¶
- Parameters:
first (
Infinity.AdoptedOperation
) – one of theInfinity.AdoptedOperation
s to be wrappedsecond (
Infinity.AdoptedOperation
) – the otherInfinity.AdoptedOperation
to be wrapped
- Returns:
- Return type:
Creates a new
Infinity.AdoptedSplitOperation
. A split operation is simply a wrapper around two operations (which may in turn be split operations).
- transform_other(other, op_lcs, other_lcs, concurrency_id)¶
- Parameters:
other (
Infinity.AdoptedOperation
) – An arbitraryInfinity.AdoptedOperation
.op_lcs (
Infinity.AdoptedOperation
) – The operation self at a previous state, orNone
.other_lcs (
Infinity.AdoptedOperation
) – The operation other at a previous state, orNone
.concurrency_id (
int
) – The concurrency id for the transformation of other against self.
- Returns:
The transformed operation.
- Return type:
Transforms other against self.
- unsplit()¶
- Returns:
A list of operations. Free with g_slist_free() when done.
- Return type:
Returns a list of the operations contained by the split operation. If the splitted operation are in turn split operations, they will also be unsplitted. The returned list is guarenteed to not contain a
Infinity.AdoptedSplitOperation
.
Property Details¶
- Infinity.AdoptedSplitOperation.props.first¶
- Name:
first
- Type:
- Default Value:
- Flags:
The first operation of the split operation
- Infinity.AdoptedSplitOperation.props.second¶
- Name:
second
- Type:
- Default Value:
- Flags:
The second operation of the split operation