public override Term Invert(bool recurse) { OrTerm newme = new OrTerm(Parent, null); newme.CopyAndInvertSubTermsFrom(this, recurse); if (Parent != null) { Parent.Remove(this); } return(newme); }
public static OrTerm FromTags(Tag [] from_tags) { if (from_tags == null || from_tags.Length == 0) { return(null); } OrTerm or = new OrTerm(null, null); foreach (Literal l in from_tags.Select(t => new Literal(t))) { l.Parent = or; } return(or); }
public Photo [] Query(Tag [] tags, string extraCondition, DateRange range, RollSet importidrange, RatingRange ratingrange) { return(Query(OrTerm.FromTags(tags), extraCondition, range, importidrange, ratingrange)); }
public static OrTerm FromTags(Tag [] from_tags) { if (from_tags == null || from_tags.Length == 0) return null; OrTerm or = new OrTerm(null, null); foreach (Tag t in from_tags) { Literal l = new Literal(t); l.Parent = or; } return or; }
public override Term Invert (bool recurse) { OrTerm newme = new OrTerm(Parent, null); newme.CopyAndInvertSubTermsFrom(this, recurse); if (Parent != null) Parent.Remove(this); return newme; }