Back to index

salome-geom  6.5.0
Public Member Functions
GEOM_SmartPtr< T > Class Template Reference

#include <GEOM_SmartPtr.h>

Inheritance diagram for GEOM_SmartPtr< T >:
Inheritance graph
[legend]
Collaboration diagram for GEOM_SmartPtr< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 GEOM_SmartPtr ()
 GEOM_SmartPtr (T *r, bool theIsOwner=false)
GEOM_SmartPtroperator() (T *r, bool theIsOwner=false)
GEOM_SmartPtroperator= (T *r)
T * Get () const

Detailed Description

template<class T>
class GEOM_SmartPtr< T >

Definition at line 26 of file GEOM_SmartPtr.h.


Constructor & Destructor Documentation

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

Definition at line 29 of file GEOM_SmartPtr.h.

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

Definition at line 30 of file GEOM_SmartPtr.h.

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

Member Function Documentation

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

Definition at line 41 of file GEOM_SmartPtr.h.

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

Definition at line 34 of file GEOM_SmartPtr.h.

                                                          { 
    vtkSmartPointer<T>::operator=(r); 
    if(r && theIsOwner) 
      r->Delete();
    return *this;
  }
template<class T>
GEOM_SmartPtr& GEOM_SmartPtr< T >::operator= ( T *  r) [inline]

Definition at line 40 of file GEOM_SmartPtr.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: