B2BITS FIX Antenna C++ 2.32.1
Loading...
Searching...
No Matches
Public Member Functions | List of all members
Utils::ReferenceCounterSharedPtr< T > Class Template Reference

#include <B2BITS_ReferenceCounter.h>

Public Member Functions

T * get () throw ()
 Returns a pointer.
 
T * get () const throw ()
 Returns a pointer.
 
 operator bool () const throw ()
 Overloaded operator bool().
 
bool operator! () const throw ()
 Overloaded operator!.
 
T & operator* () throw ()
 Overloaded operator*.
 
T & operator* () const throw ()
 Overloaded operator*.
 
T * operator-> () throw ()
 Overloaded operator->.
 
T * operator-> () const throw ()
 Overloaded operator->.
 
ReferenceCounterSharedPtroperator= (ReferenceCounterSharedPtr< T > const &ptr) throw ()
 Copy operator.
 
ReferenceCounterSharedPtroperator= (T *ptr) throw ()
 Takes ownership over the object. DOESN'T call addRef()!
 
 ReferenceCounterSharedPtr () throw ()
 Default constructor.
 
 ReferenceCounterSharedPtr (ReferenceCounterSharedPtr< T > const &ptr) throw ()
 Copy constructor.
 
template<typename U >
 ReferenceCounterSharedPtr (ReferenceCounterSharedPtr< U > const &ptr) throw ()
 Copy constructor.
 
 ReferenceCounterSharedPtr (T *ptr) throw ()
 Constructor.
 
void reset (T *ptr=NULL) throw ()
 Takes ownership over the object. DOESN'T call addRef()!
 
 ~ReferenceCounterSharedPtr () throw ()
 Destructor.
 

Constructor & Destructor Documentation

◆ ReferenceCounterSharedPtr() [1/4]

template<typename T >
Utils::ReferenceCounterSharedPtr< T >::ReferenceCounterSharedPtr ( )
throw ( )
inline

Default constructor.

◆ ReferenceCounterSharedPtr() [2/4]

template<typename T >
Utils::ReferenceCounterSharedPtr< T >::ReferenceCounterSharedPtr ( T * ptr)
throw ( )
inlineexplicit

Constructor.

Parameters
ptrPointer to the object to be owned. Takes ownership over the object. DOESN'T call addRef()!

◆ ReferenceCounterSharedPtr() [3/4]

template<typename T >
Utils::ReferenceCounterSharedPtr< T >::ReferenceCounterSharedPtr ( ReferenceCounterSharedPtr< T > const & ptr)
throw ( )
inline

Copy constructor.

◆ ReferenceCounterSharedPtr() [4/4]

template<typename T >
template<typename U >
Utils::ReferenceCounterSharedPtr< T >::ReferenceCounterSharedPtr ( ReferenceCounterSharedPtr< U > const & ptr)
throw ( )
inlineexplicit

Copy constructor.

◆ ~ReferenceCounterSharedPtr()

template<typename T >
Utils::ReferenceCounterSharedPtr< T >::~ReferenceCounterSharedPtr ( )
throw ( )
inline

Destructor.

Member Function Documentation

◆ get() [1/2]

template<typename T >
T * Utils::ReferenceCounterSharedPtr< T >::get ( )
throw ( )
inline

Returns a pointer.

Returns
Pointer.

◆ get() [2/2]

template<typename T >
T * Utils::ReferenceCounterSharedPtr< T >::get ( ) const
throw ( )
inline

Returns a pointer.

Returns
Pointer.

◆ operator bool()

template<typename T >
Utils::ReferenceCounterSharedPtr< T >::operator bool ( ) const
throw ( )
inline

Overloaded operator bool().

◆ operator!()

template<typename T >
bool Utils::ReferenceCounterSharedPtr< T >::operator! ( ) const
throw ( )
inline

Overloaded operator!.

◆ operator*() [1/2]

template<typename T >
T & Utils::ReferenceCounterSharedPtr< T >::operator* ( )
throw ( )
inline

Overloaded operator*.

◆ operator*() [2/2]

template<typename T >
T & Utils::ReferenceCounterSharedPtr< T >::operator* ( ) const
throw ( )
inline

Overloaded operator*.

◆ operator->() [1/2]

template<typename T >
T * Utils::ReferenceCounterSharedPtr< T >::operator-> ( )
throw ( )
inline

Overloaded operator->.

◆ operator->() [2/2]

template<typename T >
T * Utils::ReferenceCounterSharedPtr< T >::operator-> ( ) const
throw ( )
inline

Overloaded operator->.

◆ operator=() [1/2]

template<typename T >
ReferenceCounterSharedPtr & Utils::ReferenceCounterSharedPtr< T >::operator= ( ReferenceCounterSharedPtr< T > const & ptr)
throw ( )
inline

Copy operator.

◆ operator=() [2/2]

template<typename T >
ReferenceCounterSharedPtr & Utils::ReferenceCounterSharedPtr< T >::operator= ( T * ptr)
throw ( )
inline

Takes ownership over the object. DOESN'T call addRef()!

◆ reset()

template<typename T >
void Utils::ReferenceCounterSharedPtr< T >::reset ( T * ptr = NULL)
throw ( )
inline

Takes ownership over the object. DOESN'T call addRef()!