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

Const sensitive pointer. More...

#include <B2BITS_CSRefCounterPtr.h>

Public Types

typedef CSRefCounterPtr< T > MyT
 

Public Member Functions

 CSRefCounterPtr () throw ()
 Default Constructor. More...
 
 CSRefCounterPtr (T *apV) throw ()
 Constructor. More...
 
 CSRefCounterPtr (T *apV, bool increaseRefCounter) throw ()
 Constructor. More...
 
 CSRefCounterPtr (CSRefCounterPtr const &aV) throw ()
 Copy constuctor. More...
 
template<typename T2 >
 CSRefCounterPtr (CSRefCounterPtr< T2 > const &other) throw ()
 Another copy constructor. More...
 
T const * get () const throw ()
 
Returns pointer to the managed object. More...
 
T * get () throw ()
 
Returns pointer to the managed object. More...
 
T const & operator* () const throw ()
 Dereference operator. More...
 
T & operator* () throw ()
 Dereference operator. More...
 
T const * operator-> () const throw ()
 Selector operator. More...
 
T * operator-> () throw ()
 Selector operator. More...
 
CSRefCounterPtroperator= (CSRefCounterPtr const &rv) throw ()
 Assign operator. More...
 
T * release () throw ()
 
Returns pointer to the managed object and its ownership. More...
 
void reset (T *apI=NULL, bool addRef=true) throw ()
 
Releases managed object and assigns new one. More...
 
 ~CSRefCounterPtr () throw ()
 Destructor. More...
 

Detailed Description

template<class T>
class FixDictionary2::CSRefCounterPtr< T >

Const sensitive pointer.

Member Typedef Documentation

◆ MyT

template<class T>
typedef CSRefCounterPtr<T> FixDictionary2::CSRefCounterPtr< T >::MyT

Constructor & Destructor Documentation

◆ CSRefCounterPtr() [1/5]

template<class T>
FixDictionary2::CSRefCounterPtr< T >::CSRefCounterPtr ( )
throw (
)
inline

Default Constructor.

◆ CSRefCounterPtr() [2/5]

template<class T>
FixDictionary2::CSRefCounterPtr< T >::CSRefCounterPtr ( T *  apV)
throw (
)
inlineexplicit

Constructor.

◆ CSRefCounterPtr() [3/5]

template<class T>
FixDictionary2::CSRefCounterPtr< T >::CSRefCounterPtr ( T *  apV,
bool  increaseRefCounter 
)
throw (
)
inline

Constructor.

◆ CSRefCounterPtr() [4/5]

template<class T>
FixDictionary2::CSRefCounterPtr< T >::CSRefCounterPtr ( CSRefCounterPtr< T > const &  aV)
throw (
)
inline

Copy constuctor.

◆ CSRefCounterPtr() [5/5]

template<class T>
template<typename T2 >
FixDictionary2::CSRefCounterPtr< T >::CSRefCounterPtr ( CSRefCounterPtr< T2 > const &  other)
throw (
)
inline

Another copy constructor.

◆ ~CSRefCounterPtr()

template<class T>
FixDictionary2::CSRefCounterPtr< T >::~CSRefCounterPtr ( )
throw (
)
inline

Destructor.

Member Function Documentation

◆ get() [1/2]

template<class T>
T const* FixDictionary2::CSRefCounterPtr< T >::get ( ) const
throw (
)
inline


Returns pointer to the managed object.

◆ get() [2/2]

template<class T>
T* FixDictionary2::CSRefCounterPtr< T >::get ( )
throw (
)
inline


Returns pointer to the managed object.

◆ operator*() [1/2]

template<class T>
T const& FixDictionary2::CSRefCounterPtr< T >::operator* ( ) const
throw (
)
inline

Dereference operator.

◆ operator*() [2/2]

template<class T>
T& FixDictionary2::CSRefCounterPtr< T >::operator* ( )
throw (
)
inline

Dereference operator.

◆ operator->() [1/2]

template<class T>
T const* FixDictionary2::CSRefCounterPtr< T >::operator-> ( ) const
throw (
)
inline

Selector operator.

◆ operator->() [2/2]

template<class T>
T* FixDictionary2::CSRefCounterPtr< T >::operator-> ( )
throw (
)
inline

Selector operator.

◆ operator=()

template<class T>
CSRefCounterPtr& FixDictionary2::CSRefCounterPtr< T >::operator= ( CSRefCounterPtr< T > const &  rv)
throw (
)
inline

Assign operator.

References FixDictionary2::CSRefCounterPtr< T >::reset().

◆ release()

template<class T>
T* FixDictionary2::CSRefCounterPtr< T >::release ( )
throw (
)
inline


Returns pointer to the managed object and its ownership.

◆ reset()

template<class T>
void FixDictionary2::CSRefCounterPtr< T >::reset ( T *  apI = NULL,
bool  addRef = true 
)
throw (
)
inline


Releases managed object and assigns new one.

Referenced by FixDictionary2::CSRefCounterPtr< T >::operator=().