aboutsummaryrefslogtreecommitdiffstats
path: root/contrib/libs/hyperscan/src/rose/rose_in_graph.h
diff options
context:
space:
mode:
authorIvan Blinkov <ivan@blinkov.ru>2022-02-10 16:47:10 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:47:10 +0300
commit1aeb9a455974457866f78722ad98114bafc84e8a (patch)
treee4340eaf1668684d83a0a58c36947c5def5350ad /contrib/libs/hyperscan/src/rose/rose_in_graph.h
parentbd5ef432f5cfb1e18851381329d94665a4c22470 (diff)
downloadydb-1aeb9a455974457866f78722ad98114bafc84e8a.tar.gz
Restoring authorship annotation for Ivan Blinkov <ivan@blinkov.ru>. Commit 1 of 2.
Diffstat (limited to 'contrib/libs/hyperscan/src/rose/rose_in_graph.h')
-rw-r--r--contrib/libs/hyperscan/src/rose/rose_in_graph.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/contrib/libs/hyperscan/src/rose/rose_in_graph.h b/contrib/libs/hyperscan/src/rose/rose_in_graph.h
index da0ea08da1..1cf7b22045 100644
--- a/contrib/libs/hyperscan/src/rose/rose_in_graph.h
+++ b/contrib/libs/hyperscan/src/rose/rose_in_graph.h
@@ -45,8 +45,8 @@
#include "ue2common.h"
#include "rose/rose_common.h"
-#include "util/flat_containers.h"
-#include "util/ue2_graph.h"
+#include "util/flat_containers.h"
+#include "util/ue2_graph.h"
#include "util/ue2string.h"
#include <memory>
@@ -55,7 +55,7 @@ namespace ue2 {
class NGHolder;
struct raw_som_dfa;
-struct raw_dfa;
+struct raw_dfa;
enum RoseInVertexType {
RIV_LITERAL,
@@ -105,12 +105,12 @@ public:
ROSE_BOUND_INF);
}
- /* for when there is a suffix graph which handles the reports */
- static RoseInVertexProps makeAcceptEod() {
- return RoseInVertexProps(RIV_ACCEPT_EOD, ue2_literal(), 0,
- ROSE_BOUND_INF);
- }
-
+ /* for when there is a suffix graph which handles the reports */
+ static RoseInVertexProps makeAcceptEod() {
+ return RoseInVertexProps(RIV_ACCEPT_EOD, ue2_literal(), 0,
+ ROSE_BOUND_INF);
+ }
+
static RoseInVertexProps makeStart(bool anchored) {
DEBUG_PRINTF("making %s\n", anchored ? "anchored start" : "start");
if (anchored) {
@@ -167,12 +167,12 @@ struct RoseInEdgeProps {
/** \brief Maximum bound on 'dot' repeat between literals. */
u32 maxBound;
- /** \brief Graph on edge. Graph is end to (end - lag). */
+ /** \brief Graph on edge. Graph is end to (end - lag). */
std::shared_ptr<NGHolder> graph;
- /** \brief DFA version of graph, if we have already determinised. */
- std::shared_ptr<raw_dfa> dfa;
-
+ /** \brief DFA version of graph, if we have already determinised. */
+ std::shared_ptr<raw_dfa> dfa;
+
/** \brief Haig version of graph, if required. */
std::shared_ptr<raw_som_dfa> haig;
@@ -183,11 +183,11 @@ struct RoseInEdgeProps {
u32 graph_lag;
/** \brief Unique edge index. */
- size_t index = 0;
-};
+ size_t index = 0;
+};
-struct RoseInGraph
- : public ue2_graph<RoseInGraph, RoseInVertexProps, RoseInEdgeProps> {
+struct RoseInGraph
+ : public ue2_graph<RoseInGraph, RoseInVertexProps, RoseInEdgeProps> {
};
typedef RoseInGraph::vertex_descriptor RoseInVertex;
typedef RoseInGraph::edge_descriptor RoseInEdge;