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 >:
istd::TDelPtr< Type, Accessor > istd::TOptDelPtr< Type, DelArray > istd::TTransPtr< Type >::RefCountBase istd::TSmartPtr< Type, Accessor >::RefCounter

Public Member Functions

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

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

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

Definition at line 88 of file TPointerBase.h.

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

Definition at line 275 of file TPointerBase.h.

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

Definition at line 173 of file TPointerBase.h.

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

Definition at line 215 of file TPointerBase.h.

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.

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

Definition at line 159 of file TPointerBase.h.

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

Definition at line 180 of file TPointerBase.h.

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

Definition at line 222 of file TPointerBase.h.

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

Definition at line 194 of file TPointerBase.h.

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

Definition at line 236 of file TPointerBase.h.

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

Definition at line 266 of file TPointerBase.h.

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

Definition at line 166 of file TPointerBase.h.

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

Definition at line 208 of file TPointerBase.h.

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

Definition at line 187 of file TPointerBase.h.

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

Definition at line 229 of file TPointerBase.h.

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

Definition at line 201 of file TPointerBase.h.

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

Definition at line 243 of file TPointerBase.h.

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.

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.

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:

© 2007-2017 Witold Gantzke and Kirill Lepskiy