• Design
  • API Reference
  • Changelog
  • Contribute
Show / Hide Table of Contents
  • Libplanet
    • Address
    • AddressExtension
    • ByteUtil
    • Hashcash
    • Hashcash.Stamp
    • HashDigest<T>
    • HashDigestExtension
    • Nonce
  • Libplanet.Action
    • AccountStateGetter
    • ActionEvaluation<T>
    • ActionTypeAttribute
    • AddressStateMap
    • IAccountStateDelta
    • IAction
    • IActionContext
    • IRandom
    • MissingActionTypeException
    • PolymorphicAction<T>
  • Libplanet.Blockchain
    • BlockChain<T>
  • Libplanet.Blockchain.Policies
    • BlockPolicy<T>
    • BlockPolicyExtension
    • IBlockPolicy<T>
  • Libplanet.Blocks
    • Block<T>
    • InvalidBlockDifficultyException
    • InvalidBlockException
    • InvalidBlockHashException
    • InvalidBlockIndexException
    • InvalidBlockNonceException
    • InvalidBlockPreviousHashException
    • InvalidBlockTimestampException
  • Libplanet.Crypto
    • InvalidCiphertextException
    • PrivateKey
    • PublicKey
    • SymmetricKey
  • Libplanet.Net
    • BlockDownloadState
    • DifferentAppProtocolVersionException
    • DifferentProtocolVersionEventArgs
    • IceServer
    • IceServerException
    • InvalidMessageException
    • NoSwarmContextException
    • Peer
    • PeerNotFoundException
    • PeerSetDelta
    • Swarm
    • SwarmException
  • Libplanet.Serialization
    • BencodexFormatter<T>
    • SerializationInfoExtension
  • Libplanet.Store
    • BaseIndex<TKey, TVal>
    • BaseStore
    • BlockSet<T>
    • FileStore
    • IStore
    • NamespaceNotFoundException
    • TransactionSet<T>
  • Libplanet.Tx
    • InvalidTxException
    • InvalidTxIdException
    • InvalidTxNonceException
    • InvalidTxPublicKeyException
    • InvalidTxSignatureException
    • InvalidTxUpdatedAddressesException
    • Transaction<T>
    • TxId
    • UnexpectedlyTerminatedTxRehearsalException

Class BaseIndex<TKey, TVal>

Inheritance
Object
BaseIndex<TKey, TVal>
BlockSet<T>
TransactionSet<T>
Implements
IDictionary<TKey, TVal>
ICollection<KeyValuePair<TKey, TVal>>
IEnumerable<KeyValuePair<TKey, TVal>>
IEnumerable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public abstract class BaseIndex<TKey, TVal> : IDictionary<TKey, TVal>, ICollection<KeyValuePair<TKey, TVal>>, IEnumerable<KeyValuePair<TKey, TVal>>, IEnumerable
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

StoreNamespace

Declaration
protected string StoreNamespace { get; }
Property Value
Type Description
String
| 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 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 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

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator

Implements

System.Collections.Generic.IDictionary<TKey,TValue>
System.Collections.Generic.ICollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
Back to top Copyright © 2019 Planetarium
Generated by DocFX