w32tex
About: TeX Live provides a comprehensive TeX system including all the major TeX-related programs, macro packages, and fonts that are free software. Windows sources.
  Fossies Dox: w32tex-src.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

GList Class Reference

#include <GList.h>

Public Member Functions

 GList ()
 
 GList (int sizeA)
 
 ~GList ()
 
int getLength ()
 
GListcopy ()
 
voidget (int i)
 
void put (int i, void *p)
 
void append (void *p)
 
void append (GList *list)
 
void insert (int i, void *p)
 
voiddel (int i)
 
void sort (int(*cmp)(const void *ptr1, const void *ptr2))
 
void reverse ()
 
void setAllocIncr (int incA)
 

Private Member Functions

void expand ()
 
void shrink ()
 

Private Attributes

void ** data
 
int size
 
int length
 
int inc
 

Detailed Description

Definition at line 24 of file GList.h.

Constructor & Destructor Documentation

◆ GList() [1/2]

GList::GList ( )

Definition at line 25 of file GList.cc.

References data, gmallocn(), inc, length, and size.

Referenced by copy().

◆ GList() [2/2]

GList::GList ( int  sizeA)

Definition at line 32 of file GList.cc.

References data, gmallocn(), inc, length, and size.

◆ ~GList()

GList::~GList ( )

Definition at line 39 of file GList.cc.

References data, and gfree.

Member Function Documentation

◆ append() [1/2]

void GList::append ( GList list)

Definition at line 60 of file GList.cc.

References data, expand(), i, length, and size.

◆ append() [2/2]

void GList::append ( void p)

Definition at line 53 of file GList.cc.

References data, expand(), length, p, and size.

Referenced by TextCharLine::add(), TextPage::addChar(), OCDisplayNode::addChild(), TextBlock::addChild(), OCDisplayNode::addChildren(), TextPage::addLink(), TextPage::addUnderline(), AcroForm::buildAnnotPageList(), TextPage::buildColumn(), TextPage::buildOverlappingTextColumn(), TextPage::buildSimple2Columns(), TextPage::buildSuperLines(), GlobalParams::createDefaultKeyBindings(), Gfx::display(), AcroFormField::drawText(), Annot::drawText(), HTMLGen::getFontDefn(), GlobalParams::getKeyBinding(), TextPage::getLineChars(), TextPage::getText(), TileMap::getTileList(), GfxFontDict::GfxFontDict(), PSOutputDev::init(), KeyBinding::KeyBinding(), SplashFontEngine::loadCIDFont(), SplashFontEngine::loadOpenTypeCFFFont(), SplashFontEngine::loadOpenTypeT1CFont(), SplashFontEngine::loadTrueTypeFont(), SplashFontEngine::loadType1CFont(), SplashFontEngine::loadType1Font(), TextPage::makeWordListForRect(), Gfx::opBeginMarkedContent(), OptionalContent::OptionalContent(), GlobalParams::parseBind(), GlobalParams::parseFontDir(), GlobalParams::parseLineTokens(), GlobalParams::parsePopupMenuCmd(), GlobalParams::parsePSResidentFont16(), GlobalParams::parsePSResidentFontCC(), GlobalParams::parseToUnicodeDir(), PostScriptFunction::PostScriptFunction(), JBIG2Stream::readCodeTableSeg(), Catalog::readEmbeddedFile(), JBIG2Stream::readGenericRefinementRegionSeg(), JBIG2Stream::readGenericRegionSeg(), JBIG2Stream::readHalftoneRegionSeg(), Catalog::readPageLabelTree2(), JBIG2Stream::readPatternDictSeg(), JBIG2Stream::readSymbolDictSeg(), JBIG2Stream::readTextRegionSeg(), PSOutputDev::saveState(), AcroForm::scanField(), TextPage::separateOverlappingText(), PDFCore::setLinearSelection(), DisplayState::setSelection(), PSOutputDev::setupFont(), TextPage::split(), TextPage::splitChars(), Gfx::takeContentStreamStack(), and TextPage::updateFont().

◆ copy()

GList * GList::copy ( )

Definition at line 43 of file GList.cc.

References data, GList(), inc, length, memcpy, and ret.

◆ del()

◆ expand()

void GList::expand ( )
private

Definition at line 115 of file GList.cc.

References data, greallocn(), inc, and size.

Referenced by append(), and insert().

