Nui
Loading...
Searching...
No Matches
nui
include
nui
frontend
elements
detail
fragment_context.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <vector>
4
#include <memory>
5
6
namespace
Nui::Detail
7
{
8
template
<
typename
ElementT>
9
class
FragmentContext
10
{
11
public
:
12
void
clear
()
13
{
14
fragmentElements_.clear();
15
}
16
17
void
push
(std::shared_ptr<ElementT>
weak
)
18
{
19
fragmentElements_.emplace_back(std::move(
weak
));
20
}
21
22
private
:
23
std::vector<std::shared_ptr<ElementT>> fragmentElements_;
24
};
25
}
Nui::Detail::FragmentContext
Definition
fragment_context.hpp:10
Nui::Detail::FragmentContext::push
void push(std::shared_ptr< ElementT > weak)
Definition
fragment_context.hpp:17
Nui::Detail::FragmentContext::clear
void clear()
Definition
fragment_context.hpp:12
Nui::Detail
Definition
rpc_hub.hpp:23
Nui::Detail::extractJsonMember
static constexpr auto extractJsonMember(nlohmann::json const &json) -> decltype(auto)
Definition
rpc_hub.hpp:29
Generated by
1.9.8