InfText.InsertOperation¶
- Implementations:
Methods¶
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class InfText.InsertOperation¶
- Bases:
- Structure:
InfText.InsertOperation
is an opaque data type. You should only access it via the public API functions.- get_length()¶
- Returns:
The length of self.
- Return type:
Returns the length of the text inserted by self.
- get_position()¶
- Returns:
The position to insert text.
- Return type:
Returns the position at which self inserts text.
- need_concurrency_id(against)¶
- Parameters:
against (
Infinity.AdoptedOperation
) – AnotherInfinity.AdoptedOperation
.- Returns:
Whether transforming self against against requires a concurrency ID.
- Return type:
Returns whether transforming self against against requires a concurrency ID (see
Infinity.AdoptedOperation.need_concurrency_id
() for further information).
- transform_delete(against)¶
- Parameters:
against (
InfText.DeleteOperation
) – AInfText.DeleteOperation
.- Returns:
A new
Infinity.AdoptedOperation
.- Return type:
Returns a new operation that includes the effect of against into self.
- transform_insert(against, op_lcs, ag_lcs, cid)¶
- Parameters:
against (
InfText.InsertOperation
) – AnotherInfText.InsertOperation
.op_lcs (
InfText.InsertOperation
) – The given operation in a previous state, orNone
.ag_lcs (
InfText.InsertOperation
) – The against operation in a previous state, orNone
.cid (
Infinity.AdoptedConcurrencyId
) – The concurrency ID for the transformation.
- Returns:
A new
Infinity.AdoptedOperation
.- Return type:
Returns a new operation that includes the effect of against into self.
- do_get_length() virtual¶
- Returns:
The length of operation.
- Return type:
Returns the length of the text inserted by operation.