◆ get()

void* GList::get ( int  i)
inline

Definition at line 48 of file GList.h.

References data, and i.

Referenced by TextPage::addChar(), OCDisplayNode::addChildren(), HTMLGen::appendSpans(), TextPage::assignLinePhysPositions(), TextPage::assignSimpleLayoutPositions(), TextPage::buildColumns2(), TextPage::buildLine(), TextPage::buildLines(), TextPage::buildOverlappingTextColumn(), TextPage::buildSimple2Lines(), TextPage::buildSuperLines(), SplashFontEngine::checkForBadFontFile(), Gfx::checkForContentStreamLoop(), TextPage::checkPointInside(), TextPage::checkPrimaryLR(), TileCache::cleanCache(), TextPage::coalesce(), TextPage::computeWordSpacingThreshold(), HTMLGen::convertPage(), TextPage::convertPosToPointLeftEdge(), TextPage::convertPosToPointLower(), TextPage::convertPosToPointRightEdge(), TextPage::convertPosToPointUpper(), JBIG2Stream::discardSegment(), AcroForm::draw(), AcroFormField::drawBarcode(), AcroFormField::drawListBox(), PSOutputDev::drawString(), AcroFormField::drawText(), Annot::drawText(), SysFontList::find(), TextPage::findCharRange(), TextPage::findClippedCharLeaf(), AcroForm::findField(), AcroForm::findFieldIdx(), GlobalParams::findFontFile(), TextPage::findGaps(), TextPage::findLinePoints(), OptionalContent::findOCG(), Catalog::findPageLabel(), TextPage::findPointInColumn(), TextPage::findPointInside(), TextPage::findPointNear(), JBIG2Stream::findSegment(), TextPage::findText(), TileCache::findTile(), GlobalParams::findToUnicodeFile(), TextPage::findWordPoints(), TileCache::flushCache(), TextPage::generateUnderlinesAndLinks(), TextWordList::get(), TextLine::getBaseline(), TileCompositor::getBitmap(), TextPage::getChars(), OCDisplayNode::getChild(), AcroFormField::getColor(), TextPage::getColumnLowerLeft(), TextPage::getColumnUpperRight(), Catalog::getEmbeddedFileName(), Catalog::getEmbeddedFileNameLength(), Catalog::getEmbeddedFileStreamObj(), Catalog::getEmbeddedFileStreamRef(), AcroForm::getField(), GfxFontDict::getFont(), AcroFormField::getFont(), HTMLGen::getFontDefn(), GlobalParams::getKeyBinding(), TextPage::getLineChars(), OptionalContent::getOCG(), Catalog::getPageNumFromPageLabel(), GlobalParams::getPopupMenuCmd(), GlobalParams::getPSResidentFont16(), GlobalParams::getPSResidentFontCC(), TextColumn::getRotation(), DisplayState::getSelectRect(), PDFCore::getSelectRectListBBox(), TextPage::getText(), TileCache::getTileBitmap(), TileCache::getUnstartedTile(), TileMap::getWindowPageRange(), TileCache::hasUnstartedTiles(), PSOutputDev::init(), TextPage::insertClippedChars(), TextPage::insertColumnIntoTree(), TextPage::insertLargeCharInLeaf(), TextPage::insertLargeChars(), TextPage::insertLargeCharsInFirstLeaf(), AcroForm::load(), AcroForm::lookupAnnotPage(), GfxFontDict::lookupByRef(), main(), TextPage::makeWordListForChars(), TextPage::makeWordListForRect(), Gfx::opEndMarkedContent(), OptionalContent::OptionalContent(), GlobalParams::parseBind(), GlobalParams::parseCIDToUnicode(), GlobalParams::parseCMapDir(), PostScriptFunction::parseCode(), GlobalParams::parseDropFont(), GlobalParams::parseFloat(), GlobalParams::parseFontDir(), GlobalParams::parseFontFile(), GlobalParams::parseFontFileCC(), GlobalParams::parseInteger(), GlobalParams::parseLine(), GlobalParams::parseNameToUnicode(), GlobalParams::parsePopupMenuCmd(), GlobalParams::parsePSImageableArea(), GlobalParams::parsePSLevel(), GlobalParams::parsePSPaperSize(), GlobalParams::parsePSResidentFont(), GlobalParams::parsePSResidentFont16(), GlobalParams::parsePSResidentFontCC(), GlobalParams::parseScreenType(), GlobalParams::parseString(), GlobalParams::parseStrokeAdjust(), GlobalParams::parseTextEOL(), GlobalParams::parseToUnicodeDir(), GlobalParams::parseUnbind(), GlobalParams::parseUnicodeMap(), GlobalParams::parseUnicodeRemapping(), GlobalParams::parseUnicodeToUnicode(), GlobalParams::parseYesNo(), PostScriptFunction::PostScriptFunction(), Catalog::readPageLabelTree(), JBIG2Stream::readSymbolDictSeg(), JBIG2Stream::readTextRegionSeg(), TextPage::removeDuplicates(), TileCache::removeTile(), TextPage::rotateChars(), TextPage::rotateCharsToZero(), TextPage::rotateUnderlinesAndLinks(), TextPage::separateOverlappingText(), TileCache::setActiveTileList(), DisplayState::setSelection(), GlobalParams::setupBaseFonts(), PSOutputDev::setupFont(), TextPage::split(), TextPage::splitChars(), TextPage::tagBlock(), OCDisplayNode::takeChildren(), TextLine::TextLine(), TextParagraph::TextParagraph(), TextSuperLine::TextSuperLine(), TextPage::unrotateChars(), TextPage::unrotateCharsFromZero(), TextPage::unrotateColumns(), TextPage::unrotateColumnsFromZero(), TextBlock::updateBounds(), TextPage::updateFont(), PSOutputDev::writeHeader(), TextPage::writeLinePrinter(), TextPage::writePhysLayout(), TextPage::writeRaw(), TextPage::writeReadingOrder(), TextPage::writeSimple2Layout(), and TextPage::writeSimpleLayout().

