Loading...
Searching...
No Matches
MapCopy.hpp
1#pragma once
2#include <score/model/EntityMap.hpp>
3
4#include <vector>
5
6template <typename T, typename M, bool B>
7std::vector<T*> shallow_copy(const IdContainer<T, M, B>& m)
8{
9 return m.as_vec();
10}
11
12template <typename T, bool B>
13std::vector<T*> shallow_copy(const score::EntityMap<T, B>& m)
14{
15 return shallow_copy(m.map());
16}
A map to access child objects through their id.
Definition IdentifiedObjectMap.hpp:16
The EntityMap class.
Definition EntityMap.hpp:36