Replace "typedef SMDS_Position* SMDS_PositionPtr" by a smart pointer allowing implicit casting to derived types; e.g. More...
#include <SMDS_Position.hxx>
Public Member Functions | |
SMDS_Ptr (T *pos=(T *) 0, bool isOwner=true) | |
SMDS_Ptr (const SMDS_Ptr &from) | |
SMDS_Ptr & | operator= (const SMDS_Ptr &from) |
template<class Y > | |
SMDS_Ptr (const SMDS_Ptr< Y > &base) | |
~SMDS_Ptr () | |
operator bool () const | |
bool | IsOwner () const |
T * | operator-> () |
STL member. More... | |
Data Fields | |
T | ptr |
STL member. More... | |
Private Attributes | |
bool | myIsOwner |
Replace "typedef SMDS_Position* SMDS_PositionPtr" by a smart pointer allowing implicit casting to derived types; e.g.
if ( SMDS_FacePositionPtr fPos = node->GetPosition() ) fPos->SetUParameter(0);
References SMDS_Ptr< T >::IsOwner().
References SMDS_Ptr< T >::myIsOwner.
bool SMDS_Ptr< T >::IsOwner | ( | ) | const |
References SMDS_Ptr< T >::myIsOwner.
Referenced by SMDS_Ptr< T >::SMDS_Ptr().
SMDS_Ptr< T >::operator bool | ( | ) | const |
|
inherited |
STL member.
References SMDS_Ptr< T >::myIsOwner.
|
private |
Referenced by SMDS_Ptr< T >::IsOwner(), SMDS_Ptr< T >::operator=(), and SMDS_Ptr< T >::~SMDS_Ptr().
|
inherited |
STL member.