Public Types | Public Member Functions | List of all members
istd::TSmartPtr< Type, Accessor >::RefCounter Class Reference

#include <TSmartPtr.h>

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

Public Types

typedef RefCountBase BaseClass
 
- Public Types inherited from istd::TTransPtr< Type >::RefCountBase
typedef TPointerBase< Type > BaseClass
 

Public Member Functions

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

Definition at line 68 of file TSmartPtr.h.

Member Typedef Documentation

template<class Type, class Accessor = DefaultAccessor<Type>>
typedef RefCountBase istd::TSmartPtr< Type, Accessor >::RefCounter::BaseClass

Definition at line 71 of file TSmartPtr.h.

Constructor & Destructor Documentation

template<class Type, class Accessor = DefaultAccessor<Type>>
istd::TSmartPtr< Type, Accessor >::RefCounter::RefCounter ( Type *  pointer)
inlineexplicit

Definition at line 73 of file TSmartPtr.h.

Member Function Documentation

template<class Type, class Accessor = DefaultAccessor<Type>>
virtual void istd::TSmartPtr< Type, Accessor >::RefCounter::OnAttached ( )
inlinevirtual

Called if new pointer is attached to this internal handler.

Implements istd::TTransPtr< Type >::RefCountBase.

Definition at line 81 of file TSmartPtr.h.

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

template<class Type, class Accessor = DefaultAccessor<Type>>
virtual void istd::TSmartPtr< Type, Accessor >::RefCounter::OnDetached ( )
inlinevirtual

Called if pointer is detached from this internal handler.

Implements istd::TTransPtr< Type >::RefCountBase.

Definition at line 93 of file TSmartPtr.h.

References istd::TPointerBase< Type >::GetPtr(), and istd::TPointerBase< Type >::IsValid().


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy