17 #ifndef AGXDATA_ENTITYREF_H
18 #define AGXDATA_ENTITYREF_H
33 template <
typename PtrT>
56 template <
typename PtrT>
59 template <
typename PtrT>
65 template <
typename PtrT>
71 template <
typename PtrT>
77 template <
typename PtrT>
83 template <
typename PtrT>
90 typename PtrT::InstanceType instance = this->instance();
92 instance.referenceCount()++;
93 instance.observers().push_back(
this);
97 template <
typename PtrT>
102 typename PtrT::InstanceType instance = this->instance();
112 size_t index = instance.observers().find(
this);
113 agxAssert(index != instance.observers().size());
114 instance.observers().eraseFast(index);
117 refCounter = refCount;
128 template <
typename PtrT>
137 template <
typename PtrT>
141 PtrT::operator=(other);