#include <definition.h>
Classes | |
struct | Cookie |
Protected Member Functions | |
Definition (const Definition &d) | |
Private Member Functions | |
void | _setSymbolName (const QCString &name) |
int | _getXRefListId (const char *listName) const |
void | _writeSourceRefList (OutputList &ol, const char *scopeName, const QCString &text, MemberSDict *members, bool) |
void | _setBriefDescription (const char *b, const char *briefFile, int briefLine) |
void | _setDocumentation (const char *d, const char *docFile, int docLine, bool stripWhiteSpace, bool atTop) |
void | _setInbodyDocumentation (const char *d, const char *docFile, int docLine) |
bool | _docsAlreadyAdded (const QCString &doc, QCString &sigList) |
Static Private Member Functions | |
static void | addToMap (const char *name, Definition *d) |
static void | removeFromMap (Definition *d) |
Private Attributes | |
DefinitionImpl * | m_impl |
QCString | m_name |
bool | m_isSymbol |
QCString | m_symbolName |
int | m_defLine |
int | m_defColumn |
Cookie * | m_cookie |
Additional Inherited Members | |
Public Types inherited from DefinitionIntf | |
enum | DefType { TypeClass = 0, TypeFile = 1, TypeNamespace = 2, TypeMember = 3, TypeGroup = 4, TypePackage = 5, TypePage = 6, TypeDir = 7, TypeSymbolList = 8 } |
The common base class of all entity definitions found in the sources.
This can be a class or a member function, or a file, or a namespace, etc. Use definitionType() to find which type of definition this is.
Definition at line 92 of file definition.h.
Definition::Definition | ( | const char * | defFileName, |
int | defLine, | ||
int | defColumn, | ||
const char * | name, | ||
const char * | b = 0 , |
||
const char * | d = 0 , |
||
bool | isSymbol = TRUE |
||
) |
Create a new definition
Definition at line 283 of file definition.cpp.
|
virtual |
|
protected |
Definition at line 302 of file definition.cpp.
Definition at line 544 of file definition.cpp.
|
private |
Definition at line 1488 of file definition.cpp.
|
private |
Definition at line 632 of file definition.cpp.
|
private |
Definition at line 566 of file definition.cpp.
|
private |
Definition at line 693 of file definition.cpp.
|
private |
Definition at line 1937 of file definition.cpp.
|
private |
Write a reference to the source code fragments in which this definition is used.
Definition at line 1142 of file definition.cpp.
|
virtual |
Reimplemented in ClassDef, NamespaceDef, and PageDef.
Definition at line 1369 of file definition.cpp.
void Definition::addSectionsToDefinition | ( | QList< SectionInfo > * | anchorList | ) |
Add the list of anchors that mark the sections that are found in the documentation.
Definition at line 418 of file definition.cpp.
void Definition::addSectionsToIndex | ( | ) |
Definition at line 467 of file definition.cpp.
void Definition::addSourceReferencedBy | ( | MemberDef * | d | ) |
Definition at line 1318 of file definition.cpp.
void Definition::addSourceReferences | ( | MemberDef * | d | ) |
Definition at line 1341 of file definition.cpp.
|
staticprivate |
Definition at line 207 of file definition.cpp.
|
pure virtual |
Returns the brief description of this definition. This can include commands.
Reimplemented in MemberDef.
Definition at line 1768 of file definition.cpp.
QCString Definition::briefDescriptionAsTooltip | ( | ) | const |
Returns a plain text version of the brief description suitable for use as a tool tip.
Definition at line 1776 of file definition.cpp.
QCString Definition::briefFile | ( | ) | const |
Returns the file in which the brief description was found. This can differ from getDefFileName().
Definition at line 1806 of file definition.cpp.
int Definition::briefLine | ( | ) | const |
Returns the line number at which the brief description was found.
Definition at line 1801 of file definition.cpp.
Definition at line 1511 of file definition.cpp.
|
inline |
Definition at line 352 of file definition.h.
QCString Definition::docFile | ( | ) | const |
Returns the file in which the detailed documentation block was found. This can differ from getDefFileName().
Definition at line 1712 of file definition.cpp.
int Definition::docLine | ( | ) | const |
Returns the line number at which the detailed documentation was found.
Definition at line 1707 of file definition.cpp.
|
virtual |
Returns the detailed description of this definition
Reimplemented in MemberDef.
Definition at line 1702 of file definition.cpp.
Convenience method to return a resolved external link
Definition at line 1948 of file definition.cpp.
|
virtual |
Reimplemented in ClassDef, and NamespaceDef.
Definition at line 1364 of file definition.cpp.
FileDef * Definition::getBodyDef | ( | ) | const |
Returns the file in which the body of this item is located or 0 if no body is available.
Definition at line 1881 of file definition.cpp.
|
inline |
returns the column number at which the definition was found
Definition at line 191 of file definition.h.
QCString Definition::getDefFileExtension | ( | ) | const |
returns the extension of the file in which this definition was found
Definition at line 1836 of file definition.cpp.
QCString Definition::getDefFileName | ( | ) | const |
|
inline |
returns the line number at which the definition was found
Definition at line 188 of file definition.h.
int Definition::getEndBodyLine | ( | ) | const |
Returns the last line of the body of this item (applicable to classes and functions).
Definition at line 1876 of file definition.cpp.
SrcLangExt Definition::getLanguage | ( | ) | const |
Returns the programming language this definition was written in.
Definition at line 1911 of file definition.cpp.
|
virtual |
Definition at line 1891 of file definition.cpp.
|
pure virtual |
|
virtual |
If this definition was imported via a tag file, this function returns the tagfile for the external project. This can be translated into an external link target via Doxygen::tagDestinationDict
Reimplemented in ClassDef, and MemberDef.
Definition at line 1861 of file definition.cpp.
MemberSDict * Definition::getReferencedByMembers | ( | ) | const |
Definition at line 1901 of file definition.cpp.
MemberSDict * Definition::getReferencesMembers | ( | ) | const |
Definition at line 1896 of file definition.cpp.
|
virtual |
Returns the anchor of the source listing of this definition.
Definition at line 898 of file definition.cpp.
|
virtual |
Returns the name of the source listing of this definition.
Reimplemented in ClassDef, and FileDef.
Definition at line 885 of file definition.cpp.
int Definition::getStartBodyLine | ( | ) | const |
Returns the first line of the body of this item (applicable to classes and functions).
Definition at line 1871 of file definition.cpp.
bool Definition::hasBriefDescription | ( | ) | const |
returns TRUE if this class has a brief description
Definition at line 1942 of file definition.cpp.
|
virtual |
Returns TRUE iff the definition is documented (which could be generated documentation)
Reimplemented in MemberDef, and ClassDef.
Definition at line 1293 of file definition.cpp.
bool Definition::hasSections | ( | ) | const |
Definition at line 447 of file definition.cpp.
bool Definition::hasSources | ( | ) | const |
Definition at line 1089 of file definition.cpp.
|
virtual |
Returns TRUE iff the definition is documented by the user.
Definition at line 1308 of file definition.cpp.
QCString Definition::id | ( | ) | const |
Definition at line 413 of file definition.cpp.
QCString Definition::inbodyDocumentation | ( | ) | const |
Returns the documentation found inside the body of a member
Definition at line 1813 of file definition.cpp.
QCString Definition::inbodyFile | ( | ) | const |
Returns the file in which the in body documentation was found
Definition at line 1823 of file definition.cpp.
int Definition::inbodyLine | ( | ) | const |
Returns the line at which the first in body documentation part was found
Definition at line 1818 of file definition.cpp.
bool Definition::isArtificial | ( | ) | const |
returns TRUE if this entity was artificially introduced, for instance because it is used to show a template instantiation relation.
Definition at line 1856 of file definition.cpp.
bool Definition::isHidden | ( | ) | const |
Returns TRUE iff this item is supposed to be hidden from the output.
Definition at line 1841 of file definition.cpp.
|
pure virtual |
|
pure virtual |
|
virtual |
Returns TRUE if this definition is imported via a tag file.
Reimplemented in MemberDef, and ClassDef.
Definition at line 1866 of file definition.cpp.
|
virtual |
Returns TRUE iff the name may appear in the output
Definition at line 1851 of file definition.cpp.
|
virtual |
Returns TRUE iff the name is part of this project and may appear in the output
Definition at line 1846 of file definition.cpp.
QCString Definition::localName | ( | ) | const |
Returns the local name without any scope qualifiers.
Definition at line 1433 of file definition.cpp.
void Definition::makePartOfGroup | ( | GroupDef * | gd | ) |
Definition at line 1438 of file definition.cpp.
void Definition::mergeRefItems | ( | Definition * | d | ) |
Definition at line 1464 of file definition.cpp.
|
inline |
QCString Definition::navigationPathAsString | ( | ) | const |
Returns the string used in the footer for $navpath when GENERATE_TREEVIEW is enabled
Definition at line 1559 of file definition.cpp.
GroupList * Definition::partOfGroups | ( | ) | const |
Definition at line 1886 of file definition.cpp.
QCString Definition::pathFragment | ( | ) | const |
Definition at line 1523 of file definition.cpp.
|
virtual |
Returns the fully qualified name of this definition
Reimplemented in MemberDef.
Definition at line 1374 of file definition.cpp.
|
staticprivate |
Definition at line 254 of file definition.cpp.
void Definition::setArtificial | ( | bool | b | ) |
Definition at line 1921 of file definition.cpp.
void Definition::setBodyDef | ( | FileDef * | fd | ) |
Definition at line 1083 of file definition.cpp.
void Definition::setBodySegment | ( | int | bls, |
int | ble | ||
) |
Definition at line 1075 of file definition.cpp.
|
virtual |
Sets the brief description of this definition to b. A dot is added to the sentence if not available.
Reimplemented in MemberDef.
Definition at line 687 of file definition.cpp.
|
inline |
Definition at line 351 of file definition.h.
|
virtual |
Sets the documentation of this definition to d.
Reimplemented in MemberDef.
Definition at line 612 of file definition.cpp.
|
virtual |
void Definition::setId | ( | const char * | name | ) |
Sets a unique id for the symbol. Used for libclang integration.
Definition at line 402 of file definition.cpp.
|
virtual |
Set the documentation that was found inside the body of an item. If there was already some documentation set, the new documentation will be appended.
Reimplemented in MemberDef.
Definition at line 711 of file definition.cpp.
void Definition::setLanguage | ( | SrcLangExt | lang | ) |
Definition at line 1931 of file definition.cpp.
void Definition::setLocalName | ( | const QCString | name | ) |
Definition at line 1926 of file definition.cpp.
|
virtual |
Sets a new name for the definition
Reimplemented in ClassDef.
Definition at line 396 of file definition.cpp.
|
virtual |
Definition at line 1414 of file definition.cpp.
void Definition::setReference | ( | const char * | r | ) |
Sets the tag file id via which this definition was imported.
Definition at line 1906 of file definition.cpp.
void Definition::setRefItems | ( | const QList< ListItemInfo > * | sli | ) |
Definition at line 1444 of file definition.cpp.
QCString Definition::symbolName | ( | ) | const |
Returns the name of this definition as it appears in the symbol map.
Definition at line 1695 of file definition.cpp.
void Definition::writeDocAnchorsToTagFile | ( | FTextStream & | tagFile | ) |
Writes the documentation anchors of the definition to the Doxygen::tagFile stream.
Definition at line 520 of file definition.cpp.
void Definition::writeInlineCode | ( | OutputList & | ol, |
const char * | scopeName | ||
) |
Write code of this definition into the documentation
Definition at line 1097 of file definition.cpp.
void Definition::writeNavigationPath | ( | OutputList & | ol | ) | const |
Definition at line 1611 of file definition.cpp.
|
inlinevirtual |
Reimplemented in ClassDef, FileDef, GroupDef, and NamespaceDef.
Definition at line 338 of file definition.h.
void Definition::writeSourceDef | ( | OutputList & | ol, |
const char * | scopeName | ||
) |
Write a reference to the source code defining this definition
Definition at line 918 of file definition.cpp.
void Definition::writeSourceReffedBy | ( | OutputList & | ol, |
const char * | scopeName | ||
) |
Definition at line 1277 of file definition.cpp.
void Definition::writeSourceRefs | ( | OutputList & | ol, |
const char * | scopeName | ||
) |
Definition at line 1285 of file definition.cpp.
|
inlinevirtual |
Reimplemented in ClassDef, FileDef, GroupDef, and NamespaceDef.
Definition at line 339 of file definition.h.
void Definition::writeToc | ( | OutputList & | ol | ) |
Definition at line 1628 of file definition.cpp.
QList< ListItemInfo > * Definition::xrefListItems | ( | ) | const |
Definition at line 1505 of file definition.cpp.
|
private |
Definition at line 377 of file definition.h.
|
private |
Definition at line 376 of file definition.h.
|
private |
Definition at line 375 of file definition.h.
|
private |
Definition at line 371 of file definition.h.
|
private |
Definition at line 373 of file definition.h.
|
private |
Definition at line 372 of file definition.h.
|
private |
Definition at line 374 of file definition.h.