Class BlockSet<T>
Assembly: Libplanet.dll
Syntax
public class BlockSet<T> : BaseIndex<HashDigest<SHA256>, 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.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Count
|
Improve this Doc
View Source
IsReadOnly
Declaration
public override bool IsReadOnly { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<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
Property Value
Type |
Description |
Block<T> |
|
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Item[Libplanet.HashDigest<SHA256>]
|
Improve this Doc
View Source
Keys
Declaration
public override ICollection<HashDigest<SHA256>> Keys { get; }
Property Value
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<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<SHA256>, Libplanet.Blocks.Block<T>>.Values
Methods
|
Improve this Doc
View Source
Contains(KeyValuePair<HashDigest<SHA256>, Block<T>>)
Declaration
public override bool Contains(KeyValuePair<HashDigest<SHA256>, Block<T>> item)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Contains(KeyValuePair<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>)
|
Improve this Doc
View Source
ContainsKey(HashDigest<SHA256>)
Declaration
public override bool ContainsKey(HashDigest<SHA256> key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.ContainsKey(Libplanet.HashDigest<SHA256>)
|
Improve this Doc
View Source
Remove(HashDigest<SHA256>)
Declaration
public override bool Remove(HashDigest<SHA256> key)
Parameters
Returns
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Remove(Libplanet.HashDigest<SHA256>)