Doxygen
|
Class representing a list of different code generators. More...
#include <src/outputlist.h>
Classes | |
struct | OutputCodeElem |
Public Types | |
using | OutputCodeIntfPtr = std::unique_ptr<OutputCodeIntf> |
Public Member Functions | |
int | id () const |
void | setId (int id) |
void | add (OutputCodeIntfPtr &&p) |
template<class T, class... As> | |
T * | add (As &&... args) |
Add a code generator to the list, using a syntax similar to std::make_unique<T>(). | |
template<class T> | |
T * | get (OutputType o) |
Returns a pointer to a specific generator in the list. | |
void | setEnabledFiltered (OutputType o, bool enabled) |
Enable or disable a specific generator. | |
void | clear () |
void | codify (const QCString &s) |
void | stripCodeComments (bool b) |
void | startSpecialComment () |
void | endSpecialComment () |
void | setStripIndentAmount (size_t amount) |
void | writeCodeLink (CodeSymbolType type, const QCString &ref, const QCString &file, const QCString &anchor, const QCString &name, const QCString &tooltip) |
void | writeLineNumber (const QCString &ref, const QCString &file, const QCString &anchor, int lineNumber, bool writeLineAnchor) |
void | writeTooltip (const QCString &id, const DocLinkInfo &docInfo, const QCString &decl, const QCString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) |
void | startCodeLine (int lineNr) |
void | endCodeLine () |
void | startFontClass (const QCString &c) |
void | endFontClass () |
void | writeCodeAnchor (const QCString &name) |
void | startCodeFragment (const QCString &style) |
void | endCodeFragment (const QCString &style) |
void | startFold (int lineNr, const QCString &startMarker, const QCString &endMarker) |
void | endFold () |
Private Member Functions | |
template<class... Ts, class... As> | |
void | foreach (void(OutputCodeIntf::*methodPtr)(Ts...), As &&... args) |
Private Attributes | |
std::vector< OutputCodeElem > | m_outputCodeList |
int | m_id = -1 |
Class representing a list of different code generators.
It offers the same interface as the specific code generators, and will forward each method to all generators that are enabled.
Definition at line 164 of file outputlist.h.
using OutputCodeList::OutputCodeIntfPtr = std::unique_ptr<OutputCodeIntf> |
Definition at line 167 of file outputlist.h.
|
inline |
Add a code generator to the list, using a syntax similar to std::make_unique<T>().
Definition at line 202 of file outputlist.h.
References add(), and m_outputCodeList.
|
inline |
Definition at line 195 of file outputlist.h.
References m_outputCodeList.
Referenced by add(), DocbookGenerator::addCodeGen(), HtmlGenerator::addCodeGen(), LatexGenerator::addCodeGen(), ManGenerator::addCodeGen(), RTFGenerator::addCodeGen(), generateBriefDoc(), generateHtmlOutput(), getSQLDocBlock(), CodeFragmentManager::parseCodeFragment(), parseCommentAsHtml(), FileDefImpl::parseSource(), FileDefImpl::writeSourceBody(), writeXMLCodeBlock(), and writeXMLDocBlock().
|
inline |
Definition at line 228 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 235 of file outputlist.h.
References OutputCodeIntf::codify().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 282 of file outputlist.h.
References OutputCodeIntf::endCodeFragment().
Referenced by writeXMLCodeBlock().
|
inline |
Definition at line 267 of file outputlist.h.
References OutputCodeIntf::endCodeLine().
Referenced by FileCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 288 of file outputlist.h.
References OutputCodeIntf::endFold().
|
inline |
Definition at line 273 of file outputlist.h.
References OutputCodeIntf::endFontClass().
|
inline |
Definition at line 244 of file outputlist.h.
References OutputCodeIntf::endSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inlineprivate |
Definition at line 293 of file outputlist.h.
References m_outputCodeList.
|
inline |
Returns a pointer to a specific generator in the list.
Definition at line 210 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 192 of file outputlist.h.
References m_id.
Referenced by setId(), and TooltipManager::writeTooltips().
|
inline |
Enable or disable a specific generator.
Definition at line 220 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 193 of file outputlist.h.
|
inline |
Definition at line 247 of file outputlist.h.
References OutputCodeIntf::setStripIndentAmount().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 279 of file outputlist.h.
References OutputCodeIntf::startCodeFragment().
Referenced by MemberDefImpl::_writeMultiLineInitializer(), ConceptDefImpl::writeDefinition(), DefinitionImpl::writeInlineCode(), VhdlDocGen::writeSource(), FileDefImpl::writeSourceBody(), and writeXMLCodeBlock().
|
inline |
Definition at line 264 of file outputlist.h.
References OutputCodeIntf::startCodeLine().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 285 of file outputlist.h.
References OutputCodeIntf::startFold().
|
inline |
Definition at line 270 of file outputlist.h.
References OutputCodeIntf::startFontClass().
Referenced by startFonts().
|
inline |
Definition at line 241 of file outputlist.h.
References OutputCodeIntf::startSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 238 of file outputlist.h.
References OutputCodeIntf::stripCodeComments().
Referenced by CCodeParser::parseCode(), FortranCodeParser::parseCode(), PythonCodeParser::parseCode(), VHDLCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 276 of file outputlist.h.
References OutputCodeIntf::writeCodeAnchor().
Referenced by generateClassMemberLink(), generateClassOrGlobalLink(), and getLinkInScope().
|
inline |
Definition at line 250 of file outputlist.h.
References OutputCodeIntf::writeCodeLink().
Referenced by writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), and writeMultiLineCodeLink().
|
inline |
Definition at line 256 of file outputlist.h.
References OutputCodeIntf::writeLineNumber().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 260 of file outputlist.h.
References OutputCodeIntf::writeTooltip().
Referenced by TooltipManager::writeTooltips().
|
private |
Definition at line 305 of file outputlist.h.
|
private |
Definition at line 304 of file outputlist.h.
Referenced by add(), add(), clear(), foreach(), get(), and setEnabledFiltered().