Object

molecule.stream.ochan.immutable

VoidOChan

Related Doc: package immutable

Permalink

object VoidOChan extends OChan[Any]

Linear Supertypes
OChan[Any], AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. VoidOChan
  2. OChan
  3. AnyRef
  4. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. def :+:(seg: Seg[Any]): OChan[Any]

    Permalink

    [use case]

    [use case]
    seg

    the segment to prepend.

    returns

    an output which produces seg as first segment and which continues with the remaining of the stream.

    Definition Classes
    OChan
    Full Signature

    def :+:[B <: Any](seg: Seg[B])(implicit arg0: Message[B]): OChan[B]

  4. def :+:(x: Any): OChan[Any]

    Permalink

    [use case]

    [use case]
    x

    the message to prepend.

    returns

    an output which produces x as first message and which continues with the remaining of the stream.

    Definition Classes
    OChan
    Full Signature

    def :+:[B <: Any](x: B)(implicit arg0: Message[B]): OChan[B]

  5. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  6. def add[B](transformer: Transformer[Any, B])(implicit arg0: Message[B]): OChan[B]

    Permalink

    Add a stream transformer to this channel.

    Add a stream transformer to this channel.

    returns

    the transformed channel

    Definition Classes
    VoidOChanOChan
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. def close(signal: Signal): Unit

    Permalink

    Close the channel

    Close the channel

    Definition Classes
    VoidOChanOChan
  10. def close(t: platform.UThread, a: Any, signal: Signal): Unit

    Permalink

    Write last value

    Write last value

    a

    the last value

    Definition Classes
    OChan
  11. def close(t: platform.UThread, seg: Seg[Any], signal: Signal): Unit

    Permalink

    Write the last segment

    Write the last segment

    Note that this must flush any buffered channel (@see BufferedOChan).

    seg

    the last segment

    Definition Classes
    OChan
  12. def collect[B](pf: PartialFunction[B, Any]): OChan[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned output channel.

    pf

    the partial function which filters and maps the stream elements.

    returns

    a new output resulting from applying the partial function pf to each message on which it is defined. The order of the messages is preserved.

    Definition Classes
    OChan
    Full Signature

    def collect[B](f: PartialFunction[B, Any])(implicit arg0: Message[B]): OChan[B]

  13. def compress[B](f: (Seg[B]) ⇒ Any): OChan[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned output.

    f

    the function to apply to each segment and returning a single message.

    returns

    a new output resulting from applying the given collection-valued function f to each segment written to it.

    Definition Classes
    OChan
    Full Signature

    def compress[B](f: (Seg[B]) ⇒ Any)(implicit arg0: Message[B]): OChan[B]

  14. def debug[B <: Any](label: String, f: (B) ⇒ String = b: B => b.toString)(implicit arg0: Message[B]): OChan[B]

    Permalink

    Builds a new debugging output that prints every message received.

    Builds a new debugging output that prints every message received.

    label

    the label to put in front of each debug line.

    f

    A function converting messages to a string (defaults to _.toString).

    returns

    The same output excepted each message will be printed.

    Definition Classes
    OChan
  15. def encode[B](f: (B) ⇒ Seg[Any]): OChan[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned output.

    f

    the function to apply to each message and returning a segment.

    returns

    a new output resulting from applying the given collection-valued function f to each message written and concatenating the results.

    Definition Classes
    OChan
    Full Signature

    def encode[B](f: (B) ⇒ Seg[Any])(implicit arg0: Message[B]): OChan[B]

  16. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  17. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  18. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. def flatMap[B](f: (B) ⇒ Traversable[Any]): OChan[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned output.

    f

    the function to apply to each message.

    returns

    a new input resulting from applying the given collection-valued function f to each message of this input and concatenating the results.

    Definition Classes
    OChan
    Full Signature

    def flatMap[B](f: (B) ⇒ Seg[Any])(implicit arg0: Message[B]): OChan[B]

  20. def flush[B <: Any](ichan: IChan[B]): Process[(IChan[B], OChan[B])]

    Permalink

    Flush the content of an input to this output.

    Flush the content of an input to this output. It stops as soon as one of the two channel is poisoned and it does not propagate the poison signal.

    returns

    A stream that returns the channels after the flush operation. If the stream completed successfully, then the input channel is closed, otherwise the output channel is poisoned.

    Definition Classes
    OChan
  21. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  22. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  23. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  24. def map[B](f: (B) ⇒ Any): OChan[B]

    Permalink

    [use case]

    [use case]
    B

    the message type of the returned input.

    f

    the function to apply to each message.

    returns

    a new input resulting from applying the given function f to each message of this input.

    Definition Classes
    OChan
    Full Signature

    def map[B](f: (B) ⇒ Any)(implicit arg0: Message[B]): OChan[B]

  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def parse[B](parse: Parser[B, Any])(implicit arg0: Message[B]): OChan[B]

    Permalink

    Produces an output resulting from applying a repeatedly a parser combinator to its messages.

    Produces an output resulting from applying a repeatedly a parser combinator to its messages.

    B

    the type of the messages of the resulting output

    returns

    output which parses its messages

    Definition Classes
    OChan
  29. def smap[S, B](z: S)(fsm: (S, B) ⇒ (S, Any))(implicit arg0: Message[B]): OChan[B]

    Permalink

    Builds an output producing cummulative results of applying the operator going from first to last message written.

    Builds an output producing cummulative results of applying the operator going from first to last message written.

    B

    the type of the messages accepted by the resulting output

    z

    the initial state

    returns

    output producing intermediate results

    Definition Classes
    OChan
  30. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  31. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  32. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  33. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  34. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. def write(thread: platform.UThread, seg: Seg[Any], sigOpt: Option[Signal], k: (OChan[Any]) ⇒ Unit): Unit

    Permalink

    Write a segment on this channel.

    Write a segment on this channel.

    k

    the continuation invoked once the message has been written

    Definition Classes
    VoidOChanOChan

Inherited from OChan[Any]

Inherited from AnyRef

Inherited from Any

Ungrouped