MD::Document
MD::Document< Trait > Class Template Referencefinal
#include <doc.h>
Inheritance diagram for MD::Document< Trait >:
Public Types | |
using | Footnotes = typename Trait::template Map<typename Trait::String, FootnoteSharedPointer> |
using | FootnoteSharedPointer = std::shared_ptr<Footnote<Trait>> |
using | HeadingSharedPointer = std::shared_ptr<Heading<Trait>> |
using | LabeledHeadings = typename Trait::template Map<typename Trait::String, HeadingSharedPointer> |
using | LabeledLinks = typename Trait::template Map<typename Trait::String, LinkSharedPointer> |
using | LinkSharedPointer = std::shared_ptr<Link<Trait>> |
Public Types inherited from MD::Block< Trait > | |
using | Items = typename Trait::template Vector<ItemSharedPointer> |
using | ItemSharedPointer = std::shared_ptr<Item<Trait>> |
Public Member Functions | |
Document ()=default | |
~Document () override=default | |
std::shared_ptr< Item< Trait > > | clone (Document< Trait > *doc=nullptr) const override |
const Footnotes & | footnotesMap () const |
void | insertFootnote (const typename Trait::String &id, FootnoteSharedPointer fn) |
void | insertLabeledHeading (const typename Trait::String &label, HeadingSharedPointer h) |
void | insertLabeledLink (const typename Trait::String &label, LinkSharedPointer lnk) |
const LabeledHeadings & | labeledHeadings () const |
const LabeledLinks & | labeledLinks () const |
ItemType | type () const override |
Public Member Functions inherited from MD::Block< Trait > | |
~Block () override=default | |
void | appendItem (ItemSharedPointer i) |
void | applyBlock (const Block< Trait > &other, Document< Trait > *doc=nullptr) |
ItemSharedPointer | getItemAt (long long int idx) const |
void | insertItem (long long int idx, ItemSharedPointer i) |
bool | isEmpty () const |
const Items & | items () const |
void | removeItemAt (long long int idx) |
Public Member Functions inherited from MD::Item< Trait > | |
~Item () override=default | |
Public Member Functions inherited from MD::WithPosition | |
WithPosition ()=default | |
WithPosition (long long int startColumn, long long int startLine, long long int endColumn, long long int endLine) | |
virtual | ~WithPosition ()=default |
void | applyPositions (const WithPosition &other) |
long long int | endColumn () const |
long long int | endLine () const |
void | setEndColumn (long long int c) |
void | setEndLine (long long int l) |
void | setStartColumn (long long int c) |
void | setStartLine (long long int l) |
long long int | startColumn () const |
long long int | startLine () const |
Additional Inherited Members | |
Protected Member Functions inherited from MD::Block< Trait > | |
Block ()=default | |
Protected Member Functions inherited from MD::Item< Trait > | |
Item ()=default | |
Detailed Description
Member Typedef Documentation
◆ Footnotes
template<class Trait >
using MD::Document< Trait >::Footnotes = typename Trait::template Map<typename Trait::String, FootnoteSharedPointer> |
◆ FootnoteSharedPointer
template<class Trait >
using MD::Document< Trait >::FootnoteSharedPointer = std::shared_ptr<Footnote<Trait>> |
◆ HeadingSharedPointer
template<class Trait >
using MD::Document< Trait >::HeadingSharedPointer = std::shared_ptr<Heading<Trait>> |
◆ LabeledHeadings
template<class Trait >
using MD::Document< Trait >::LabeledHeadings = typename Trait::template Map<typename Trait::String, HeadingSharedPointer> |
◆ LabeledLinks
template<class Trait >
using MD::Document< Trait >::LabeledLinks = typename Trait::template Map<typename Trait::String, LinkSharedPointer> |
◆ LinkSharedPointer
template<class Trait >
using MD::Document< Trait >::LinkSharedPointer = std::shared_ptr<Link<Trait>> |
Constructor & Destructor Documentation
◆ Document()
template<class Trait >
|
default |
◆ ~Document()
template<class Trait >
|
overridedefault |
Member Function Documentation
◆ clone()
template<class Trait >
|
inlineoverridevirtual |
◆ footnotesMap()
template<class Trait >
|
inline |
◆ insertFootnote()
template<class Trait >
|
inline |
◆ insertLabeledHeading()
template<class Trait >
|
inline |
◆ insertLabeledLink()
template<class Trait >
|
inline |
◆ labeledHeadings()
template<class Trait >
|
inline |
◆ labeledLinks()
template<class Trait >
|
inline |
◆ type()
template<class Trait >
|
inlineoverridevirtual |
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 Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2024 The KDE developers.
Generated on Wed Nov 6 2024 12:12:28 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.