Show / Hide Table of Contents

Class BlockSet<T>

Inheritance
Object
BaseIndex<HashDigest<SHA256>, Block<T>>
BlockSet<T>
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>>.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>)
Namespace: Libplanet.Store
Assembly: Libplanet.dll
Syntax
public class BlockSet<T> : BaseIndex<HashDigest<SHA256>, Block<T>> where T : IAction, new()
Type Parameters
Name Description
T

Constructors

| Improve this Doc View Source

BlockSet(IStore, Int32)

Declaration
public BlockSet(IStore store, int cacheSize = 4096)
Parameters
Type Name Description
IStore store
Int32 cacheSize

Properties

| Improve this Doc View Source

Count

Declaration
public override int Count { get; }
Property Value
Type Description
Int32
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
Type Description
Boolean
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
Type Name Description
HashDigest<SHA256> key
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
Type Description
ICollection<HashDigest<SHA256>>
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
Type Name Description
KeyValuePair<HashDigest<SHA256>, Block<T>> item
Returns
Type Description
Boolean
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
Type Name Description
HashDigest<SHA256> key
Returns
Type Description
Boolean
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
Type Name Description
HashDigest<SHA256> key
Returns
Type Description
Boolean
Overrides
Libplanet.Store.BaseIndex<Libplanet.HashDigest<SHA256>, Libplanet.Blocks.Block<T>>.Remove(Libplanet.HashDigest<SHA256>)
  • Improve this Doc
  • View Source
Back to top Copyright © 2019–2020 Planetarium