Show / Hide Table of Contents

Class BlockSet

Inheritance
Object
BlockSet
Implements
IReadOnlyDictionary<BlockHash, Block>
System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<BlockHash, Block>>
IEnumerable<System.Collections.Generic.KeyValuePair<BlockHash, Block>>
IEnumerable
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
System.Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
System.Object.ToString()
Namespace: Libplanet.Store
Assembly: Libplanet.Store.dll
Syntax
public class BlockSet : IReadOnlyDictionary<BlockHash, Block>, IReadOnlyCollection<KeyValuePair<BlockHash, Block>>, IEnumerable<KeyValuePair<BlockHash, Block>>, IEnumerable

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 int Count { get; }
Property Value
Type Description
Int32
| Improve this Doc View Source

IsReadOnly

Declaration
public bool IsReadOnly { get; }
Property Value
Type Description
System.Boolean
| Improve this Doc View Source

Item[BlockHash]

Declaration
public Block this[BlockHash key] { get; set; }
Parameters
Type Name Description
BlockHash key
Property Value
Type Description
Block
| Improve this Doc View Source

Keys

Declaration
public IEnumerable<BlockHash> Keys { get; }
Property Value
Type Description
IEnumerable<BlockHash>
| Improve this Doc View Source

Values

Declaration
public IEnumerable<Block> Values { get; }
Property Value
Type Description
IEnumerable<Block>

Methods

| Improve this Doc View Source

Add(BlockHash, Block)

Declaration
public void Add(BlockHash key, Block value)
Parameters
Type Name Description
BlockHash key
Block value
| Improve this Doc View Source

Add(KeyValuePair<BlockHash, Block>)

Declaration
public void Add(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<BlockHash, Block> item
| Improve this Doc View Source

Clear()

Declaration
public void Clear()
| Improve this Doc View Source

Contains(KeyValuePair<BlockHash, Block>)

Declaration
public bool Contains(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<BlockHash, Block> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

ContainsKey(BlockHash)

Declaration
public bool ContainsKey(BlockHash key)
Parameters
Type Name Description
BlockHash key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

CopyTo(KeyValuePair<BlockHash, Block>[], Int32)

Declaration
public void CopyTo(KeyValuePair<BlockHash, Block>[] array, int arrayIndex)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<BlockHash, Block>[] array
Int32 arrayIndex
| Improve this Doc View Source

GetEnumerator()

Declaration
public IEnumerator<KeyValuePair<BlockHash, Block>> GetEnumerator()
Returns
Type Description
System.Collections.Generic.IEnumerator<System.Collections.Generic.KeyValuePair<BlockHash, Block>>
| Improve this Doc View Source

Remove(BlockHash)

Declaration
public bool Remove(BlockHash key)
Parameters
Type Name Description
BlockHash key
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Remove(KeyValuePair<BlockHash, Block>)

Declaration
public bool Remove(KeyValuePair<BlockHash, Block> item)
Parameters
Type Name Description
System.Collections.Generic.KeyValuePair<BlockHash, Block> item
Returns
Type Description
System.Boolean
| Improve this Doc View Source

TryGetValue(BlockHash, out Block)

Declaration
public bool TryGetValue(BlockHash key, out Block value)
Parameters
Type Name Description
BlockHash key
Block value
Returns
Type Description
System.Boolean

Explicit Interface Implementations

| Improve this Doc View Source

IEnumerable.GetEnumerator()

Declaration
IEnumerator IEnumerable.GetEnumerator()
Returns
Type Description
IEnumerator

Implements

System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
System.Collections.Generic.IReadOnlyCollection<T>
System.Collections.Generic.IEnumerable<T>
System.Collections.IEnumerable
  • Improve this Doc
  • View Source
In This Article
Back to top Copyright © 2018–2023 Planetarium