C# Class ShellMe.CommandLine.History.InMemoryHistory

Inheritance: IConsoleHistory
Datei anzeigen Open project: dff-solutions/shell.me

Public Methods

Method Description
Add ( string entry ) : void
Delete ( HistoryEntry entry ) : void
DeleteEntireHistory ( ) : void
GetNextEntry ( ) : HistoryEntry
GetPreviousEntry ( ) : HistoryEntry
InMemoryHistory ( ) : System.Collections.Generic
ResetHistoryMarker ( ) : void

Protected Methods

Method Description
InMemoryHistory ( List history ) : System.Collections.Generic
RestrictToMaxSize ( ) : void

Private Methods

Method Description
GetHighestIndex ( ) : int
GetLowestIndex ( ) : int
ReturnAtIndex ( int index ) : HistoryEntry

Method Details

Add() public method

public Add ( string entry ) : void
entry string
return void

Delete() public method

public Delete ( HistoryEntry entry ) : void
entry HistoryEntry
return void

DeleteEntireHistory() public method

public DeleteEntireHistory ( ) : void
return void

GetNextEntry() public method

public GetNextEntry ( ) : HistoryEntry
return HistoryEntry

GetPreviousEntry() public method

public GetPreviousEntry ( ) : HistoryEntry
return HistoryEntry

InMemoryHistory() public method

public InMemoryHistory ( ) : System.Collections.Generic
return System.Collections.Generic

InMemoryHistory() protected method

protected InMemoryHistory ( List history ) : System.Collections.Generic
history List
return System.Collections.Generic

ResetHistoryMarker() public method

public ResetHistoryMarker ( ) : void
return void

RestrictToMaxSize() protected method

protected RestrictToMaxSize ( ) : void
return void