MD::details::AlgoVisitor
Classes |
Public Member Functions |
Protected Member Functions |
Protected Attributes |
List of all members
MD::details::AlgoVisitor< Trait > Class Template Reference
#include <algo.h>
Inheritance diagram for MD::details::AlgoVisitor< Trait >:
Classes | |
struct | IncrementNestingLevel |
Public Member Functions | |
AlgoVisitor (unsigned int mnl, const typename Trait::template Vector< ItemType > &t, ItemFunctor< Trait > f) | |
~AlgoVisitor () override=default | |
virtual void | walk (std::shared_ptr< Document< Trait > > doc) |
Public Member Functions inherited from MD::Visitor< Trait > | |
Visitor ()=default | |
virtual | ~Visitor ()=default |
void | process (std::shared_ptr< Document< Trait > > d) |
Protected Member Functions | |
void | onAddLineEnding () override |
void | onAnchor (Anchor< Trait > *a) override |
void | onBlockquote (Blockquote< Trait > *b) override |
void | onCode (Code< Trait > *c) override |
void | onFootnote (Footnote< Trait > *f) override |
void | onFootnoteRef (FootnoteRef< Trait > *ref) override |
virtual void | onFootnotes (std::shared_ptr< Document< Trait > > doc) |
void | onHeading (Heading< Trait > *h) override |
void | onHorizontalLine (HorizontalLine< Trait > *l) override |
void | onImage (Image< Trait > *i) override |
void | onInlineCode (Code< Trait > *c) override |
void | onLineBreak (LineBreak< Trait > *l) override |
void | onLink (Link< Trait > *l) override |
void | onList (List< Trait > *l) override |
void | onListItem (ListItem< Trait > *i, bool) override |
void | onMath (Math< Trait > *m) override |
void | onParagraph (Paragraph< Trait > *p, bool) override |
void | onRawHtml (RawHtml< Trait > *h) override |
void | onTable (Table< Trait > *t) override |
void | onTableCell (TableCell< Trait > *c) override |
void | onText (Text< Trait > *t) override |
void | onUserDefined (Item< Trait > *i) override |
Protected Member Functions inherited from MD::Visitor< Trait > |
Protected Attributes | |
unsigned int | m_currentNestingLevel = 0 |
ItemFunctor< Trait > | m_func = {} |
unsigned int | m_maxNestingLevel = 0 |
const Trait::template Vector< ItemType > & | m_types |
Protected Attributes inherited from MD::Visitor< Trait > | |
Trait::template Vector< typename Trait::String > | m_anchors |
std::shared_ptr< Document< Trait > > | m_doc |
Detailed Description
template<class Trait>
class MD::details::AlgoVisitor< Trait >
class MD::details::AlgoVisitor< Trait >
Visitor for algorithms.
Constructor & Destructor Documentation
◆ AlgoVisitor()
template<class Trait >
|
inline |
◆ ~AlgoVisitor()
template<class Trait >
|
overridedefault |
Member Function Documentation
◆ onAddLineEnding()
template<class Trait >
|
inlineoverrideprotectedvirtual |
For some generator it's important to keep line endings like they were in Markdown.
So onParagraph() method invokes this method when necessary to add line ending.
Implements MD::Visitor< Trait >.
◆ onAnchor()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onBlockquote()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onCode()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onFootnote()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onFootnoteRef()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onFootnotes()
template<class Trait >
|
inlineprotectedvirtual |
◆ onHeading()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onHorizontalLine()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onImage()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onInlineCode()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onLineBreak()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onLink()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onList()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onListItem()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onMath()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onParagraph()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onRawHtml()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onTable()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onTableCell()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onText()
template<class Trait >
|
inlineoverrideprotectedvirtual |
◆ onUserDefined()
template<class Trait >
|
inlineoverrideprotectedvirtual |
Process user defined item type.
Reimplemented from MD::Visitor< Trait >.
◆ walk()
template<class Trait >
|
inlinevirtual |
Member Data Documentation
◆ m_currentNestingLevel
template<class Trait >
|
protected |
◆ m_func
template<class Trait >
|
protected |
◆ m_maxNestingLevel
template<class Trait >
|
protected |
◆ m_types
template<class Trait >
|
protected |
The documentation for this class was generated from the following file:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:19:15 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.