mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-11-18 10:10:35 +03:00
ng_depth: rename calcDepth functions, return vec
This commit is contained in:
committed by
Matthew Barr
parent
15c8a7bd98
commit
dfe1b8a2af
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2015, 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:
|
||||
@@ -60,10 +60,9 @@ namespace {
|
||||
|
||||
/** Depths from start, startDs for this graph. */
|
||||
struct InitDepths {
|
||||
explicit InitDepths(const NGHolder &g) {
|
||||
calcDepthsFrom(g, g.start, start);
|
||||
calcDepthsFrom(g, g.startDs, startDs);
|
||||
}
|
||||
explicit InitDepths(const NGHolder &g)
|
||||
: start(calcDepthsFrom(g, g.start)),
|
||||
startDs(calcDepthsFrom(g, g.startDs)) {}
|
||||
|
||||
depth maxDist(const NGHolder &g, NFAVertex v) const {
|
||||
u32 idx = g[v].index;
|
||||
|
||||
Reference in New Issue
Block a user