QDpy
Loading...
Searching...
No Matches
qdpy.containers.base.SimpleOrderedSet Class Reference

BACKEND CLASSES ########### {{{1. More...

Inheritance diagram for qdpy.containers.base.SimpleOrderedSet:

Public Member Functions

None add (self, T key)
None discard (self, T key)
None update (self, Iterable iterable)

Detailed Description

BACKEND CLASSES ########### {{{1.

Store unique hashable entries in insertion order with integer indexing.

Equality controls uniqueness. Re-adding an equal entry keeps the
original entry and index. Keep the hash-relevant part of a genome
unchanged while stored.

Definition at line 50 of file base.py.

Member Function Documentation

◆ add()

None qdpy.containers.base.SimpleOrderedSet.add ( self,
T key )
Add ``key`` to this SimpleOrderedSet, if it is not already present. 

Definition at line 102 of file base.py.

◆ discard()

None qdpy.containers.base.SimpleOrderedSet.discard ( self,
T key )
Discard ``key`` in this SimpleOrderedSet. Does not raise an exception if absent.

Definition at line 109 of file base.py.

◆ update()

None qdpy.containers.base.SimpleOrderedSet.update ( self,
Iterable iterable )
Add the items in ``iterable``, if they are not already present in the SimpleOrderedSet.  

Definition at line 116 of file base.py.


The documentation for this class was generated from the following file: