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 163 of file outputlist.h.
using OutputCodeList::OutputCodeIntfPtr = std::unique_ptr<OutputCodeIntf> |
Definition at line 166 of file outputlist.h.
|
inline |
Add a code generator to the list, using a syntax similar to std::make_unique<T>()
Definition at line 201 of file outputlist.h.
References add(), and m_outputCodeList.
|
inline |
Definition at line 194 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(), FileDefImpl::parseSource(), FileDefImpl::writeSourceBody(), writeXMLCodeBlock(), and writeXMLDocBlock().
|
inline |
Definition at line 227 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 234 of file outputlist.h.
References OutputCodeIntf::codify().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 281 of file outputlist.h.
References OutputCodeIntf::endCodeFragment().
Referenced by writeXMLCodeBlock().
|
inline |
Definition at line 266 of file outputlist.h.
References OutputCodeIntf::endCodeLine().
Referenced by FileCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 287 of file outputlist.h.
References OutputCodeIntf::endFold().
|
inline |
Definition at line 272 of file outputlist.h.
References OutputCodeIntf::endFontClass().
|
inline |
Definition at line 243 of file outputlist.h.
References OutputCodeIntf::endSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inlineprivate |
Definition at line 292 of file outputlist.h.
References m_outputCodeList.
|
inline |
Returns a pointer to a specific generator in the list.
Definition at line 209 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 191 of file outputlist.h.
References m_id.
Referenced by setId(), and TooltipManager::writeTooltips().
|
inline |
Enable or disable a specific generator.
Definition at line 219 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 192 of file outputlist.h.
|
inline |
Definition at line 246 of file outputlist.h.
References OutputCodeIntf::setStripIndentAmount().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 278 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 263 of file outputlist.h.
References OutputCodeIntf::startCodeLine().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 284 of file outputlist.h.
References OutputCodeIntf::startFold().
|
inline |
Definition at line 269 of file outputlist.h.
References OutputCodeIntf::startFontClass().
Referenced by startFonts().
|
inline |
Definition at line 240 of file outputlist.h.
References OutputCodeIntf::startSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 237 of file outputlist.h.
References OutputCodeIntf::stripCodeComments().
Referenced by CCodeParser::parseCode(), FortranCodeParser::parseCode(), PythonCodeParser::parseCode(), VHDLCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 275 of file outputlist.h.
References OutputCodeIntf::writeCodeAnchor().
Referenced by generateClassMemberLink(), generateClassOrGlobalLink(), and getLinkInScope().
|
inline |
Definition at line 249 of file outputlist.h.
References OutputCodeIntf::writeCodeLink().
Referenced by writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), and writeMultiLineCodeLink().
|
inline |
Definition at line 255 of file outputlist.h.
References OutputCodeIntf::writeLineNumber().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 259 of file outputlist.h.
References OutputCodeIntf::writeTooltip().
Referenced by TooltipManager::writeTooltips().
|
private |
Definition at line 304 of file outputlist.h.
|
private |
Definition at line 303 of file outputlist.h.
Referenced by add(), add(), clear(), foreach(), get(), and setEnabledFiltered().