| | 130 | struct NoRefCountPolicy |
|---|
| | 131 | { |
|---|
| | 132 | static void addRef(FieldContainerPtrConst) |
|---|
| | 133 | { |
|---|
| | 134 | } |
|---|
| | 135 | static void subRef(FieldContainerPtrConst) |
|---|
| | 136 | { |
|---|
| | 137 | } |
|---|
| | 138 | |
|---|
| | 139 | template <class StoreT, class SourceT> |
|---|
| | 140 | static void setRefd(StoreT &pTarget, |
|---|
| | 141 | SourceT pSource) |
|---|
| | 142 | { |
|---|
| | 143 | pTarget = pSource; |
|---|
| | 144 | } |
|---|
| | 145 | |
|---|
| | 146 | template<class T> |
|---|
| | 147 | static T *validate(T *pIn) |
|---|
| | 148 | { |
|---|
| | 149 | return pIn; |
|---|
| | 150 | } |
|---|
| | 151 | |
|---|
| | 152 | template<class T> |
|---|
| | 153 | static T &deref(T *pIn) |
|---|
| | 154 | { |
|---|
| | 155 | return *pIn; |
|---|
| | 156 | } |
|---|
| | 157 | |
|---|
| | 158 | template<class T, class U> |
|---|
| | 159 | static void transitRefd(T *&pOut, T *&pIn) |
|---|
| | 160 | { |
|---|
| | 161 | OSG_ASSERT(false); |
|---|
| | 162 | } |
|---|
| | 163 | }; |
|---|
| | 164 | |
|---|