KDevelop API Documentation

Tags Class Reference

#include <tags.h>

Collaboration diagram for Tags:

Collaboration graph
[legend]
List of all members.

Public Types

typedef QValueList< TagEntryTagList

Static Public Member Functions

void setTagsFile (const QString &file)
 Method to set the tag database filename.
QString getTagsFile ()
bool hasTag (const QString &tag)
 Method to check if the tag database contains a specific tag.
unsigned int numberOfPartialMatches (const QString &tagpart)
unsigned int numberOfExactMatches (const QString &tag)
TagList getPartialMatches (const QString &tagpart)
TagList getExactMatches (const QString &tag)

Static Private Member Functions

unsigned int numberOfMatches (const QString &tagpart, bool partial)
TagList getMatches (const QString &tagpart, bool partial)

Static Private Attributes

QCString _tagsfile

Member Typedef Documentation

typedef QValueList<TagEntry> Tags::TagList
 

Definition at line 34 of file tags.h.

Referenced by CTags2Widget::displayHits(), CTags2Widget::displayHitsAndClear(), getExactMatches(), getMatches(), and getPartialMatches().


Member Function Documentation

Tags::TagList Tags::getExactMatches const QString tag  )  [static]
 

Definition at line 124 of file tags.cpp.

References TagList.

Tags::TagList Tags::getMatches const QString tagpart,
bool  partial
[static, private]
 

Definition at line 67 of file tags.cpp.

References TagList.

Referenced by getPartialMatches().

Tags::TagList Tags::getPartialMatches const QString tagpart  )  [static]
 

Definition at line 119 of file tags.cpp.

References getMatches(), and TagList.

QString Tags::getTagsFile  )  [static]
 

Definition at line 104 of file tags.cpp.

References _tagsfile.

bool Tags::hasTag const QString tag  )  [static]
 

Method to check if the tag database contains a specific tag.

Parameters:
tag Tag to look up
Returns:
returns true if tag database contains 'tag'

Definition at line 30 of file tags.cpp.

References _tagsfile, file, TAG_FULLMATCH, ctags::tagsClose(), ctags::tagsFind(), and ctags::tagsOpen().

unsigned int Tags::numberOfExactMatches const QString tag  )  [static]
 

Definition at line 114 of file tags.cpp.

unsigned int Tags::numberOfMatches const QString tagpart,
bool  partial
[static, private]
 

Definition at line 43 of file tags.cpp.

unsigned int Tags::numberOfPartialMatches const QString tagpart  )  [static]
 

Definition at line 109 of file tags.cpp.

Referenced by CTags2Widget::calculateHitCount().

void Tags::setTagsFile const QString file  )  [static]
 

Method to set the tag database filename.

Parameters:
file the tag database filename

Definition at line 99 of file tags.cpp.

Referenced by K_EXPORT_COMPONENT_FACTORY().


Member Data Documentation

QCString Tags::_tagsfile [static, private]
 

Definition at line 21 of file tags.cpp.

Referenced by getTagsFile(), and hasTag().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Tue Feb 22 09:48:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003