/// <summary> /// Fills the list provided with the element matching the filter provided /// </summary> /// <param name="retVal">The list to be filled with the element matching the condition expressed in the filter</param> /// <param name="filter">The filter to apply</param> public override void fill(List <Utils.INamable> retVal, Filter.AcceptableChoice filter) { if (Term != null) { Term.fill(retVal, filter); } if (Expression != null) { Expression.fill(retVal, filter); } }
/// <summary> /// Fills the list provided with the element matching the filter provided /// </summary> /// <param name="retVal">The list to be filled with the element matching the condition expressed in the filter</param> /// <param name="filter">The filter to apply</param> public override void fill(List <Utils.INamable> retVal, Filter.AcceptableChoice filter) { if (Parameters != null) { foreach (Parameter parameter in Parameters) { if (filter(parameter)) { retVal.Add(parameter); } } } if (Expression != null) { Expression.fill(retVal, filter); } }
/// <summary> /// Fills the list provided with the element matching the filter provided /// </summary> /// <param name="retVal">The list to be filled with the element matching the condition expressed in the filter</param> /// <param name="filter">The filter to apply</param> public override void fill(List <Utils.INamable> retVal, Filter.AcceptableChoice filter) { Expression.fill(retVal, filter); InitialValue.fill(retVal, filter); Condition.fill(retVal, filter); }