qBittorrent
digest32.h File Reference
#include <libtorrent/sha1_hash.hpp>
#include <QByteArray>
#include <QHash>
#include <QString>
Include dependency graph for digest32.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Digest32< N >
 

Functions

template<int N>
bool operator== (const Digest32< N > &left, const Digest32< N > &right)
 
template<int N>
bool operator!= (const Digest32< N > &left, const Digest32< N > &right)
 
template<int N>
bool operator< (const Digest32< N > &left, const Digest32< N > &right)
 
template<int N>
uint qHash (const Digest32< N > &key, const uint seed)
 

Function Documentation

◆ operator!=()

template<int N>
bool operator!= ( const Digest32< N > &  left,
const Digest32< N > &  right 
)

Definition at line 104 of file digest32.h.

105 {
106  return !(left == right);
107 }

Referenced by nsel_DISABLE_MSVC_WARNINGS().

Here is the caller graph for this function:

◆ operator<()

template<int N>
bool operator< ( const Digest32< N > &  left,
const Digest32< N > &  right 
)

Definition at line 110 of file digest32.h.

111 {
112  return static_cast<typename Digest32<N>::UnderlyingType>(left)
113  < static_cast<typename Digest32<N>::UnderlyingType>(right);
114 }
lt::digest32< N > UnderlyingType
Definition: digest32.h:41

Referenced by nsel_DISABLE_MSVC_WARNINGS(), and anonymous_namespace{feedlistwidget.cpp}::FeedListItem::operator<().

Here is the caller graph for this function:

◆ operator==()

template<int N>
bool operator== ( const Digest32< N > &  left,
const Digest32< N > &  right 
)

Definition at line 97 of file digest32.h.

98 {
99  return (static_cast<typename Digest32<N>::UnderlyingType>(left)
100  == static_cast<typename Digest32<N>::UnderlyingType>(right));
101 }

◆ qHash()

template<int N>
uint qHash ( const Digest32< N > &  key,
const uint  seed 
)

Definition at line 117 of file digest32.h.

118 {
119  return ::qHash(std::hash<typename Digest32<N>::UnderlyingType>()(key), seed);
120 }
uint qHash(const Digest32< N > &key, const uint seed)
Definition: digest32.h:117