• 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 BlockSet<T>

Inheritance
Object
BaseIndex<HashDigest<SHA256>, Block<T>>
BlockSet<T>
Implements
IDictionary<HashDigest<SHA256>, Block<T>>
ICollection<KeyValuePair<HashDigest<SHA256>, Block<T>>>
IEnumerable<KeyValuePair<HashDigest<SHA256>, Block<T>>>
IEnumerable
Inherited Members
BaseIndex<HashDigest<SHA256>, Block<T>>.Keys
BaseIndex<HashDigest<SHA256>, Block<T>>.Values
BaseIndex<HashDigest<SHA256>, Block<T>>.Count
BaseIndex<HashDigest<SHA256>, Block<T>>.IsReadOnly
BaseIndex<HashDigest<SHA256>, Block<T>>.Store
BaseIndex<HashDigest<SHA256>, Block<T>>.StoreNamespace
BaseIndex<HashDigest<SHA256>, Block<T>>.Item[HashDigest<SHA256>]
BaseIndex<HashDigest<SHA256>, Block<T>>.Add(HashDigest<SHA256>, Block<T>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Add(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Clear()
BaseIndex<HashDigest<SHA256>, Block<T>>.Contains(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.ContainsKey(HashDigest<SHA256>)
BaseIndex<HashDigest<SHA256>, Block<T>>.CopyTo(KeyValuePair<HashDigest<SHA256>, Block<T>>[], Int32)
BaseIndex<HashDigest<SHA256>, Block<T>>.GetEnumerator()
BaseIndex<HashDigest<SHA256>, Block<T>>.Remove(HashDigest<SHA256>)
BaseIndex<HashDigest<SHA256>, Block<T>>.Remove(KeyValuePair<HashDigest<SHA256>, Block<T>>)
BaseIndex<HashDigest<SHA256>, Block<T>>.TryGetValue(HashDigest<SHA256>, Block<T>)
BaseIndex<HashDigest<SHA256>, Block<T>>.IEnumerable.GetEnumerator()
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 class BlockSet<T> : BaseIndex<HashDigest<SHA256>, Block<T>>, IDictionary<HashDigest<SHA256>, Block<T>>, ICollection<KeyValuePair<HashDigest<SHA256>, Block<T>>>, IEnumerable<KeyValuePair<HashDigest<SHA256>, Block<T>>>, IEnumerable where T : IAction, new()
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

BlockSet(IStore)

Declaration
public BlockSet(IStore store)
Parameters
Type Name Description
IStore store

Properties

| Improve this Doc View Source

Count

Declaration
public override int Count { get; }
Property Value
Type Description
Int32
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.Count
| Improve this Doc View Source

IsReadOnly

Declaration
public override bool IsReadOnly { get; }
Property Value
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.IsReadOnly
| Improve this Doc View Source

Item[HashDigest<SHA256>]

Declaration
public override Block<T> this[HashDigest<SHA256> key] { get; set; }
Parameters
Type Name Description
HashDigest<SHA256> key
Property Value
Type Description
Block<T>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.Item[Libplanet.HashDigest<System.Security.Cryptography.SHA256>]
| Improve this Doc View Source

Keys

Declaration
public override ICollection<HashDigest<SHA256>> Keys { get; }
Property Value
Type Description
ICollection<HashDigest<SHA256>>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.Keys
| Improve this Doc View Source

Values

Declaration
public override ICollection<Block<T>> Values { get; }
Property Value
Type Description
ICollection<Block<T>>
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.Values

Methods

| Improve this Doc View Source

Remove(HashDigest<SHA256>)

Declaration
public override bool Remove(HashDigest<SHA256> key)
Parameters
Type Name Description
HashDigest<SHA256> key
Returns
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<System.Security.Cryptography.SHA256>, Libplanet.Blocks.Block<T>>.Remove(Libplanet.HashDigest<System.Security.Cryptography.SHA256>)

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