Internal class for mapping paragraph numbers to HighlightStateData. More...
#include <ParagraphMap.h>
Public Member Functions | |
void | insert (int pos, HighlightStateData *data) |
Inserts data in the given position; if it is the first time we use that position, space is allocated for it. | |
HighlightStateData * | getData (int pos) |
Returns a reference to the data stored at the given position. | |
Private Types | |
typedef std::vector < HighlightStateData * > | vectorType |
Private Attributes | |
vectorType | dataVector |
Internal class for mapping paragraph numbers to HighlightStateData.
Don't use this class directly!
HighlightStateData * srchiliteqt::ParagraphMap::getData | ( | int | pos | ) |
Returns a reference to the data stored at the given position.
pos | must be non-negative |
void srchiliteqt::ParagraphMap::insert | ( | int | pos, | |
HighlightStateData * | data | |||
) |
Inserts data in the given position; if it is the first time we use that position, space is allocated for it.
pos | the position for inserting data; it must be non-negative and if it exceeds the size of the vector it must be of only one position | |
data | the data to insert; the data is then owned by this class |