35 #define PROPERTYPTRT_CC 37 #include "PropertyPtr.hh" 38 #include "ResourceManager.hh" 39 #include "PropertyDefines.hh" 43 template <
class PropT,
class HandleT>
46 ptr::shared_ptr<PropT>::get()->set_handle(_handle);
49 template <
class PropT,
class HandleT>
57 if(!locked() && !persistent() && ptr::shared_ptr<PropT>::use_count() == 2) {
58 resMan_.release_property(
HandleT(handle().idx()));
63 template <
class PropT,
class HandleT>
65 ptr::shared_ptr<PropT>::get()->resize(_size);
68 template <
class PropT,
class HandleT>
70 return ptr::shared_ptr<PropT>::get()->name();
73 template <
class PropT,
class HandleT>
75 ptr::shared_ptr<PropT>::get()->delete_element(_idx);
78 template <
class PropT,
class HandleT>
80 ptr::shared_ptr<PropT>::get()->swap(_idx0, _idx1);
83 template <
class PropT,
class HandleT>
85 ptr::shared_ptr<PropT>::get()->copy(_src_idx, _dst_idx);
88 template <
class PropT,
class HandleT>
90 return ptr::shared_ptr<PropT>::get()->set_handle(_handle);
93 template <
class PropT,
class HandleT>
95 return ptr::shared_ptr<PropT>::get()->handle();
98 template <
class PropT,
class HandleT>
100 ptr::shared_ptr<PropT>::get()->delete_multiple_entries(_tags);
PropertyPtr(PropT *_ptr, ResourceManager &_resMan, HandleT _handle)
Constructor.