Back to index

salome-gui  6.5.0
Classes | Defines | Functions
SUIT_SmartPtr.h File Reference
#include "SUIT.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

protocol  SUIT_EXPORT
 Provide support QtxAction. More...
class  SmartPtr< T >
 Template class that provides automatic casting for hold RefCount based objects. More...

Defines

#define SMART(C)   SmartPtr<C>
 Define macros SMART( C ) - same as SmartPtr(C), where C - class object.

Functions

template<class T1 , class T2 >
 SMART (T1) downcast(SMART(T2)&t)
 casting class T2 to class T1

Define Documentation

#define SMART (   C)    SmartPtr<C>

Define macros SMART( C ) - same as SmartPtr(C), where C - class object.

Definition at line 126 of file SUIT_SmartPtr.h.


Function Documentation

template<class T1 , class T2 >
SMART ( T1  )

casting class T2 to class T1

Definition at line 128 of file SUIT_SmartPtr.h.

{
  return SMART(T1)(t.get());
}