35 #define PROPERTYPTRT_CC 37 #include "PropertyPtr.hh" 38 #include "ResourceManager.hh" 39 #include "PropertyDefines.hh" 43 template <
class PropT,
typename Entity>
46 ptr::shared_ptr<PropT>::get()->set_handle(_handle);
49 template <
class PropT,
typename Entity>
57 if(resMan_ && !persistent() && ptr::shared_ptr<PropT>::use_count() == 2) {
62 template <
class PropT,
typename Entity>
66 ptr::shared_ptr<PropT>::get()->data_vector() = _other->get()->data_vector();
69 template <
class PropT,
typename Entity>
73 ptr::shared_ptr<PropT>::get()->data_vector() = std::move(_other->get()->data_vector());
76 template <
class PropT,
typename Entity>
78 ptr::shared_ptr<PropT>::get()->resize(_size);
81 template <
class PropT,
typename Entity>
83 return ptr::shared_ptr<PropT>::get()->name();
86 template <
class PropT,
typename Entity>
88 ptr::shared_ptr<PropT>::get()->delete_element(_idx);
91 template <
class PropT,
typename Entity>
93 ptr::shared_ptr<PropT>::get()->swap(_idx0, _idx1);
96 template <
class PropT,
typename Entity>
98 ptr::shared_ptr<PropT>::get()->copy(_src_idx, _dst_idx);
101 template <
class PropT,
typename Entity>
103 return ptr::shared_ptr<PropT>::get()->set_handle(_handle);
106 template <
class PropT,
typename Entity>
108 return ptr::shared_ptr<PropT>::get()->handle();
111 template <
class PropT,
typename Entity>
113 ptr::shared_ptr<PropT>::get()->delete_multiple_entries(_tags);
PropertyPtr()
Constructor.