#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() [1/3]
| HashedStringSet::HashedStringSet | ( | ) |
Definition at line 92 of file hashedstring.cpp.
◆ ~HashedStringSet()
| HashedStringSet::~HashedStringSet | ( | ) |
Definition at line 94 of file hashedstring.cpp.
◆ HashedStringSet() [2/3]
| HashedStringSet::HashedStringSet | ( | const HashedString & | file | ) |
Constructs a string-set from one single file.
Definition at line 96 of file hashedstring.cpp.
◆ HashedStringSet() [3/3]
| HashedStringSet::HashedStringSet | ( | const HashedStringSet & | rhs | ) |
Definition at line 100 of file hashedstring.cpp.
Member Function Documentation
◆ hash()
| size_t HashedStringSet::hash | ( | ) | const |
Definition at line 230 of file hashedstring.cpp.
◆ insert()
| void HashedStringSet::insert | ( | const HashedString & | str | ) |
Definition at line 179 of file hashedstring.cpp.
◆ operator+=()
| HashedStringSet & HashedStringSet::operator+= | ( | const HashedStringSet & | rhs | ) |
Definition at line 119 of file hashedstring.cpp.
◆ operator-=()
| HashedStringSet & HashedStringSet::operator-= | ( | const HashedStringSet & | rhs | ) |
Definition at line 141 of file hashedstring.cpp.
◆ 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=()
| HashedStringSet & HashedStringSet::operator= | ( | const HashedStringSet & | rhs | ) |
Definition at line 114 of file hashedstring.cpp.
◆ operator==()
| bool HashedStringSet::operator== | ( | const HashedStringSet & | rhs | ) | const |
Definition at line 208 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.
◆ print()
| std::string HashedStringSet::print | ( | ) | const |
Definition at line 265 of file hashedstring.cpp.
◆ read()
| void HashedStringSet::read | ( | TQDataStream & | stream | ) |
Definition at line 236 of file hashedstring.cpp.
◆ size()
| int HashedStringSet::size | ( | ) | const |
Definition at line 109 of file hashedstring.cpp.
◆ write()
| void HashedStringSet::write | ( | TQDataStream & | stream | ) | const |
Definition at line 253 of file hashedstring.cpp.
Friends And Related Symbol Documentation
◆ HashedStringSetGroup
|
friend |
Definition at line 117 of file hashedstring.h.
◆ operator+
|
friend |
Definition at line 102 of file hashedstring.cpp.
The documentation for this class was generated from the following files:
Trinity API Reference