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}
size_t insert(const Word &w)
std::vector< Label > mMonomials

References insert(), and mMonomials.