Logo Search packages:      
Sourcecode: pwlib version File versions  Download package

template<class T>
PSafePtr& PSafePtr< T >::operator= ( PINDEX  idx  )  [inline]

Set the new pointer to a collection index. This will set the pointer to the new object to the index entry in the colelction that the pointer was created with. The old object pointed to will be unlocked and dereferenced and the new object referenced and set to the same locking mode as the previous pointer value.

If the idx'th object is not in the collection, then the safe pointer is set to NULL.

Definition at line 729 of file safecoll.h.

      {
        Assign(idx);
        return *this;
      }


Generated by  Doxygen 1.6.0   Back to index