MCPcopy Create free account

hub / github.com/anshulahuja98/python3-crdt / functions

Functions112 in github.com/anshulahuja98/python3-crdt

↓ 154 callersMethodquery
The function to return True if element is present in the payload. Args: elem (any_type): The element to be searched for.
py3crdt/gset.py:32
↓ 46 callersMethodremove
The function to remove the element. Args: elem (any_type): The element to be removed. Note: 'elem'
py3crdt/orset.py:223
↓ 40 callersMethodmerge
The function to merge the GSet object's payload with the argument's payload. Args: gs2 (GSet): The GSet object to be com
py3crdt/gset.py:61
↓ 25 callersMethodadd
The function to add the element to the payload. Args: elem (any_type): The element to be added.
py3crdt/gset.py:18
↓ 18 callersMethodinc
The function to increment the key's value in payload. Args: key (any_type): The key of the node to be added.
py3crdt/gcounter.py:37
↓ 12 callersMethodget_seq
The function to get the sequence as string.
py3crdt/sequence.py:229
↓ 8 callersMethodadd_new_node
The function to add the key to the payload. Args: key (any_type): The key of the node to be added. Note:
py3crdt/gcounter.py:24
↓ 7 callersMethoddec
The function to decrement the key's value in payload. Args: key (any_type): The key of the node to be added. No
py3crdt/pncounter.py:53
↓ 3 callersMethodupdate_seq
(self)
py3crdt/sequence.py:124
↓ 2 callersMethodcompare
The function to compare two LWW objects' payload. Args: payload1 (list): payload to be compared with. payloa
py3crdt/lww.py:40
↓ 2 callersMethoddisplay
The function to print the object. Args: name (string): payload type. payload (list): payload to display.
py3crdt/lww.py:93
↓ 2 callersMethodmerge
The function to merge the payload2 to payload1. Args: payload1 (list): payload to be merged to. payload2 (li
py3crdt/lww.py:58
↓ 2 callersMethodupdate
The function to add an element to Payload. Args: payload (list): payload in which element has to be added. e
py3crdt/lww.py:10
↓ 1 callersMethodadd
The function to add the element. Args: elem (any_type): The element to be added. Note: 'elem' is ad
py3crdt/twopset.py:28
↓ 1 callersMethodinc
The function to increment the key's value in payload. Args: key (any_type): The key of the node to be added. No
py3crdt/pncounter.py:40
↓ 1 callersMethodremove
The function to remove the element. Args: id (any_type): The ID of the element to be removed. Note:
py3crdt/sequence.py:159
Method__init__
(self, id)
py3crdt/twopset.py:23
Method__init__
(self, id)
py3crdt/node.py:9
Method__init__
(self, id)
py3crdt/lww.py:132
Method__init__
(self, id)
py3crdt/orset.py:203
Method__init__
(self, id)
py3crdt/sequence.py:116
Method__init__
(self, id)
py3crdt/gset.py:14
Method__init__
(self, id)
py3crdt/pncounter.py:21
Method__init__
(self, id)
py3crdt/gcounter.py:20
Methodadd
The function to add the element. Args: elem (any_type): The element to be added. Note: 'elem' is ad
py3crdt/lww.py:138
Methodadd
The function to add an element with it's unique tag to ORSet object's payload. Args: payload (list): Payload in which el
py3crdt/orset.py:7
Methodadd
The function to add the element. Args: elem (any_type): The element to be added. unique_tag (any_type): Tag
py3crdt/orset.py:209
Methodadd
The function to add an element with it's ID to Sequence object's payload. Args: payload (list): Payload in which element
py3crdt/sequence.py:7
Methodadd
The function to add the element. Args: elem (any_type): The element to be added. id (any_type): ID of the el
py3crdt/sequence.py:142
Methodadd_new_node
The function to add the key to the payload. Args: key (any_type): The key of the node to be added. Note:
py3crdt/pncounter.py:26
Methodcompare
The function to compare the payloads with the argument's payloads. Args: tps2 (TwoPSet): Object to be compared to.
py3crdt/twopset.py:67
Methodcompare
The function to compare the payload with the argument's payload. Args: lww (LWWElementSet): Object to be compared to.
py3crdt/lww.py:182
Methodcompare
The function to compare two ORSet objects' payloads. Args: payload1 (list): Payload to be compared with. pay
py3crdt/orset.py:87
Methodcompare
The function to compare the payloads with the argument's payloads. Args: orset (ORSet): Object to be compared to.
py3crdt/orset.py:251
Methodcompare
The function to compare two GSet objects. Args: gs2 (GSet): The GSet object to be compared. Returns:
py3crdt/gset.py:45
Methodcompare
The function to compare the payload value with argument's object's payload value. Args: pnc2 (PNCounter): The PNCounter
py3crdt/pncounter.py:76
Methodcompare
The function to compare the payload value with argument's object's payload value. Args: gc2 (GCounter): The GCounter obj
py3crdt/gcounter.py:60
Methoddisplay
The function to print the object's payloads.
py3crdt/twopset.py:97
Methoddisplay
The function to print the object's payload.
py3crdt/lww.py:212
Methoddisplay
The function to print the object. Args: name (string): Payload type. payload (list): Payload to display.
py3crdt/orset.py:138
Methoddisplay
The function to print the object's payloads.
py3crdt/orset.py:281
Methoddisplay
The function to print the object. Args: name (string): Payload type. payload (list): Payload to display.
py3crdt/sequence.py:69
Methoddisplay
The function to print the object's payloads.
py3crdt/sequence.py:219
Methoddisplay
The function to print the object's payload.
py3crdt/gset.py:77
Methoddisplay
The function to print the object's payloads.
py3crdt/pncounter.py:104
Methoddisplay
The function to print the object's payload.
py3crdt/gcounter.py:91
Methodget_seq
The function to return a string of elements in the payload. Args: payload (list): Payload to display. Returns:
py3crdt/sequence.py:81
Methodmerge
The function to merge the payloads with the argument's payloads. Args: tps2 (TwoPSet): Object to be merged from.
py3crdt/twopset.py:83
Methodmerge
The function to merge the payload with the argument's payload. Args: lww (LWWElementSet): Object to be merged from.
py3crdt/lww.py:198
Methodmerge
The function to merge the payload2 to payload1. Args: payload1 (list): Payload to be merged to. payload2 (li
py3crdt/orset.py:110
Methodmerge
The function to merge the payloads with the argument's payloads. Args: orset (ORSet): Object to be merged from.
py3crdt/orset.py:267
Methodmerge
The function to merge the payload2 to payload1. Args: payload1 (list): Payload to be merged to. payload2 (li
py3crdt/sequence.py:50
Methodmerge
The function to merge the lists with the argument's list. Args: list ( list: List to be merged from,
py3crdt/sequence.py:194
Methodmerge
The function to merge the PNCounter object's payload with the argument's payload. Args: pnc2 (PNCounter): The PNCounter
py3crdt/pncounter.py:89
Methodmerge
The function to merge the GCounter object's payload with the argument's payload. Args: gc2 (GCounter): The GCounter obje
py3crdt/gcounter.py:75
Methodquery
The function to return True if element is present in the payload. Args: elem (any_type): The element to be searched for.
py3crdt/twopset.py:54
Methodquery
The function to return True if element is present in the payload. Args: elem (any_type): The element to be searched for.
py3crdt/lww.py:164
Methodquery
The function to return tags list if element is present in the payload. Args: elem (any_type): The element to be searched
py3crdt/orset.py:163
Methodquery
The function to return True if element is present in the payload. Args: elem (any_type): The element to be searched for.
py3crdt/orset.py:236
Methodquery
The function to return True if ID of the element is present in the list. Args: elem (any_type): The element to be search
py3crdt/sequence.py:175
Methodquery
The function to return the effective counter value. Note: Returns the difference between gcounter object P and N.
py3crdt/pncounter.py:66
Methodquery
The function to return sum of the payload values. Returns: int: Sum of the payload values.
py3crdt/gcounter.py:50
Methodremove
The function to remove the element. Args: elem (any_type): The element to be removed. Note: 'elem'
py3crdt/twopset.py:41
Methodremove
The function to remove the element. Args: elem (any_type): The element to be removed. Note: 'elem'
py3crdt/lww.py:151
Methodremove
The function to remove an element from ORSet object's payload. Args: payloadA (list): Payload in which elements to be ad
py3crdt/orset.py:40
Methodremove
The function to remove an element from Sequence object's payload. Args: payload (list): Payload in which elements to be
py3crdt/sequence.py:29
MethodsetUp
(self)
tests/test_orset.py:8
MethodsetUp
(self)
tests/test_pncounter.py:9
MethodsetUp
(self)
tests/test_gcounter.py:9
MethodsetUp
(self)
tests/test_sequence.py:9
MethodsetUp
(self)
tests/test_gset.py:8
MethodsetUp
(self)
tests/test_lww.py:8
MethodsetUp
(self)
tests/test_twopset.py:8
Methodtest_check_increment
(self)
tests/test_gcounter.py:36
Methodtest_elements_add_correctly_gset
(self)
tests/test_gset.py:24
Methodtest_elements_add_correctly_lww_set
(self)
tests/test_lww.py:24
Methodtest_elements_add_correctly_orset
(self)
tests/test_orset.py:24
Methodtest_elements_add_correctly_sequence
(self)
tests/test_sequence.py:30
Methodtest_elements_add_correctly_twopset
(self)
tests/test_twopset.py:24
Methodtest_elements_remove_correctly_lww_set
(self)
tests/test_lww.py:73
Methodtest_elements_remove_correctly_orset
(self)
tests/test_orset.py:81
Methodtest_elements_remove_correctly_sequence
(self)
tests/test_sequence.py:78
Methodtest_elements_remove_correctly_twopset
(self)
tests/test_twopset.py:73
Methodtest_merge
(self)
tests/test_pncounter.py:54
Methodtest_merging_gcounters
(self)
tests/test_gcounter.py:42
Methodtest_merging_gset
(self)
tests/test_gset.py:41
Methodtest_merging_lww_set_with_removal
(self)
tests/test_lww.py:107
Methodtest_merging_lww_set_without_removal
(self)
tests/test_lww.py:43
Methodtest_merging_orset_with_removal
(self)
tests/test_orset.py:115
Methodtest_merging_orset_without_removal
(self)
tests/test_orset.py:43
Methodtest_merging_sequence_with_removal
(self)
tests/test_sequence.py:112
Methodtest_merging_sequence_without_removal
(self)
tests/test_sequence.py:49
Methodtest_merging_twopset_with_removal
(self)
tests/test_twopset.py:107
Methodtest_merging_twopset_without_removal
(self)
tests/test_twopset.py:43
Methodtest_querying_gset_with_merging
(self)
tests/test_gset.py:53
Methodtest_querying_gset_without_merging
(self)
tests/test_gset.py:28
Methodtest_querying_lww_set_with_merging_with_removal
(self)
tests/test_lww.py:129
Methodtest_querying_lww_set_with_merging_without_removal
(self)
tests/test_lww.py:58
Methodtest_querying_lww_set_without_merging_with_removal
(self)
tests/test_lww.py:87
Methodtest_querying_lww_set_without_removal_and_merging
(self)
tests/test_lww.py:30
next →1–100 of 112, ranked by callers