All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala.reactive.container.ReactRecord.scala Maven / Gradle / Ivy

The newest version!
package scala.reactive
package container



import language.dynamics
import scala.collection._



trait ReactRecord extends ReactMutable {
  private[reactive] lazy val declarations = mutable.Set[AnyRef]()
  private[reactive] lazy val mutables = mutable.Set[ReactMutable]()
  override def onMutated() {
    for (rm <- mutables) rm.onMutated()
  }
  object react {
    def <<=[S <: AnyRef](s: S): S = {
      declarations += s
      s
    }
  }
  object recorded {
    def <<=[R <: ReactMutable](rm: R): R = {
      mutables += rm
      rm
    }
  }
}


object ReactRecord {

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy