/// <summary> /// Returns the specific <c>CLComparisonOperator</c> for a given /// <c>CLComparison</c>. /// </summary> public CLComparisonOperator this[CLComparison oper] { get { if (oper == CLComparison.Greater) { return(Greater); } else if (oper == CLComparison.Equal) { return(Equal); } else if (oper == CLComparison.Less) { return(Less); } else if (oper == CLComparison.NotGreater) { return(NotGreater); } else if (oper == CLComparison.NotEqual) { return(NotEqual); } else if (oper == CLComparison.NotLess) { return(NotLess); } else if (oper == CLComparison.Modulo) { return(Modulo); } else if (oper == CLComparison.NotModulo) { return(NotModulo); } else { return(null); } } }
internal CLComparisonOperator(CLComparisonOperatorSet set, CLComparison comp) : base(set.PrefixSymbol + comp.PostfixSymbol, set.Priority, set.ValueBasedLeft, set.ValueBasedRight) { Parent = set; Comparison = comp; }