3 * Copyright 1995-2002 the LyX Team
4 * Read the file COPYING
6 * \author Matthias Ettrich
21 /// function object returning true when row number is found
22 class same_rownumber {
24 same_rownumber(int row) : row_(row) {}
25 bool operator()(TexRow::RowList::value_type const & vt) const {
26 return vt.rownumber() == row_;
45 void TexRow::start(int id, int pos)
52 void TexRow::newline()
54 int const id = lastid;
55 RowList::value_type tmp(id, lastpos, ++count);
56 rowlist.push_back(tmp);
60 bool TexRow::getIdFromRow(int row, int & id, int & pos) const
62 RowList::const_iterator cit =
63 find_if(rowlist.begin(), rowlist.end(),
66 if (cit != rowlist.end()) {
77 TexRow & TexRow::operator+=(TexRow const & tr)
79 rowlist.insert(rowlist.end(), tr.rowlist.begin(), tr.rowlist.end());