PIVX Core  5.6.99
P2P Digital Currency
Public Member Functions | Private Attributes | List of all members
llmq::SigShareMap< T > Class Template Reference

#include <quorums_signing_shares.h>

Public Member Functions

bool Add (const SigShareKey &k, const T &v)
 
void Erase (const SigShareKey &k)
 
void Clear ()
 
bool Has (const SigShareKey &k) const
 
TGet (const SigShareKey &k)
 
TGetOrAdd (const SigShareKey &k)
 
const TGetFirst () const
 
size_t Size () const
 
size_t CountForSignHash (const uint256 &signHash) const
 
bool Empty () const
 
const std::unordered_map< uint16_t, T > * GetAllForSignHash (const uint256 &signHash)
 
void EraseAllForSignHash (const uint256 &signHash)
 
template<typename F >
void EraseIf (F &&f)
 
template<typename F >
void ForEach (F &&f)
 

Private Attributes

std::unordered_map< uint256, std::unordered_map< uint16_t, T >, StaticSaltedHasherinternalMap
 

Detailed Description

template<typename T>
class llmq::SigShareMap< T >

Definition at line 138 of file quorums_signing_shares.h.

Member Function Documentation

◆ Add()

template<typename T >
bool llmq::SigShareMap< T >::Add ( const SigShareKey k,
const T v 
)
inline

Definition at line 144 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ Clear()

template<typename T >
void llmq::SigShareMap< T >::Clear ( )
inline

Definition at line 162 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ CountForSignHash()

template<typename T >
size_t llmq::SigShareMap< T >::CountForSignHash ( const uint256 signHash) const
inline

Definition at line 218 of file quorums_signing_shares.h.

◆ Empty()

template<typename T >
bool llmq::SigShareMap< T >::Empty ( ) const
inline

Definition at line 227 of file quorums_signing_shares.h.

◆ Erase()

template<typename T >
void llmq::SigShareMap< T >::Erase ( const SigShareKey k)
inline

Definition at line 150 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ EraseAllForSignHash()

template<typename T >
void llmq::SigShareMap< T >::EraseAllForSignHash ( const uint256 signHash)
inline

Definition at line 241 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ EraseIf()

template<typename T >
template<typename F >
void llmq::SigShareMap< T >::EraseIf ( F &&  f)
inline

Definition at line 247 of file quorums_signing_shares.h.

◆ ForEach()

template<typename T >
template<typename F >
void llmq::SigShareMap< T >::ForEach ( F &&  f)
inline

Definition at line 269 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ Get()

template<typename T >
T* llmq::SigShareMap< T >::Get ( const SigShareKey k)
inline

Definition at line 176 of file quorums_signing_shares.h.

Here is the caller graph for this function:

◆ GetAllForSignHash()

template<typename T >
const std::unordered_map<uint16_t, T>* llmq::SigShareMap< T >::GetAllForSignHash ( const uint256 signHash)
inline

Definition at line 232 of file quorums_signing_shares.h.

◆ GetFirst()

template<typename T >
const T* llmq::SigShareMap< T >::GetFirst ( ) const
inline

Definition at line 201 of file quorums_signing_shares.h.

◆ GetOrAdd()

template<typename T >
T& llmq::SigShareMap< T >::GetOrAdd ( const SigShareKey k)
inline

Definition at line 191 of file quorums_signing_shares.h.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ Has()

template<typename T >
bool llmq::SigShareMap< T >::Has ( const SigShareKey k) const
inline

Definition at line 167 of file quorums_signing_shares.h.

◆ Size()

template<typename T >
size_t llmq::SigShareMap< T >::Size ( ) const
inline

Definition at line 209 of file quorums_signing_shares.h.

Member Data Documentation

◆ internalMap

template<typename T >
std::unordered_map<uint256, std::unordered_map<uint16_t, T>, StaticSaltedHasher> llmq::SigShareMap< T >::internalMap
private

Definition at line 141 of file quorums_signing_shares.h.


The documentation for this class was generated from the following file: