molecule.stream.ochan.immutable

VoidOChan

object VoidOChan extends OChan[Any]

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

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    [use case] Adds a segment in front of this output.

    [use case]

    Adds a segment in front of this output.

    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
  5. def :+:[B <: Any](seg: Seg[B])(implicit arg0: Message[B]): OChan[B]

    Adds a segment in front of this output.

    Adds a segment in front of this output.

    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
  6. abstract def :+:(x: Any): OChan[Any]

    [use case] Adds a message in front of this output.

    [use case]

    Adds a message in front of this output.

    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
  7. def :+:[B <: Any](x: B)(implicit arg0: Message[B]): OChan[B]

    Adds a message in front of this output.

    Adds a message in front of this output.

    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
  8. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  9. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  10. def add[B](transformer: (OChan[Any]) ⇒ OChan[B])(implicit arg0: Message[B]): OChan[B]

    Add a stream transformer to this channel.

    Add a stream transformer to this channel.

    returns

    the transformed channel

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

    Definition Classes
    Any
  12. def clone(): AnyRef

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

    Close the channel

    Close the channel

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

    Write last value

    Write last value

    a

    the last value

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

    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
  16. abstract def collect[B](pf: PartialFunction[B, Any]): OChan[B]

    [use case] Builds a new output that applies a partial function to all messages on which the function is defined and filter out the others.

    [use case]

    Builds a new output that applies a partial function to all messages on which the function is defined and filter out the others.

    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
  17. def collect[B](f: PartialFunction[B, Any])(implicit arg0: Message[B]): OChan[B]

    Builds a new output that applies a partial function to all messages on which the function is defined and filter out the others.

    Builds a new output that applies a partial function to all messages on which the function is defined and filter out the others.

    B

    the message type of the returned output channel.

    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
  18. abstract def compress[B](f: (Seg[B]) ⇒ Any): OChan[B]

    [use case] Builds a new output that applies a function to every segment written to it.

    [use case]

    Builds a new output that applies a function to every segment written to it.

    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
  19. def compress[B](f: (Seg[B]) ⇒ Any)(implicit arg0: Message[B]): OChan[B]

    Builds a new output that applies a function to every segment written to it.

    Builds a new output that applies a function to every segment written to it.

    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
  20. def debug[B <: Any](label: String, f: (B) ⇒ String)(implicit arg0: Message[B]): OChan[B]

    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
  21. abstract def encode[B](f: (B) ⇒ Seg[Any]): OChan[B]

    [use case] Builds a new output that applies a function to every messages written to it and concatenates the resulting segments.

    [use case]

    Builds a new output that applies a function to every messages written to it and concatenates the resulting segments.

    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
  22. def encode[B](f: (B) ⇒ Seg[Any])(implicit arg0: Message[B]): OChan[B]

    Builds a new output that applies a function to every messages written to it and concatenates the resulting segments.

    Builds a new output that applies a function to every messages written to it and concatenates the resulting segments.

    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
  23. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws()
  26. abstract def flatMap[B](f: (B) ⇒ Traversable[Any]): OChan[B]

    [use case] Builds a new output that applies a function to all messages written to it and concatenates the results.

    [use case]

    Builds a new output that applies a function to all messages written to it and concatenates the results.

    B

    the message type of the returned output.

    f

    the function to apply to each message.

    returns

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

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

    Builds a new output that applies a function to all messages written to it and concatenates the results.

    Builds a new output that applies a function to all messages written to it and concatenates the results.

    B

    the message type of the returned output.

    f

    the function to apply to each message.

    returns

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

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

    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
  29. final def getClass(): java.lang.Class[_]

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

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

    Definition Classes
    Any
  32. abstract def map[B](f: (B) ⇒ Any): OChan[B]

    [use case] Builds a new output by applying a function to all the messages wrote to it.

    [use case]

    Builds a new output by applying a function to all the messages wrote to it.

    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
  33. def map[B](f: (B) ⇒ Any)(implicit arg0: Message[B]): OChan[B]

    Builds a new output by applying a function to all the messages wrote to it.

    Builds a new output by applying a function to all the messages wrote to it.

    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
  34. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  35. final def notify(): Unit

    Definition Classes
    AnyRef
  36. final def notifyAll(): Unit

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

    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
  38. def smap[S, B](z: S)(fsm: (S, B) ⇒ (S, Any))(implicit arg0: Message[B]): OChan[B]

    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
  39. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  40. def toString(): String

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

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

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

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

    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