srchiliteqt::ParagraphMap Class Reference

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

#include <ParagraphMap.h>

Collaboration diagram for srchiliteqt::ParagraphMap:
Collaboration graph
[legend]

List of all members.

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

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:
pos must 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:
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

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

Generated on Sat Mar 6 11:22:59 2010 for Source-highlight Qt Library by  doxygen 1.6.1