de.sciss.lucre.RefSet.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lucre-base_3 Show documentation
Show all versions of lucre-base_3 Show documentation
Extension of Scala-STM, adding optional durability layer, and providing API for confluent and reactive event layers
/*
* RefSet.scala
* (Lucre 4)
*
* Copyright (c) 2009-2021 Hanns Holger Rutz. All rights reserved.
*
* This software is published under the GNU Affero General Public License v3+
*
*
* For further information, please contact Hanns Holger Rutz at
* [email protected]
*/
package de.sciss.lucre
import scala.collection.immutable
trait RefSet[T <: Exec[T], A] {
def add (elem: A)(implicit tx: T): Boolean
def remove (elem: A)(implicit tx: T): Boolean
def contains(elem: A)(implicit tx: T): Boolean
def size (implicit tx: T): Int
def isEmpty (implicit tx: T): Boolean
def foreach[B](f: A => B)(implicit tx: T): Unit
def toSet(implicit tx: T): immutable.Set[A]
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy