Source-highlight Qt Library
srchiliteqt::ParagraphMap Class Reference

Internal class for mapping paragraph numbers to HighlightStateData. More...

#include <ParagraphMap.h>

Collaboration diagram for srchiliteqt::ParagraphMap:

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. More...
 
HighlightStateDatagetData (int pos)
 Returns a reference to the data stored at the given position. More...
 

Private Types

typedef std::vector< HighlightStateData * > vectorType
 

Private Attributes

vectorType dataVector
 

Detailed Description

Internal class for mapping paragraph numbers to HighlightStateData.

Don't use this class directly!

Member Function Documentation

HighlightStateData * srchiliteqt::ParagraphMap::getData ( int  pos)

Returns a reference to the data stored at the given position.

Parameters
posmust be non-negative
Returns
the reference to the pointer of the data
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.

Parameters
posthe 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
datathe data to insert; the data is then owned by this class

The documentation for this class was generated from the following files: