|
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 DString &s) |
| void | stripCodeComments (bool b) |
| void | startSpecialComment () |
| void | endSpecialComment () |
| void | setStripIndentAmount (size_t amount) |
| void | writeCodeLink (CodeSymbolType type, const DString &ref, const DString &file, const DString &anchor, const DString &name, const DString &tooltip) |
| void | writeLineNumber (const DString &ref, const DString &file, const DString &anchor, int lineNumber, bool writeLineAnchor) |
| void | writeTooltip (const DString &id, const DocLinkInfo &docInfo, const DString &decl, const DString &desc, const SourceLinkInfo &defInfo, const SourceLinkInfo &declInfo) |
| void | startCodeLine (int lineNr) |
| void | endCodeLine () |
| void | startFontClass (const DString &c) |
| void | endFontClass () |
| void | writeCodeAnchor (const DString &name) |
| void | startCodeFragment (const DString &style) |
| void | endCodeFragment (const DString &style) |
| void | startFold (int lineNr, const DString &startMarker, const DString &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 161 of file outputlist.h.
| using OutputCodeList::OutputCodeIntfPtr = std::unique_ptr<OutputCodeIntf> |
Definition at line 164 of file outputlist.h.
|
inline |
Add a code generator to the list, using a syntax similar to std::make_unique<T>().
Definition at line 199 of file outputlist.h.
References add(), and m_outputCodeList.
|
inline |
Definition at line 192 of file outputlist.h.
References m_outputCodeList.
Referenced by add(), DocbookGenerator::addCodeGen(), HtmlGenerator::addCodeGen(), LatexGenerator::addCodeGen(), ManGenerator::addCodeGen(), RTFGenerator::addCodeGen(), CodeFragmentManager::Private::FragmentInfo::FragmentInfo(), generateBriefDoc(), generateHtmlOutput(), generateXMLForConcept(), getSQLDocBlock(), CodeFragmentManager::parseCodeFragment(), parseCommentAsHtml(), FileDefImpl::parseSource(), FileDefImpl::writeSourceBody(), writeXMLCodeBlock(), and writeXMLDocBlock().
|
inline |
Definition at line 225 of file outputlist.h.
References m_outputCodeList.
Referenced by OutputList::refreshCodeGenerators().
|
inline |
Definition at line 232 of file outputlist.h.
References OutputCodeIntf::codify().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 279 of file outputlist.h.
References OutputCodeIntf::endCodeFragment().
Referenced by generateXMLForConcept(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), and writeXMLCodeBlock().
|
inline |
Definition at line 264 of file outputlist.h.
References OutputCodeIntf::endCodeLine().
Referenced by FileCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 285 of file outputlist.h.
References OutputCodeIntf::endFold().
|
inline |
Definition at line 270 of file outputlist.h.
References OutputCodeIntf::endFontClass().
|
inline |
Definition at line 241 of file outputlist.h.
References OutputCodeIntf::endSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inlineprivate |
Definition at line 290 of file outputlist.h.
References m_outputCodeList.
|
inline |
Returns a pointer to a specific generator in the list.
Definition at line 207 of file outputlist.h.
References m_outputCodeList.
|
inline |
Definition at line 189 of file outputlist.h.
References m_id.
Referenced by setId(), and TooltipManager::writeTooltips().
|
inline |
Enable or disable a specific generator.
Definition at line 217 of file outputlist.h.
References m_outputCodeList.
Referenced by OutputList::syncEnabled().
|
inline |
Definition at line 190 of file outputlist.h.
Referenced by OutputList::OutputList(), OutputList::refreshCodeGenerators(), and OutputList::startFile().
|
inline |
Definition at line 244 of file outputlist.h.
References OutputCodeIntf::setStripIndentAmount().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 276 of file outputlist.h.
References OutputCodeIntf::startCodeFragment().
Referenced by MemberDefImpl::_writeMultiLineInitializer(), generateXMLForConcept(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), HtmlDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), LatexDocVisitor::operator()(), DefinitionImpl::writeInlineCode(), VhdlDocGen::writeSource(), FileDefImpl::writeSourceBody(), and writeXMLCodeBlock().
|
inline |
Definition at line 261 of file outputlist.h.
References OutputCodeIntf::startCodeLine().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 282 of file outputlist.h.
References OutputCodeIntf::startFold().
|
inline |
Definition at line 267 of file outputlist.h.
References OutputCodeIntf::startFontClass().
Referenced by startFonts().
|
inline |
Definition at line 238 of file outputlist.h.
References OutputCodeIntf::startSpecialComment().
Referenced by OutputCodeRecorder::replay().
|
inline |
Definition at line 235 of file outputlist.h.
References OutputCodeIntf::stripCodeComments().
Referenced by CCodeParser::parseCode(), FortranCodeParser::parseCode(), PythonCodeParser::parseCode(), VHDLCodeParser::parseCode(), and OutputCodeRecorder::replay().
|
inline |
Definition at line 273 of file outputlist.h.
References OutputCodeIntf::writeCodeAnchor().
Referenced by generateClassMemberLink(), generateClassOrGlobalLink(), and getLinkInScope().
|
inline |
Definition at line 247 of file outputlist.h.
References OutputCodeIntf::writeCodeLink().
Referenced by writeMultiLineCodeLink(), writeMultiLineCodeLink(), writeMultiLineCodeLink(), and writeMultiLineCodeLink().
|
inline |
Definition at line 253 of file outputlist.h.
References OutputCodeIntf::writeLineNumber().
Referenced by FileCodeParser::parseCode().
|
inline |
Definition at line 257 of file outputlist.h.
References OutputCodeIntf::writeTooltip().
Referenced by TooltipManager::writeTooltips().
|
private |
Definition at line 302 of file outputlist.h.
|
private |
Definition at line 301 of file outputlist.h.
Referenced by add(), add(), clear(), foreach(), get(), and setEnabledFiltered().