Nui
fragment_context.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 namespace Nui::Detail
4 {
5  template <typename ElementT>
7  {
8  public:
9  void clear()
10  {
11  fragmentElements_.clear();
12  }
13 
14  void push(std::shared_ptr<ElementT> weak)
15  {
16  fragmentElements_.emplace_back(std::move(weak));
17  }
18 
19  private:
20  std::vector<std::shared_ptr<ElementT>> fragmentElements_;
21  };
22 }
Definition: fragment_context.hpp:7
void push(std::shared_ptr< ElementT > weak)
Definition: fragment_context.hpp:14
void clear()
Definition: fragment_context.hpp:9
Definition: rpc_hub.hpp:23