The OutputCodeList
Class Reference
Class representing a list of different code generators. More...
Declaration
Included Headers
Public Member Typedefs Index
using | OutputCodeIntfPtr = std::unique_ptr< OutputCodeIntf > |
Public Member Functions Index
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>() More... | |
template <class T> | |
T * | get (OutputType o) |
Returns a pointer to a specific generator in the list. More... | |
void | setEnabledFiltered (OutputType o, bool enabled) |
Enable or disable a specific generator. More... | |
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 Index
template <class... Ts, class... As> | |
void | foreach (void(OutputCodeIntf::*methodPtr)(Ts...), As &&... args) |
Private Member Attributes Index
std::vector< OutputCodeElem > | m_outputCodeList |
int | m_id = -1 |
Description
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.
Public Member Typedefs
OutputCodeIntfPtr
|
Definition at line 166 of file outputlist.h.
Public Member Functions
add()
| inline |
Definition at line 194 of file outputlist.h.
Reference 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.
add()
| 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.
clear()
| inline |
Definition at line 227 of file outputlist.h.
Reference m_outputCodeList.
codify()
| inline |
Definition at line 234 of file outputlist.h.
Reference OutputCodeIntf::codify.
Referenced by FileCodeParser::parseCode.
endCodeFragment()
| inline |
Definition at line 281 of file outputlist.h.
Reference OutputCodeIntf::endCodeFragment.
Referenced by writeXMLCodeBlock.
endCodeLine()
| inline |
Definition at line 266 of file outputlist.h.
Reference OutputCodeIntf::endCodeLine.
Referenced by FileCodeParser::parseCode and OutputCodeRecorder::replay.
endFold()
| inline |
Definition at line 287 of file outputlist.h.
Reference OutputCodeIntf::endFold.
endFontClass()
| inline |
Definition at line 272 of file outputlist.h.
Reference OutputCodeIntf::endFontClass.
endSpecialComment()
| inline |
Definition at line 243 of file outputlist.h.
Reference OutputCodeIntf::endSpecialComment.
Referenced by OutputCodeRecorder::replay.
get()
| inline |
Returns a pointer to a specific generator in the list.
Definition at line 209 of file outputlist.h.
Reference m_outputCodeList.
id()
| inline |
Definition at line 191 of file outputlist.h.
Reference m_id.
Referenced by setId and TooltipManager::writeTooltips.
setEnabledFiltered()
| inline |
Enable or disable a specific generator.
Definition at line 219 of file outputlist.h.
Reference m_outputCodeList.
setId()
| inline |
setStripIndentAmount()
| inline |
Definition at line 246 of file outputlist.h.
Reference OutputCodeIntf::setStripIndentAmount.
Referenced by OutputCodeRecorder::replay.
startCodeFragment()
| inline |
Definition at line 278 of file outputlist.h.
Reference OutputCodeIntf::startCodeFragment.
Referenced by MemberDefImpl::_writeMultiLineInitializer, ConceptDefImpl::writeDefinition, DefinitionImpl::writeInlineCode, VhdlDocGen::writeSource, FileDefImpl::writeSourceBody and writeXMLCodeBlock.
startCodeLine()
| inline |
Definition at line 263 of file outputlist.h.
Reference OutputCodeIntf::startCodeLine.
Referenced by FileCodeParser::parseCode.
startFold()
| inline |
Definition at line 284 of file outputlist.h.
Reference OutputCodeIntf::startFold.
startFontClass()
| inline |
Definition at line 269 of file outputlist.h.
Reference OutputCodeIntf::startFontClass.
Referenced by startFonts.
startSpecialComment()
| inline |
Definition at line 240 of file outputlist.h.
Reference OutputCodeIntf::startSpecialComment.
Referenced by OutputCodeRecorder::replay.
stripCodeComments()
| inline |
Definition at line 237 of file outputlist.h.
Reference OutputCodeIntf::stripCodeComments.
Referenced by CCodeParser::parseCode, FortranCodeParser::parseCode, PythonCodeParser::parseCode, VHDLCodeParser::parseCode and OutputCodeRecorder::replay.
writeCodeAnchor()
| inline |
Definition at line 275 of file outputlist.h.
Reference OutputCodeIntf::writeCodeAnchor.
Referenced by generateClassMemberLink, generateClassOrGlobalLink and getLinkInScope.
writeCodeLink()
| inline |
Definition at line 249 of file outputlist.h.
Reference OutputCodeIntf::writeCodeLink.
Referenced by writeMultiLineCodeLink, writeMultiLineCodeLink, writeMultiLineCodeLink and writeMultiLineCodeLink.
writeLineNumber()
| inline |
Definition at line 255 of file outputlist.h.
Reference OutputCodeIntf::writeLineNumber.
Referenced by FileCodeParser::parseCode.
writeTooltip()
| inline |
Definition at line 259 of file outputlist.h.
Reference OutputCodeIntf::writeTooltip.
Referenced by TooltipManager::writeTooltips.
Private Member Functions
foreach()
| inline |
Definition at line 292 of file outputlist.h.
Reference m_outputCodeList.
Private Member Attributes
m_id
|
m_outputCodeList
|
Definition at line 303 of file outputlist.h.
Referenced by add, add, clear, foreach, get and setEnabledFiltered.
The documentation for this class was generated from the following file:
Generated via doxygen2docusaurus by Doxygen 1.14.0.