Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
David Geisler
pe-tools-lsh
Commits
2df574cb
Commit
2df574cb
authored
Nov 05, 2019
by
David Geisler
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
propagate changes from utils
parent
c4068fce
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
13 deletions
+4
-13
include/utue/pe/tools/lsh/Token.h
include/utue/pe/tools/lsh/Token.h
+2
-9
modules/utils
modules/utils
+1
-1
source/utue/pe/tools/lsh/Scanner.cpp
source/utue/pe/tools/lsh/Scanner.cpp
+0
-2
source/utue/pe/tools/lsh/Token.cpp
source/utue/pe/tools/lsh/Token.cpp
+1
-1
No files found.
include/utue/pe/tools/lsh/Token.h
View file @
2df574cb
...
...
@@ -107,13 +107,6 @@ namespace utue::pe::tools::lsh {
* @return Hash of the token
*/
unsigned
long
operator
()(
const
Token
&
key
)
const
;
};
/**
* @brief Provides a comparator for std::unordered_map
*/
class
Equal
{
public:
/**
* Compares two Tokens without using the hash
* @param left First Token
...
...
@@ -127,12 +120,12 @@ namespace utue::pe::tools::lsh {
* HashMap with a Token key
*/
template
<
class
ValueType
>
using
HashMap
=
utils
::
HashMap
<
Token
,
ValueType
,
Token
::
Hash
,
Token
::
Equal
>
;
using
HashMap
=
utils
::
HashMap
<
Token
,
ValueType
,
Token
::
Hash
>
;
/**
* Hash Set with a Token key
*/
typedef
utils
::
HashSet
<
Token
,
Token
::
Hash
,
Token
::
Equal
>
HashSet
;
typedef
utils
::
HashSet
<
Token
,
Token
::
Hash
>
HashSet
;
private:
...
...
utils
@
54c896d6
Compare
5e8d82c1
...
54c896d6
Subproject commit 5
e8d82c1767ca601aba30ce63c751030e618236d
Subproject commit 5
4c896d649f71b2613cb2ff252a46b567f214540
source/utue/pe/tools/lsh/Scanner.cpp
View file @
2df574cb
...
...
@@ -53,8 +53,6 @@
*/
#include <utue/pe/tools/lsh/Scanner.h>
#include "../../../../../../../include/utue/pe/etra2020/scanpath/Scanner.h"
namespace
utue
::
pe
::
tools
::
lsh
{
...
...
source/utue/pe/tools/lsh/Token.cpp
View file @
2df574cb
...
...
@@ -64,7 +64,7 @@ namespace utue::pe::tools::lsh {
}
bool
Token
::
Equal
::
operator
()(
const
Token
&
left
,
const
Token
&
right
)
const
{
bool
Token
::
Hash
::
operator
()(
const
Token
&
left
,
const
Token
&
right
)
const
{
return
left
.
equal
(
right
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment