Class BlockSet<T>
Assembly: Libplanet.dll
Syntax
public class BlockSet<T> : BaseIndex<BlockHash, Block<T>>, IDictionary<BlockHash, Block<T>>, ICollection<KeyValuePair<BlockHash, Block<T>>>, IEnumerable<KeyValuePair<BlockHash, Block<T>>>, IEnumerable where T : IAction, new()
Type Parameters
Constructors
|
Improve this Doc
View Source
BlockSet(HashAlgorithmGetter, IStore, Int32)
Declaration
public BlockSet(HashAlgorithmGetter hashAlgorithmGetter, IStore store, int cacheSize = 4096)
Parameters
Properties
|
Improve this Doc
View Source
Count
Declaration
public override int Count { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Count
|
Improve this Doc
View Source
IsReadOnly
Declaration
public override bool IsReadOnly { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.IsReadOnly
|
Improve this Doc
View Source
Item[BlockHash]
Declaration
public override Block<T> this[BlockHash key] { get; set; }
Parameters
Property Value
Type |
Description |
Block<T> |
|
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Item[Libplanet.Blocks.BlockHash]
|
Improve this Doc
View Source
Keys
Declaration
public override ICollection<BlockHash> Keys { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Keys
|
Improve this Doc
View Source
Values
Declaration
public override ICollection<Block<T>> Values { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Values
Methods
|
Improve this Doc
View Source
Contains(KeyValuePair<BlockHash, Block<T>>)
Declaration
public override bool Contains(KeyValuePair<BlockHash, Block<T>> item)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Contains(System.Collections.Generic.KeyValuePair<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>)
|
Improve this Doc
View Source
ContainsKey(BlockHash)
Declaration
public override bool ContainsKey(BlockHash key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.ContainsKey(Libplanet.Blocks.BlockHash)
|
Improve this Doc
View Source
Remove(BlockHash)
Declaration
public override bool Remove(BlockHash key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.Blocks.BlockHash, Libplanet.Blocks.Block<T>>.Remove(Libplanet.Blocks.BlockHash)
Implements