MD::Anchor Class

template <typename Trait> class MD::Anchor

Just an anchor. More...

Header: #include <md4qt/doc.h>
CMake: find_package(md4qt REQUIRED COMPONENTS md4qt)
target_link_libraries(mytarget PRIVATE md4qt::md4qt)
Inherits: MD::Item

Public Functions

std::shared_ptr<MD::Item<Trait>> clone(MD::Document<Trait> *doc = nullptr) const override
const typename Trait::String &label() const
MD::ItemType type() const override

Detailed Description

Member Function Documentation

std::shared_ptr<MD::Item<Trait>> Anchor::clone(MD::Document<Trait> *doc = nullptr) const

Clone this anchor.

doc Parent of new item.

const typename Trait::String &Anchor::label() const

Returns label of this anchor.

MD::ItemType Anchor::type() const

Returns item type.