InfText.DeleteOperation¶
- Implementations:
InfText.DefaultDeleteOperation
,InfText.RemoteDeleteOperation
Methods¶
|
|
|
|
|
|
|
|
|
Virtual Methods¶
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class InfText.DeleteOperation¶
- Bases:
- Structure:
InfText.DeleteOperation
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 number of characters deleted by self.
- get_position()¶
- Returns:
The position of self.
- Return type:
Returns the position at which self starts to delete dext.
- 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
) – AnotherInfText.DeleteOperation
.- Returns:
A new
Infinity.AdoptedOperation
.- Return type:
Returns a new operation that includes the effect of against into self.
- transform_insert(against)¶
- Parameters:
against (
InfText.InsertOperation
) – AInfText.InsertOperation
.- 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 number of characters deleted by operation.