C# Class SogouTypedQueries.Journal

Maintains a chronological journal of the additions/changes to the IndexEntry. Journal entries are stored as a linked list, with the oldest entry starting from OldestEntry
Show file Open project: stewhir/recent-robust-qac Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
AddEntry ( JournalEntry entry ) : void

Add an entry to the journal

GetEntriesBeforeDateAndDelete ( System.DateTime beforeDateTime ) : IEnumerable

Iterator for entries before the provided date. After the entry has been returned it will be removed from the journal. (THIS METHOD IS *NOT* THREAD-SAFE).

Journal ( ) : System

Initialise an empty journal

Method Details

AddEntry() public method

Add an entry to the journal
public AddEntry ( JournalEntry entry ) : void
entry JournalEntry
return void

GetEntriesBeforeDateAndDelete() public method

Iterator for entries before the provided date. After the entry has been returned it will be removed from the journal. (THIS METHOD IS *NOT* THREAD-SAFE).
public GetEntriesBeforeDateAndDelete ( System.DateTime beforeDateTime ) : IEnumerable
beforeDateTime System.DateTime
return IEnumerable

Journal() public method

Initialise an empty journal
public Journal ( ) : System
return System