C# Class BrightIdeasSoftware.CompositeFilter

A CompositeFilter joins several other filters together. If there are no filters, all model objects are included
Inheritance: IModelFilter
Show file Open project: soywiz/cspspemu

Public Methods

Method Description
CompositeFilter ( ) : System

Create an empty filter

CompositeFilter ( IEnumerable filters ) : System

Create a composite filter from the given list of filters

Filter ( object modelObject ) : bool

Decide whether or not the given model should be included by the filter

FilterObject ( object modelObject ) : bool

Decide whether or not the given model should be included by the filter

Filters is guaranteed to be non-empty when this method is called

Method Details

CompositeFilter() public method

Create an empty filter
public CompositeFilter ( ) : System
return System

CompositeFilter() public method

Create a composite filter from the given list of filters
public CompositeFilter ( IEnumerable filters ) : System
filters IEnumerable A list of filters
return System

Filter() public method

Decide whether or not the given model should be included by the filter
public Filter ( object modelObject ) : bool
modelObject object
return bool

FilterObject() public abstract method

Decide whether or not the given model should be included by the filter
Filters is guaranteed to be non-empty when this method is called
public abstract FilterObject ( object modelObject ) : bool
modelObject object The model object under consideration
return bool