ACF $AcfVersion:0$
Public Member Functions | Protected Member Functions | List of all members
istd::TPointerBase< Type > Class Template Reference

Implementation of pointer wrapper. More...

#include <TPointerBase.h>

Inheritance diagram for istd::TPointerBase< Type >:
iprm::TParamsPtrBase< const IParamsSet, const ParameterInterace > istd::TDelPtr< icomp::CCompositePackageStaticInfo > istd::TDelPtr< icomp::CCompositeComponentStaticInfo > istd::TDelPtr< IRegistryElement > istd::TDelPtr< iser::IObject > istd::TDelPtr< iser::CMemoryWriteArchive > istd::TDelPtr< icmm::IColorModel > istd::TDelPtr< ilog::CStandardStreamBridge > istd::TDelPtr< iqtgui::CHierarchicalCommand > istd::TDelPtr< icomp::IComponentStaticInfo > istd::TDelPtr< QSettings > istd::TDelPtr< QTextBrowser > istd::TDelPtr< iqtgui::CGuiComponentDialog > istd::TDelPtr< ProgressObserver > istd::TDelPtr< QSharedMemory > istd::TDelPtr< QApplication > istd::TDelPtr< QMainWindow > istd::TDelPtr< QWidget > istd::TDelPtr< QSystemTrayIcon > istd::TDelPtr< QMenuBar > istd::TDelPtr< QToolBar > istd::TDelPtr< QLabel > istd::TDelPtr< QFrame > istd::TDelPtr< QPainter > istd::TDelPtr< istd::CChangeGroup > istd::TDelPtr< imod::TModelWrap > istd::TDelPtr< iview::CImageShape > istd::TDelPtr< iwidgets::CWidgetWheelEventBlocker > istd::TOptDelPtr< const iser::IObject > istd::TOptDelPtr< QCoreApplication > istd::TOptDelPtr< quint8, true > istd::TOptDelPtr< uint8_t, true > istd::TOptDelPtr< const iview::IColorSchema > istd::TDelPtr< Type, Accessor > istd::TOptDelPtr< Type, DelArray >

Public Member Functions

 TPointerBase (Type *ptr=NULL)
 Construct and assign internal pointer.
 
void SetPtr (Type *ptr)
 Set value of internal stored pointer.
 
void Reset ()
 Set internal pointer value to NULL.
 
Type * GetPtr () const
 Return access to internal stored pointer.
 
bool IsValid () const
 Check if internal pointer not NULL.
 
void Swap (TPointerBase &ptr)
 Swap two pointers.
 
Type & operator* () const
 Get an access to object pointed at.
 
template<class CastedType >
CastedType Cast () const
 
Type * operator-> () const
 
bool operator== (const TPointerBase< Type > &ptr) const
 
bool operator!= (const TPointerBase< Type > &ptr) const
 
bool operator< (const TPointerBase< Type > &ptr) const
 
bool operator> (const TPointerBase< Type > &ptr) const
 
bool operator<= (const TPointerBase< Type > &ptr) const
 
bool operator>= (const TPointerBase< Type > &ptr) const
 
bool operator== (const Type *ptr) const
 
bool operator!= (const Type *ptr) const
 
bool operator< (const Type *ptr) const
 
bool operator> (const Type *ptr) const
 
bool operator<= (const Type *ptr) const
 
bool operator>= (const Type *ptr) const
 

Protected Member Functions

TPointerBase< Type > & operator= (const TPointerBase< Type > ptr)
 
Type *& GetPtrRef ()
 

Detailed Description

template<class Type>
class istd::TPointerBase< Type >

Implementation of pointer wrapper.

Definition at line 49 of file TPointerBase.h.

Constructor & Destructor Documentation

◆ TPointerBase()

template<class Type >
istd::TPointerBase< Type >::TPointerBase ( Type *  ptr = NULL)
inline

Construct and assign internal pointer.

Definition at line 252 of file TPointerBase.h.

Member Function Documentation

◆ Cast()

template<class Type >
template<class CastedType >
CastedType istd::TPointerBase< Type >::Cast ( ) const
inline

Definition at line 88 of file TPointerBase.h.

References istd::TPointerBase< Type >::GetPtr().

◆ GetPtr()

template<class Type >
Type * istd::TPointerBase< Type >::GetPtr ( ) const
inline

◆ GetPtrRef()

template<class Type >
Type *& istd::TPointerBase< Type >::GetPtrRef ( )
inlineprotected

Definition at line 275 of file TPointerBase.h.

◆ IsValid()

template<class Type >
bool istd::TPointerBase< Type >::IsValid ( ) const
inline

Check if internal pointer not NULL.

Returns
true, if internal pointer not NULL and can be used to access pointed members.

Definition at line 136 of file TPointerBase.h.

References NULL.

Referenced by iview::CDrawBuffer::GetDrawContext(), and icomp::CSimComponentContextBase::InsertMultiAttr().

◆ operator!=() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator!= ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 173 of file TPointerBase.h.

◆ operator!=() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator!= ( const Type *  ptr) const
inline

Definition at line 215 of file TPointerBase.h.

◆ operator*()

template<class Type >
Type & istd::TPointerBase< Type >::operator* ( ) const
inline

Get an access to object pointed at.

Definition at line 150 of file TPointerBase.h.

References NULL.

◆ operator->()

template<class Type >
Type * istd::TPointerBase< Type >::operator-> ( ) const
inline

Definition at line 159 of file TPointerBase.h.

◆ operator<() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator< ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 180 of file TPointerBase.h.

◆ operator<() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator< ( const Type *  ptr) const

Definition at line 222 of file TPointerBase.h.

◆ operator<=() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator<= ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 194 of file TPointerBase.h.

◆ operator<=() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator<= ( const Type *  ptr) const

Definition at line 236 of file TPointerBase.h.

◆ operator=()

template<class Type >
TPointerBase< Type > & istd::TPointerBase< Type >::operator= ( const TPointerBase< Type >  ptr)
inlineprotected

Definition at line 266 of file TPointerBase.h.

◆ operator==() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator== ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 166 of file TPointerBase.h.

◆ operator==() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator== ( const Type *  ptr) const
inline

Definition at line 208 of file TPointerBase.h.

◆ operator>() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator> ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 187 of file TPointerBase.h.

◆ operator>() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator> ( const Type *  ptr) const

Definition at line 229 of file TPointerBase.h.

◆ operator>=() [1/2]

template<class Type >
bool istd::TPointerBase< Type >::operator>= ( const TPointerBase< Type > &  ptr) const
inline

Definition at line 201 of file TPointerBase.h.

◆ operator>=() [2/2]

template<class Type >
bool istd::TPointerBase< Type >::operator>= ( const Type *  ptr) const

Definition at line 243 of file TPointerBase.h.

◆ Reset()

template<class Type >
void istd::TPointerBase< Type >::Reset ( )
inline

Set internal pointer value to NULL.

Definition at line 122 of file TPointerBase.h.

References NULL.

◆ SetPtr()

template<class Type >
void istd::TPointerBase< Type >::SetPtr ( Type *  ptr)
inline

Set value of internal stored pointer.

Definition at line 259 of file TPointerBase.h.

◆ Swap()

template<class Type >
void istd::TPointerBase< Type >::Swap ( TPointerBase< Type > &  ptr)

Swap two pointers.

Definition at line 143 of file TPointerBase.h.


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