◆ getLength()

int GList::getLength ( )
inline

Definition at line 39 of file GList.h.

References length.

Referenced by TextPage::addChar(), TextBlock::addChild(), OCDisplayNode::addChildren(), HTMLGen::appendSpans(), TextPage::assignLinePhysPositions(), TextPage::assignSimpleLayoutPositions(), TextPage::buildColumns2(), TextPage::buildLine(), TextPage::buildLines(), TextPage::buildOverlappingTextColumn(), TextPage::buildSimple2Lines(), TextPage::buildSuperLines(), SplashFontEngine::checkForBadFontFile(), Gfx::checkForContentStreamLoop(), TextPage::checkPointInside(), TextPage::checkPrimaryLR(), TileCache::cleanCache(), TextPage::coalesce(), TextPage::computeWordSpacingThreshold(), HTMLGen::convertPage(), JBIG2Stream::discardSegment(), Gfx::display(), AcroForm::draw(), AcroFormField::drawBarcode(), AcroFormField::drawListBox(), PSOutputDev::drawString(), AcroFormField::drawText(), Annot::drawText(), Gfx::endOfPage(), SysFontList::find(), TextPage::findCharRange(), TextPage::findClippedCharLeaf(), AcroForm::findField(), AcroForm::findFieldIdx(), GlobalParams::findFontFile(), TextPage::findGaps(), OptionalContent::findOCG(), Catalog::findPageLabel(), TextPage::findPointInColumn(), TextPage::findPointInside(), TextPage::findPointNear(), JBIG2Stream::findSegment(), TextPage::findText(), TileCache::findTile(), GlobalParams::findToUnicodeFile(), TileCache::flushCache(), TextPage::generateUnderlinesAndLinks(), TextWordList::get(), TileCompositor::getBitmap(), TextPage::getChars(), AcroFormField::getColor(), AcroFormField::getFont(), HTMLGen::getFontDefn(), GlobalParams::getKeyBinding(), TextWordList::getLength(), TextPage::getLineChars(), OCDisplayNode::getNumChildren(), Catalog::getNumEmbeddedFiles(), AcroForm::getNumFields(), GfxFontDict::getNumFonts(), OptionalContent::getNumOCGs(), GlobalParams::getNumPopupMenuCmds(), DisplayState::getNumSelectRects(), Catalog::getPageNumFromPageLabel(), GlobalParams::getPSResidentFont16(), GlobalParams::getPSResidentFontCC(), PDFCore::getSelectRectListBBox(), TextPage::getText(), TileCache::getUnstartedTile(), TileMap::getWindowPageRange(), TileCache::hasUnstartedTiles(), PSOutputDev::init(), TextPage::insertClippedChars(), TextPage::insertColumnIntoTree(), TextPage::insertIntoTree(), TextPage::insertLargeCharInLeaf(), TextPage::insertLargeChars(), TextPage::insertLargeCharsInFirstLeaf(), AcroForm::load(), AcroForm::lookupAnnotPage(), GfxFontDict::lookupByRef(), main(), TextPage::makeColumns(), TextPage::makeWordListForChars(), TextPage::makeWordListForRect(), Gfx::opEndMarkedContent(), OptionalContent::OptionalContent(), GlobalParams::parseBind(), GlobalParams::parseCIDToUnicode(), GlobalParams::parseCMapDir(), PostScriptFunction::parseCode(), GlobalParams::parseDropFont(), GlobalParams::parseFloat(), GlobalParams::parseFontDir(), GlobalParams::parseFontFile(), GlobalParams::parseFontFileCC(), GlobalParams::parseInteger(), GlobalParams::parseLine(), GlobalParams::parseNameToUnicode(), GlobalParams::parsePopupMenuCmd(), GlobalParams::parsePSImageableArea(), GlobalParams::parsePSLevel(), GlobalParams::parsePSPaperSize(), GlobalParams::parsePSResidentFont(), GlobalParams::parsePSResidentFont16(), GlobalParams::parsePSResidentFontCC(), GlobalParams::parseScreenType(), GlobalParams::parseString(), GlobalParams::parseStrokeAdjust(), GlobalParams::parseTextEOL(), GlobalParams::parseToUnicodeDir(), GlobalParams::parseUnbind(), GlobalParams::parseUnicodeMap(), GlobalParams::parseUnicodeRemapping(), GlobalParams::parseUnicodeToUnicode(), GlobalParams::parseYesNo(), PostScriptFunction::PostScriptFunction(), TextBlock::prependChild(), Catalog::readPageLabelTree(), JBIG2Stream::readSymbolDictSeg(), JBIG2Stream::readTextRegionSeg(), TileCache::removeTile(), PSOutputDev::restoreState(), TextPage::rotateChars(), TextPage::rotateCharsToZero(), TextPage::rotateUnderlinesAndLinks(), TextPage::separateOverlappingText(), TileCache::setActiveTileList(), DisplayState::setSelection(), GlobalParams::setupBaseFonts(), PSOutputDev::setupFont(), TextPage::split(), TextPage::splitChars(), TextPage::tagBlock(), OCDisplayNode::takeChildren(), TextLine::TextLine(), TextParagraph::TextParagraph(), TextSuperLine::TextSuperLine(), TextPage::unrotateChars(), TextPage::unrotateCharsFromZero(), TextPage::unrotateColumns(), TextPage::unrotateColumnsFromZero(), TextPage::updateFont(), PSOutputDev::writeHeader(), TextPage::writeLinePrinter(), TextPage::writePhysLayout(), TextPage::writeRaw(), TextPage::writeReadingOrder(), TextPage::writeSimple2Layout(), and TextPage::writeSimpleLayout().

◆ insert()

void GList::insert ( int  i,
void p 
)

◆ put()

void GList::put ( int  i,
void p 
)
inline

Definition at line 52 of file GList.h.

References data, i, and p.

◆ reverse()

void GList::reverse ( )

Definition at line 103 of file GList.cc.

References data, i, length, n, and t.

◆ setAllocIncr()

void GList::setAllocIncr ( int  incA)
inline

Definition at line 81 of file GList.h.

References inc.

◆ shrink()

void GList::shrink ( )
private

Definition at line 120 of file GList.cc.

References data, greallocn(), inc, and size.

Referenced by del().

◆ sort()

Member Data Documentation

◆ data

void** GList::data
private

Definition at line 88 of file GList.h.

Referenced by append(), copy(), del(), expand(), get(), GList(), insert(), put(), reverse(), shrink(), sort(), and ~GList().

◆ inc

int GList::inc
private

Definition at line 91 of file GList.h.

Referenced by copy(), del(), expand(), GList(), setAllocIncr(), and shrink().

◆ length

int GList::length
private

Definition at line 90 of file GList.h.

Referenced by append(), copy(), del(), getLength(), GList(), insert(), reverse(), and sort().

◆ size

int GList::size
private

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