HashedStringSet Class Reference
#include <hashedstring.h>
Public Member Functions | |
HashedStringSet (const HashedString &file) | |
HashedStringSet (const HashedStringSet &rhs) | |
int | size () const |
HashedStringSet & | operator= (const HashedStringSet &rhs) |
bool | operator[] (const HashedString &rhs) const |
void | insert (const HashedString &str) |
HashedStringSet & | operator+= (const HashedStringSet &) |
HashedStringSet & | operator-= (const HashedStringSet &) |
bool | operator<= (const HashedStringSet &rhs) const |
bool | operator== (const HashedStringSet &rhs) const |
void | read (TQDataStream &stream) |
void | write (TQDataStream &stream) const |
std::string | print () const |
size_t | hash () const |
Friends | |
class | HashedStringSetGroup |
HashedStringSet | operator+ (const HashedStringSet &lhs, const HashedStringSet &rhs) |
Detailed Description
This is a reference-counting string-set optimized for fast lookup of hashed strings.
Definition at line 81 of file hashedstring.h.
Constructor & Destructor Documentation
◆ HashedStringSet()
HashedStringSet::HashedStringSet | ( | const HashedString & | file | ) |
Constructs a string-set from one single file.
Definition at line 96 of file hashedstring.cpp.
Member Function Documentation
◆ operator<=()
bool HashedStringSet::operator<= | ( | const HashedStringSet & | rhs | ) | const |
intersection-test Returns true if all files that are part of this set are also part of the given set
Definition at line 186 of file hashedstring.cpp.
◆ operator[]()
bool HashedStringSet::operator[] | ( | const HashedString & | rhs | ) | const |
- Returns
- whether the given file-name was included
Definition at line 171 of file hashedstring.cpp.
The documentation for this class was generated from the following files: