Public Types | Public Member Functions | List of all members
istd::TTransPtr< Type >::RefCountBase Class Referenceabstract

#include <TTransPtr.h>

Inheritance diagram for istd::TTransPtr< Type >::RefCountBase:
istd::TPointerBase< Type > istd::TSmartPtr< Type, Accessor >::RefCounter

Public Types

typedef TPointerBase< Type > BaseClass
 

Public Member Functions

 RefCountBase (Type *pointer)
 
virtual ~RefCountBase ()
 
virtual void OnAttached ()=0
 Called if new pointer is attached to this internal handler. More...
 
virtual void OnDetached ()=0
 Called if pointer is detached from this internal handler. More...
 
- Public Member Functions inherited from istd::TPointerBase< Type >
 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
 

Additional Inherited Members

- Protected Member Functions inherited from istd::TPointerBase< Type >
TPointerBase< Type > & operator= (const TPointerBase< Type > ptr)
 
Type *& GetPtrRef ()
 

Detailed Description

template<class Type>
class istd::TTransPtr< Type >::RefCountBase

Definition at line 75 of file TTransPtr.h.

Member Typedef Documentation

template<class Type>
typedef TPointerBase<Type> istd::TTransPtr< Type >::RefCountBase::BaseClass

Definition at line 78 of file TTransPtr.h.

Constructor & Destructor Documentation

template<class Type>
istd::TTransPtr< Type >::RefCountBase::RefCountBase ( Type *  pointer)
inlineexplicit

Definition at line 80 of file TTransPtr.h.

References NULL.

template<class Type>
virtual istd::TTransPtr< Type >::RefCountBase::~RefCountBase ( )
inlinevirtual

Definition at line 85 of file TTransPtr.h.

Member Function Documentation

template<class Type>
virtual void istd::TTransPtr< Type >::RefCountBase::OnAttached ( )
pure virtual

Called if new pointer is attached to this internal handler.

Implemented in istd::TSmartPtr< Type, Accessor >::RefCounter.

Referenced by istd::TSmartPtr< Type, Accessor >::operator=(), and istd::TSmartPtr< Type, Accessor >::TSmartPtr().

template<class Type>
virtual void istd::TTransPtr< Type >::RefCountBase::OnDetached ( )
pure virtual

Called if pointer is detached from this internal handler.

Implemented in istd::TSmartPtr< Type, Accessor >::RefCounter.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy