trait GenContext[S <: Sys[S]] extends Disposable[proc.GenContext.S.Tx]
Context for rendering generated objects.
- Alphabetic
- By Inheritance
- GenContext
- Disposable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Abstract Value Members
-
abstract
def
acquire[A <: Disposable[S.Tx]](obj: Obj[S])(init: ⇒ A)(implicit tx: S.Tx): A
Acquires a resource associated with an object.
Acquires a resource associated with an object. The resource is stored under the key
obj.id, and an internal use count is maintained, callingdisposeon the resource if the count goes back to zero.- A
the type of resource which must be a
Disposable- obj
the object used as a look-up key
- init
the function that produces the resource if it was not yet in the cache
- returns
the resource, either already found in the cache or newly produced
- implicit abstract def cursor: Cursor[S]
-
abstract
def
dispose()(implicit tx: S.Tx): Unit
- Definition Classes
- Disposable
-
abstract
def
get[A](obj: Obj[S])(implicit tx: S.Tx): Option[A]
Attempts to find a resource associated with an object.
Attempts to find a resource associated with an object.
- A
the type of resource
- obj
the object used as a look-up key
- returns
the resource, if it was found in the cache, or
None
-
abstract
def
release(obj: Obj[S])(implicit tx: S.Tx): Unit
Releases a resource associated with an object.
Releases a resource associated with an object. This decreases the use count of the resource, and calls
disposeon it if the count goes back to zero.- obj
the object used as a look-up key
- implicit abstract def workspace: Workspace[S]
Concrete Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )