Example #1
0
        /// <summary>
        /// Searches all trips.
        /// </summary>
        public static HashSet <uint> SearchAll(this TripsDb tripsDb, AttributesIndex tripAttributes, Func <IAttributeCollection, bool> filter)
        {
            var ids = new HashSet <uint>();

            var enumerator = tripsDb.GetEnumerator();

            while (enumerator.MoveUntil(tripAttributes, filter))
            {
                ids.Add(enumerator.Id);
            }

            return(ids);
        }
Example #2
0
 /// <summary>
 /// Gets the trips enumerator.
 /// </summary>
 /// <returns></returns>
 public TripsDb.Enumerator GetTripsEnumerator()
 {
     return(_tripsDb.GetEnumerator());
 }