26 #include <osg/ref_ptr> 217 return size_t(keyPtr.
Get());
224 template<
class _Key>
struct hash<
osg::ref_ptr<_Key> >
228 return size_t(keyPtr.
Get());
SmrtPtr()
Default constructor.
Smart pointer for handling referenced counted objects.
size_t operator()(const trBase::SmrtPtr< _Key > &keyPtr) const
SmrtPtr(T *t)
Constructor.
bool operator!() const
Logical negation operator.
This Hash class and its implementations are taken from the libstdc++ hash_fun.h.
size_t operator()(const trBase::SmrtPtr< _Key > &keyPtr) const
T * operator->() const
Access to the internal pointer.
T * Release()
Release the pointer from ownership by this SmrtPtr<>, decrementing the objects refenced count to prev...
void Swap(SmrtPtr &sp)
Swaps the internal pointer of this and the passed in SmartPtr.
T & operator*() const
Dereferences the internal pointer.
osg::ref_ptr< T > mOSGSmartPtr
bool Valid() const
Returns True if the smart pointer has a valid internal pointer set.
Namespace that holds various utility classes for the engine.
T * Get() const
Returns the stored internal pointer.
SmrtPtr(const SmrtPtr &smPt)
Copy constructor.
friend std::ostream & operator<<(std::ostream &ios, const SmrtPtr &smPt)
Prints out the memory address of the held pointer.