29 #ifndef GLI_COW_PTR_INCLUDED
30 #define GLI_COW_PTR_INCLUDED
49 SharedPtr(CowPtr.Pointer)
56 this->SharedPtr = CowPtr.SharedPtr;
62 return *this->SharedPtr;
68 return *this->SharedPtr;
73 return this->SharedPtr.operator->();
79 return this->SharedPtr.operator->();
85 T* Tmp = this->SharedPtr.get();
86 if(!(Tmp == 0 || this->SharedPtr.unique()))
90 shared_ptr<T> SharedPtr;
94 #endif//GLI_COW_PTR_INCLUDED
T const & operator*() const
cow_ptr(shared_ptr< T > const &SharedPtr)
T const * operator->() const
OpenGL Image (gli.g-truc.net)
cow_ptr & operator=(cow_ptr< T > const &CowPtr)
cow_ptr(cow_ptr< T > const &CowPtr)