Blender
V5.3
source
blender
blenkernel
BKE_recents.hh
Go to the documentation of this file.
1
/* SPDX-FileCopyrightText: 2026 Blender Authors
2
*
3
* SPDX-License-Identifier: GPL-2.0-or-later */
4
48
49
#pragma once
50
51
#include <string>
52
53
namespace
blender::recents
{
54
55
class
Section
{
56
std::string section_;
57
58
public
:
59
explicit
Section
(std::string section) : section_(std::move(section)) {}
60
61
template
<
typename
T>
T
get
(
const
std::string &item_key)
const
;
62
template
<
typename
T>
void
set
(
const
std::string &item_key,
const
T
&value);
63
64
void
remove
(
const
std::string &item_key);
65
void
remove_section
();
66
};
67
68
void
init
();
69
void
init_async
();
70
void
ensure_init
();
71
bool
save
();
72
73
}
// namespace blender::recents
blender::recents::Section::get
T get(const std::string &item_key) const
Definition
recents.cc:224
blender::recents::Section::Section
Section(std::string section)
Definition
BKE_recents.hh:59
blender::recents::Section::set
void set(const std::string &item_key, const T &value)
Definition
recents.cc:285
blender::recents::Section::remove_section
void remove_section()
Definition
recents.cc:336
blender::recents::Section::remove
void remove(const std::string &item_key)
Definition
recents.cc:311
T
#define T
Definition
mball_tessellate.cc:277
blender::bke::subdiv::init
void init()
Definition
subdiv.cc:35
blender::recents
Definition
BKE_recents.hh:53
blender::recents::init_async
void init_async()
Definition
recents.cc:124
blender::recents::ensure_init
void ensure_init()
Definition
recents.cc:129
blender::recents::save
bool save()
Definition
recents.cc:149
Generated on
for Blender by
doxygen
1.18.0