Nui
Loading...
Searching...
No Matches
fragment_context.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <vector>
4#include <memory>
5
6namespace Nui::Detail
7{
8 template <typename ElementT>
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}
Definition fragment_context.hpp:10
void push(std::shared_ptr< ElementT > weak)
Definition fragment_context.hpp:17
void clear()
Definition fragment_context.hpp:12
Definition rpc_hub.hpp:23
static constexpr auto extractJsonMember(nlohmann::json const &json) -> decltype(auto)
Definition rpc_hub.hpp:29