Show / Hide Table of Contents

Class BaseIndex<TKey, TVal>

Inheritance
Object
BaseIndex<TKey, TVal>
BlockSet<T>
TransactionSet<T>
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public abstract class BaseIndex<TKey, TVal> : IDictionary<TKey, TVal>
Type Parameters
Name Description
TKey
TVal

Constructors

| Improve this Doc View Source

BaseIndex(IStore)

Declaration
protected BaseIndex(IStore store)
Parameters
Type Name Description
IStore store

Properties

| Improve this Doc View Source

Count

Declaration
public abstract int Count { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IsReadOnly

Declaration
public abstract bool IsReadOnly { get; }
Property Value
Type Description
Boolean
| Improve this Doc View Source

Item[TKey]

Declaration
public abstract TVal this[TKey key] { get; set; }
Parameters
Type Name Description
TKey key
Property Value
Type Description
TVal
| Improve this Doc View Source

Keys

Declaration
public abstract ICollection<TKey> Keys { get; }
Property Value
Type Description
ICollection<TKey>
| Improve this Doc View Source

Store

Declaration
protected IStore Store { get; }
Property Value
Type Description
IStore
| Improve this Doc View Source

Values

Declaration
public abstract ICollection<TVal> Values { get; }
Property Value
Type Description
ICollection<TVal>

Methods

| Improve this Doc View Source

Add(TKey, TVal)

Declaration
public void Add(TKey key, TVal value)
Parameters
Type Name Description
TKey key
TVal value
| Improve this Doc View Source

Add(KeyValuePair<TKey, TVal>)

Declaration
public void Add(KeyValuePair<TKey, TVal> item)
Parameters
Type Name Description
KeyValuePair<TKey, TVal> item
| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(KeyValuePair<TKey, TVal>)

Declaration
public abstract bool Contains(KeyValuePair<TKey, TVal> item)
Parameters
Type Name Description
KeyValuePair<TKey, TVal> item
Returns
Type Description
Boolean
| Improve this Doc View Source

ContainsKey(TKey)

Declaration
public abstract bool ContainsKey(TKey key)
Parameters
Type Name Description
TKey key
Returns
Type Description
Boolean
| Improve this Doc View Source

CopyTo(KeyValuePair<TKey, TVal>[], Int32)

Declaration
public void CopyTo(KeyValuePair<TKey, TVal>[] array, int arrayIndex)
Parameters
Type Name Description
KeyValuePair<TKey, TVal>[] array
Int32 arrayIndex
| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<TKey, TVal>> GetEnumerator()
Returns
Type Description
IEnumerator<KeyValuePair<TKey, TVal>>
| Improve this Doc View Source

Remove(TKey)

Declaration
public abstract bool Remove(TKey key)
Parameters
Type Name Description
TKey key
Returns
Type Description
Boolean
| Improve this Doc View Source

Remove(KeyValuePair<TKey, TVal>)

Declaration
public bool Remove(KeyValuePair<TKey, TVal> item)
Parameters
Type Name Description
KeyValuePair<TKey, TVal> item
Returns
Type Description
Boolean
| Improve this Doc View Source

TryGetValue(TKey, out TVal)

Declaration
public bool TryGetValue(TKey key, out TVal value)
Parameters
Type Name Description
TKey key
TVal value
Returns
Type Description
Boolean
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium