1#ifndef TEMPERARYCACHER_H
2#define TEMPERARYCACHER_H
24 void ensub_labels(
const QString& label,
const QString& text);
35 void clear() { label_context_map.clear(); }
41 QStringList
labels()
const {
return label_context_map.keys(); }
48 std::optional<QString>
query(
const QString& label);
51 QMap<QString, QString> label_context_map;
TemperaryCacher cached the tmp Markdown holder.
Definition TemperaryCacher.h:10
QStringList labels() const
label managings
Definition TemperaryCacher.h:41
Q_DISABLE_COPY_MOVE(TemperaryCacher)
disabled the TemperaryCacher
std::optional< QString > query(const QString &label)
query the context
Definition TemperaryCacher.cpp:11
void remove_label(const QString &label)
remove the management
Definition TemperaryCacher.cpp:7
TemperaryCacher()=default
Construct a new Temperary Cacher object.
void clear()
clear the holdings
Definition TemperaryCacher.h:35
void ensub_labels(const QString &label, const QString &text)
push the label <-> context pair into management
Definition TemperaryCacher.cpp:3