Macaulay2 Engine
Loading...
Searching...
No Matches
◆
insert()
[5/5]
auto SuffixTree::insert
(
std::vector<
Word
> &
ss
,
std::vector<
Overlap
> &
rightOverlaps
)->
size_t
Definition at line
185
of file
SuffixTree.cpp
.
186
{
187
// note that I got a crash if I used for (auto s : ss) and then inserted s.
188
// Here, s is a copy of the element in ss, not s itself, apparently?
189
// in order for it to do the right thing, I think it must be auto& s : ss
190
for
(
auto
i = ss.begin(); i != ss.end(); ++i)
191
{
192
insert
(*i,rightOverlaps);
193
}
194
return
mMonomials
.size();
195
}
SuffixTree::insert
size_t insert(const Word &w)
SuffixTree::mMonomials
std::vector< Label > mMonomials
Definition
SuffixTree.hpp:397
References
insert()
, and
mMonomials
.
SuffixTree
Generated on
for Macaulay2 Engine by
1.15.0