4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * \author Alfredo Braunstein
9 * Full author contact details are available in file CREDITS.
15 #include "support/docstring.h"
16 #include "support/types.h"
25 /// A class to hold an error item
29 docstring description;
33 Buffer const * buffer;
34 ErrorItem(docstring const & error, docstring const & description,
35 int parid, pos_type posstart, pos_type posend,
36 Buffer const * buf = 0);
41 class ErrorList : private std::vector<ErrorItem>
44 ErrorList() : std::vector<ErrorItem> () {}
46 using std::vector<ErrorItem>::push_back;
47 using std::vector<ErrorItem>::end;
48 using std::vector<ErrorItem>::begin;
49 using std::vector<ErrorItem>::operator[];
50 using std::vector<ErrorItem>::size;
51 using std::vector<ErrorItem>::clear;
52 using std::vector<ErrorItem>::empty;
53 using std::vector<ErrorItem>::const_iterator;