diff options
author | Ivan Blinkov <ivan@blinkov.ru> | 2022-02-10 16:47:11 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:47:11 +0300 |
commit | 5b283123c882433dafbaf6b338adeea16c1a0ea0 (patch) | |
tree | 339adc63bce23800021202ae4a8328a843dc447a /contrib/libs/hyperscan/src/som/slot_manager_internal.h | |
parent | 1aeb9a455974457866f78722ad98114bafc84e8a (diff) | |
download | ydb-5b283123c882433dafbaf6b338adeea16c1a0ea0.tar.gz |
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 2 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/som/slot_manager_internal.h')
-rw-r--r-- | contrib/libs/hyperscan/src/som/slot_manager_internal.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/contrib/libs/hyperscan/src/som/slot_manager_internal.h b/contrib/libs/hyperscan/src/som/slot_manager_internal.h index 358ed630c9..7e1fecc7e6 100644 --- a/contrib/libs/hyperscan/src/som/slot_manager_internal.h +++ b/contrib/libs/hyperscan/src/som/slot_manager_internal.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015-2017, Intel Corporation + * Copyright (c) 2015-2017, Intel Corporation * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -35,8 +35,8 @@ #include "ue2common.h" #include <memory> -#include <unordered_map> -#include <unordered_set> +#include <unordered_map> +#include <unordered_set> #include <vector> namespace ue2 { @@ -44,14 +44,14 @@ namespace ue2 { struct InitialResetEntry { InitialResetEntry(std::shared_ptr<const NGHolder> sent_in, std::shared_ptr<const NGHolder> body_in, - const std::unordered_map<NFAVertex, u32> &body_regions_in, + const std::unordered_map<NFAVertex, u32> &body_regions_in, u32 sent_region_in, u32 first_bad_region_in) : sent(sent_in), body(body_in), body_regions(body_regions_in), sent_region(sent_region_in), first_bad_region(first_bad_region_in) {} std::shared_ptr<const NGHolder> sent; std::shared_ptr<const NGHolder> body; - std::unordered_map<NFAVertex, u32> body_regions; + std::unordered_map<NFAVertex, u32> body_regions; u32 sent_region; u32 first_bad_region; /* ~0U if it must cover the whole g */ }; @@ -86,7 +86,7 @@ struct SlotEntryEqual { }; struct SlotCache { - typedef std::unordered_set<SlotCacheEntry, SlotEntryHasher, + typedef std::unordered_set<SlotCacheEntry, SlotEntryHasher, SlotEntryEqual> CacheStore; void insert(const NGHolder &prefix, const CharReach &escapes, @@ -98,7 +98,7 @@ struct SlotCache { CacheStore store; std::unordered_set<std::shared_ptr<const NGHolder>, NGHolderHasher, - NGHolderEqual> initial_prefixes; + NGHolderEqual> initial_prefixes; std::vector<InitialResetInfo> initial_resets; }; |