• Overview
  • 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
    • ActionTypeAttribute
    • IAccountStateDelta
    • IAction
    • IActionContext
    • IRandom
    • MissingActionTypeException
    • PolymorphicAction<T>
    • RandomExtension
    • UnexpectedlyTerminatedActionException
  • Libplanet.Blockchain
    • BlockChain<T>
    • BlockChain<T>.TipChangedEventArgs
    • IncompleteBlockStatesException
    • MineBlockEventArgs<T>
  • Libplanet.Blockchain.Policies
    • BlockPolicy<T>
    • IBlockPolicy<T>
  • Libplanet.Blocks
    • Block<T>
    • InvalidBlockDifficultyException
    • InvalidBlockException
    • InvalidBlockHashException
    • InvalidBlockIndexException
    • InvalidBlockNonceException
    • InvalidBlockPreviousHashException
    • InvalidBlockTimestampException
    • InvalidGenesisBlockException
  • Libplanet.Crypto
    • CryptoConfig
    • DefaultCryptoBackend
    • ICryptoBackend
    • InvalidCiphertextException
    • PrivateKey
    • PublicKey
    • SymmetricKey
  • Libplanet.KeyStore
    • IncorrectPassphraseException
    • InvalidKeyJsonException
    • KeyJsonException
    • MismatchedAddressException
    • ProtectedPrivateKey
    • UnsupportedKeyJsonException
  • Libplanet.KeyStore.Ciphers
    • Aes128Ctr
    • ICipher
  • Libplanet.KeyStore.Kdfs
    • IKdf
    • Pbkdf2<T>
    • Scrypt
  • Libplanet.Net
    • ActionExecutionState
    • BlockDownloadState
    • BoundPeer
    • DifferentAppProtocolVersionException
    • DifferentProtocolVersionEventArgs
    • IceServer
    • IceServerException
    • InvalidMessageException
    • NoSwarmContextException
    • Peer
    • PeerNotFoundException
    • PeerState
    • PreloadBlockDownloadFailEventArgs
    • PreloadState
    • StateDownloadState
    • Swarm<T>
    • SwarmException
  • Libplanet.Net.Protocols
    • PeerDiscoveryException
  • Libplanet.Serialization
    • SerializationInfoExtension
  • Libplanet.Store
    • BaseIndex<TKey, TVal>
    • BaseStore
    • BlockSet<T>
    • ChainIdNotFoundException
    • DefaultStore
    • IStore
    • StoreExtension
    • TransactionSet<T>
  • Libplanet.Tx
    • InvalidTxException
    • InvalidTxIdException
    • InvalidTxNonceException
    • InvalidTxPublicKeyException
    • InvalidTxSignatureException
    • InvalidTxUpdatedAddressesException
    • Transaction<T>
    • TxId

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