Class BlockSet<T>
Assembly: Libplanet.dll
Syntax
public class BlockSet<T> : BaseIndex<BlockHash, Block<T>> where T : IAction, new()
Type Parameters
Constructors
|
Improve this Doc
View Source
BlockSet(IStore, Int32)
Declaration
public BlockSet(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
Type |
Description |
ICollection<Block<T>> |
|
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(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)