src/cplib/collections/avlset_old

  Source   Edit

Types

AvlSortedMultiSet[T] = object
  root*: AvlTreeNode[T]
  Source   Edit
AVLSortedSet[T] = object
  root*: AvlTreeNode[T]
  Source   Edit

Procs

proc `$`[T](self: AVLSets[T]): string
  Source   Edit
proc `[]`[T](self: AVLSets[T]; idx: BackwardsIndex): T
  Source   Edit
proc `[]`[T](self: AVLSets[T]; idx: int): T
  Source   Edit
proc contains[T](self: AVLSets[T]; x: T): bool
  Source   Edit
proc count[T](self: AVLSets[T]; x: T): int
  Source   Edit
proc excl[T](self: var AVLSets[T]; x: T): bool {.discardable.}
  Source   Edit
proc ge[T](self: AVLSets[T]; x: T): Option[T]
  Source   Edit
proc gt[T](self: AVLSets[T]; x: T): Option[T]
  Source   Edit
proc incl[T](self: var AvlSortedMultiSet[T]; x: T)
  Source   Edit
proc incl[T](self: var AVLSortedSet[T]; x: T): bool {.discardable.}
  Source   Edit
proc index[T](self: AVLSets[T]; x: T): int
  Source   Edit
proc index_right[T](self: AVLSets[T]; x: T): int
  Source   Edit
proc initAvlSortedMultiSet[T](v: seq[T] = @[]): AvlSortedMultiSet[T]
  Source   Edit
proc initAvlSortedSet[T](v: seq[T] = @[]): AVLSortedSet[T]
  Source   Edit
proc le[T](self: AVLSets[T]; x: T): Option[T]
  Source   Edit
proc len[T](self: AVLSets[T]): int
  Source   Edit
proc lowerBound[T](self: AVLSets[T]; x: T): int
  Source   Edit
proc lt[T](self: AVLSets[T]; x: T): Option[T]
  Source   Edit
proc pop[T](self: var AVLSets[T]; idx: int = -1): T
  Source   Edit
proc upperBound[T](self: AVLSets[T]; x: T): int
  Source   Edit

Iterators

iterator items[T](self: AVLSets[T]): T
  Source   Edit