Show / Hide Table of Contents

Class FirstPredicateOperator

A representation of a first query expression operator with a predicate.

Inheritance
System.Object
QueryTree
MonadMember
QueryOperator
FirstPredicateOperator
Inherited Members
QueryOperator.Reduce()
QueryOperator.QueryNodeType
QueryOperator.QueryExpressionFactory
MonadMember.ElementType
Namespace: System.Linq.CompilerServices.Optimizers
Assembly: Nuqleon.Linq.CompilerServices.Optimizers.dll
Syntax
public class FirstPredicateOperator : QueryOperator

Constructors

FirstPredicateOperator(Type, MonadMember, QueryTree)

Creates a representation of a first query expression operator with a predicate.

Declaration
protected FirstPredicateOperator(Type elementType, MonadMember source, QueryTree predicate)
Parameters
Type Name Description
System.Type elementType

The element type of the resulting monad.

MonadMember source

The source on which to filter.

QueryTree predicate

The function used to filter.

Properties

NodeType

Gets the OperatorType of the QueryOperator.

Declaration
public override OperatorType NodeType { get; }
Property Value
Type Description
OperatorType
Overrides
QueryOperator.NodeType

Predicate

The predicate used to filter the source monad.

Declaration
public QueryTree Predicate { get; }
Property Value
Type Description
QueryTree

Source

The source on which this operator acts.

Declaration
public MonadMember Source { get; }
Property Value
Type Description
MonadMember

Methods

Accept<TQueryTree, TMonadMember, TQueryOperator>(QueryVisitor<TQueryTree, TMonadMember, TQueryOperator>)

Accepts the query expression tree node in the specified visitor.

Declaration
protected override TQueryTree Accept<TQueryTree, TMonadMember, TQueryOperator>(QueryVisitor<TQueryTree, TMonadMember, TQueryOperator> visitor)
    where TMonadMember : TQueryTree where TQueryOperator : TMonadMember
Parameters
Type Name Description
QueryVisitor<TQueryTree, TMonadMember, TQueryOperator> visitor

Visitor to process the current query expression tree node.

Returns
Type Description
TQueryTree

Result of visiting the node.

Type Parameters
Name Description
TQueryTree

Target type for query expressions.

TMonadMember

Target type for monad member query expressions. This type has to derive from TQueryTree.

TQueryOperator

Target type for query operator query expressions. This type has to derive from TMonadMember.

Overrides
System.Linq.CompilerServices.Optimizers.QueryTree.Accept<TQueryTree, TMonadMember, TQueryOperator>(System.Linq.CompilerServices.Optimizers.QueryVisitor<TQueryTree, TMonadMember, TQueryOperator>)

Update(MonadMember, QueryTree)

Creates a first predicate operator query expression that is like this one, but using the supplied children. If all of the children are the same, it will return this expression.

Declaration
public FirstPredicateOperator Update(MonadMember source, QueryTree predicate)
Parameters
Type Name Description
MonadMember source

The Source child node of the result.

QueryTree predicate

The Predicate child node of the result.

Returns
Type Description
FirstPredicateOperator

This query expression if no children are changed or an expression with the updated children.

In This Article
Back to top Generated by DocFX