3 * This file is part of LyX, the document processor.
4 * Licence details can be found in the file COPYING.
6 * \author Matthias Ettrich
7 * \author Lars Gullik Bjønnes
10 * Full author contact details are available in file CREDITS.
28 /// function object returning true when row number is found
29 class same_rownumber {
31 same_rownumber(int row) : row_(row) {}
32 bool operator()(TexRow::RowList::value_type const & vt) const {
33 return vt.rownumber() == row_;
52 void TexRow::start(int id, int pos)
59 void TexRow::newline()
61 int const id = lastid;
62 RowList::value_type tmp(id, lastpos, ++count);
63 rowlist.push_back(tmp);
67 bool TexRow::getIdFromRow(int row, int & id, int & pos) const
69 RowList::const_iterator cit =
70 find_if(rowlist.begin(), rowlist.end(),
73 if (cit != rowlist.end()) {
84 TexRow & TexRow::operator+=(TexRow const & tr)
86 rowlist.insert(rowlist.end(), tr.rowlist.begin(), tr.rowlist.end());