Md4qt
poscache.h
Go to the documentation of this file.
89 for (auto it = doc->footnotesMap().cbegin(), last = doc->footnotesMap().cend(); it != last; ++it) {
215 details::PosRange<Trait> r{t->openStyles().empty() ? t->startColumn() : t->openStyles().front().startColumn(),
278 auto endColumn = c->isFensedCode() && c->endDelim().endColumn() > -1 ? c->endDelim().endColumn() : c->endColumn();
~PosCache() override=default
void onParagraph(Paragraph< Trait > *p, bool wrap) override
Cache paragraph.
Definition poscache.h:252
void onHorizontalLine(HorizontalLine< Trait > *l) override
Cache horizontal line.
Definition poscache.h:382
void findFirstInCache(const std::vector< details::PosRange< Trait > > &vec, const details::PosRange< Trait > &pos, Items &res) const
Find in cache items with the given position with all parents.
Definition poscache.h:140
void onAddLineEnding() override
For some generator it's important to keep line endings like they were in Markdown.
Definition poscache.h:208
PosCache()=default
void insertInCache(const details::PosRange< Trait > &item, bool sort=false)
Insert in cache.
Definition poscache.h:160
void onFootnoteRef(FootnoteRef< Trait > *ref) override
Cache footnote reference.
Definition poscache.h:448
details::PosRange< Trait > * findInCache(std::vector< details::PosRange< Trait > > &vec, const details::PosRange< Trait > &pos) const
Find in cache an item with the given position.
Definition poscache.h:118
typename Trait::template Vector< Item< Trait > * > Items
Vector with items, where front is a top-level item, and back is most nested child.
Definition poscache.h:101
Items findFirstInCache(const MD::WithPosition &pos) const
Definition poscache.h:104
virtual void initialize(std::shared_ptr< MD::Document< Trait > > doc)
Initialize m_cache with the give document.
Definition poscache.h:82
void process(std::shared_ptr< Document< Trait > > d)
Walk through the document.
Definition visitor.h:33
bool operator<(const PosRange< Trait > &l, const PosRange< Trait > &r)
Definition poscache.h:60
bool operator==(const PosRange< Trait > &l, const PosRange< Trait > &r)
Definition poscache.h:52
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.