C# Class Brunet.Collections.Cache

Inheritance: IEnumerable
Show file Open project: pstjuste/brunet Class Usage Examples

Protected Properties

Property Type Description
_current_size int
_head Entry
_ht System.Collections.Hashtable
_max_size int
_tail Entry

Public Methods

Method Description
Add ( object key, object val ) : void
Cache ( int max_size ) : System
Clear ( ) : void
Contains ( object key ) : bool
Get ( object key ) : object
GetEnumerator ( ) : IEnumerator
Remove ( object key ) : object
this ( object key ) : object

Protected Methods

Method Description
Pop ( ) : Entry
PushBack ( Entry e ) : void
RemoveFromList ( Entry e ) : void

Method Details

Add() public method

public Add ( object key, object val ) : void
key object
val object
return void

Cache() public method

public Cache ( int max_size ) : System
max_size int
return System

Clear() public method

public Clear ( ) : void
return void

Contains() public method

public Contains ( object key ) : bool
key object
return bool

Get() public method

public Get ( object key ) : object
key object
return object

GetEnumerator() public method

public GetEnumerator ( ) : IEnumerator
return IEnumerator

Pop() protected method

protected Pop ( ) : Entry
return Entry

PushBack() protected method

protected PushBack ( Entry e ) : void
e Entry
return void

Remove() public method

public Remove ( object key ) : object
key object
return object

RemoveFromList() protected method

protected RemoveFromList ( Entry e ) : void
e Entry
return void

this() public method

public this ( object key ) : object
key object
return object

Property Details

_current_size protected property

protected int _current_size
return int

_head protected property

protected Entry _head
return Entry

_ht protected property

protected Hashtable,System.Collections _ht
return System.Collections.Hashtable

_max_size protected property

protected int _max_size
return int

_tail protected property

protected Entry _tail
return Entry