scalax.data.collection

class BoolTree

[source: scalax/data/collection.scala]

abstract class BoolTree[a]
extends AnyRef
A boolean expression tree contains nodes corresponding to And, Or, Not, and Leaf. And, Or contain any number of children.
Direct Known Subclasses:
collection.And, collection.Or, collection.Not, collection.Leaf

Method Summary
def flatten [b](f : (a) => b) : scala.Stream[b]
def map [b](f : (a) => b) : BoolTree[b]
def prune [b](f : (a) => scala.Option[b]) : scala.Option[BoolTree[b]]
f returns false if the leaf is to be pruned out, and true otherwise.
def sat (f : (a) => Boolean) : Boolean
Methods inherited from AnyRef
getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize, ==, !=, eq, ne, synchronized
Methods inherited from Any
==, !=, isInstanceOf, asInstanceOf
Method Details
def sat(f : (a) => Boolean) : Boolean

def map[b](f : (a) => b) : BoolTree[b]

def flatten[b](f : (a) => b) : scala.Stream[b]

def prune[b](f : (a) => scala.Option[b]) : scala.Option[BoolTree[b]]
f returns false if the leaf is to be pruned out, and true otherwise.


Copyright (c) 2005-8 The Scalax Project. All Rights Reserved.