Back to index

salome-smesh  6.5.0
Public Member Functions
TVTKSmartPtr< T > Class Template Reference

#include <SMESH_ActorDef.h>

List of all members.

Public Member Functions

 TVTKSmartPtr ()
 TVTKSmartPtr (T *r, bool theIsOwner=false)
TVTKSmartPtroperator() (T *r, bool theIsOwner=false)
TVTKSmartPtroperator= (T *r)
T * Get () const

Detailed Description

template<class T>
class TVTKSmartPtr< T >

Definition at line 37 of file SMESH_ActorDef.h.


Constructor & Destructor Documentation

template<class T >
TVTKSmartPtr< T >::TVTKSmartPtr ( ) [inline]

Definition at line 40 of file SMESH_ActorDef.h.

{}
template<class T >
TVTKSmartPtr< T >::TVTKSmartPtr ( T *  r,
bool  theIsOwner = false 
) [inline]

Definition at line 41 of file SMESH_ActorDef.h.

                                             : vtkSmartPointer<T>(r) { 
    if(r && theIsOwner) 
      r->Delete();
  }

Member Function Documentation

template<class T >
T* TVTKSmartPtr< T >::Get ( ) const [inline]

Definition at line 52 of file SMESH_ActorDef.h.

{ return this->GetPointer();}
template<class T >
TVTKSmartPtr& TVTKSmartPtr< T >::operator() ( T *  r,
bool  theIsOwner = false 
) [inline]

Definition at line 45 of file SMESH_ActorDef.h.

                                                         { 
    vtkSmartPointer<T>::operator=(r); 
    if(r && theIsOwner) 
      r->Delete();
    return *this;
  }

Here is the call graph for this function:

template<class T >
TVTKSmartPtr& TVTKSmartPtr< T >::operator= ( T *  r) [inline]

Definition at line 51 of file SMESH_ActorDef.h.

{ vtkSmartPointer<T>::operator=(r); return *this;}

Here is the caller graph for this function:


The documentation for this class was generated from the following file: