const std::string& theHolderEntry)
{
TPrs3dPtr aPrs3d( thePrs3d );
- aPrs3d->Destroy();
+ thePrs3d->Destroy();
- aPrs3d->SetHolderEntry( theHolderEntry );
+ thePrs3d->SetHolderEntry( theHolderEntry );
myHolderMap[theHolderEntry].push_front(aPrs3d);
return thePrs3d;
}
struct TPrs3dPtr: SALOME::GenericObjPtr<ColoredPrs3d_i>
{
typedef SALOME::GenericObjPtr<ColoredPrs3d_i> TSuperClass;
- // Description:
- // Initialize smart pointer to given object.
+ //! Initialize smart pointer to given object.
TPrs3dPtr(ColoredPrs3d_i* r): TSuperClass(r) {}
- // Description:
- // Initialize smart pointer with a new reference to the same object
+ //! Initialize smart pointer with a new reference to the same object
// referenced by given smart pointer.
TPrs3dPtr(const SALOME::GenericObjPtrBase& r): TSuperClass(r) {}
- // Description:
- // Provides normal pointer target member access using operator ->.
- ColoredPrs3d_i* operator->() const
+ //! Get the contained pointer.
+ ColoredPrs3d_i* GetPointer() const
{
- ColoredPrs3d_i* aColoredPrs3d = TSuperClass::operator ->();
+ ColoredPrs3d_i* aColoredPrs3d = TSuperClass::GetPointer();
// To implement postponed restoring of the presentation
aColoredPrs3d->InitFromRestoringState();
return aColoredPrs3d;
}
+
+ //! Get the contained pointer.
+ operator ColoredPrs3d_i* () const
+ {
+ return this->GetPointer();
+ }
+
+ //! Provides normal pointer target member access using operator ->.
+ ColoredPrs3d_i* operator->() const
+ {
+ return this->GetPointer();
+ }
};
typedef std::deque<TPrs3dPtr> TLastVisitedPrsList;