B2BITS FIX Antenna C++  2.27.1
Public Member Functions | List of all members
Utils::ReferenceCounterSharedPtr< T > Class Template Reference

#include <B2BITS_ReferenceCounter.h>

Public Member Functions

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

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 ( ) const
throw (
)
inline

Returns a pointer.

Returns
Pointer.

◆ get() [2/2]

template<typename T>
T* Utils::ReferenceCounterSharedPtr< T >::get ( )
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