Grapheme

trait Grapheme[T <: Txn[T]] extends BiPin[T, Obj[T]]
Companion
object
trait BiPin[T, Obj[T]]
trait Obj[T]
trait Mutable[T]
trait Identified[T]
trait Elem[T]
trait Publisher[T, Update[T, Obj[T], BiPin[T, Obj[T]]]]
trait Disposable[T]
trait Writable
trait Form[T]
class Object
trait Matchable
class Any
trait Modifiable[T]

Value members

Abstract methods

override
def changed: EventLike[T, Update[T, Obj[T], Grapheme[T]]]
Definition Classes
Publisher
def firstEvent(implicit tx: T): Option[Long]
def lastEvent(implicit tx: T): Option[Long]
override
Definition Classes
BiPin

Inherited methods

def at(time: Long)(implicit tx: T): Option[Entry[T, Obj[T]]]

Queries the element valid for the given point in time. Unlike, intersect, if there are multiple elements sharing the same point in time, this returns the most recently added element.

Queries the element valid for the given point in time. Unlike, intersect, if there are multiple elements sharing the same point in time, this returns the most recently added element.

We propose that this should be the unambiguous way to evaluate the BiPin for a given moment in time.

Value Params
time

the query time point

Returns

an element for the given time point, if it exists, otherwise None

Inherited from
BiPin
final
def attr(implicit tx: T): AttrMap[T]
Inherited from
Obj
def ceil(time: Long)(implicit tx: T): Option[Entry[T, Obj[T]]]

Finds the entry at the given time, or the closest entry after the given time.

Finds the entry at the given time, or the closest entry after the given time.

Value Params
time

the query time

Returns

the entry nearest in time to the query time, but not earlier than the query time, or None if there is no entry at such time

Inherited from
BiPin
def debugList(implicit tx: T): List[(Long, Obj[T])]
Inherited from
BiPin
def dispose()(implicit tx: T): Unit
Inherited from
Disposable
override
def equals(that: Any): Boolean
Definition Classes
Identified -> Any
Inherited from
Identified
def eventAfter(time: Long)(implicit tx: T): Option[Long]

Finds the entry with the smallest time which is greater than the query time.

Finds the entry with the smallest time which is greater than the query time.

Value Params
time

the query time

Returns

the time corresponding to the next entry, or None if there is no entry later than the given time

Inherited from
BiPin
def eventBefore(time: Long)(implicit tx: T): Option[Long]

Finds the entry with the greatest time which is less than the query time.

Finds the entry with the greatest time which is less than the query time.

Value Params
time

the query time

Returns

the time corresponding to the next entry, or None if there is no entry earlier than the given time

Inherited from
BiPin
def floor(time: Long)(implicit tx: T): Option[Entry[T, Obj[T]]]

Finds the entry at the given time, or the closest entry before the given time.

Finds the entry at the given time, or the closest entry before the given time.

Value Params
time

the query time

Returns

the entry nearest in time to the query time, but not later than the query time, or None if there is no entry at such time

Inherited from
BiPin
override
def hashCode: Int
Definition Classes
Identified -> Any
Inherited from
Identified
def id: Ident[T]
Inherited from
Identified
def intersect(time: Long)(implicit tx: T): Leaf[T, Obj[T]]

Queries all elements which are found at a given point in time. There may be multiple time expressions which are not equal but evaluate to the same moment in time. It is thus possible that for a given point, multiple elements are found.

Queries all elements which are found at a given point in time. There may be multiple time expressions which are not equal but evaluate to the same moment in time. It is thus possible that for a given point, multiple elements are found.

Value Params
time

the query point

Returns

the sequence of elements found along with their time expressions

Inherited from
BiPin
def isEmpty(implicit tx: T): Boolean

Returns true if not a single element is contained in the collection.

Returns true if not a single element is contained in the collection.

Inherited from
BiPin
def nonEmpty(implicit tx: T): Boolean

Returns true if at least one element is contained in the collection.

Returns true if at least one element is contained in the collection.

Inherited from
BiPin
override
def toString: String
Definition Classes
Obj -> Any
Inherited from
Obj
override
def tpe: Type
Definition Classes
Obj -> Elem
Inherited from
Obj
def valueAt(time: Long)(implicit tx: T): Option[Obj[T]]
Inherited from
BiPin
def write(out: DataOutput): Unit
Inherited from
Writable