logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ost::Pointer< T > - Used to create and manage referece counted pointers.

Author

       Generated automatically by Doxygen for GNU CommonC++ from the source code.

GNU CommonC++                                    Sun Dec 27 2020                            ost::Pointer<T>(3)

Constructor & Destructor Documentation

template<classT>ost::Pointer<T>::Pointer(T*ptr=NULL)[inline],[explicit]
       References ost::Pointer< T >::ptrCount.

   template<classT>ost::Pointer<T>::Pointer(constPointer<T>&ref)[inline]
       References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.

   template<classT>virtualost::Pointer<T>::~Pointer()[inline],[virtual]
       References ost::Pointer< T >::ptrDetach().

Detailed Description

template<classT>
       class ost::Pointer< T >" Used to create and manage referece counted pointers.

       Author
           David Sugar dyfet@gnutelephony.org

       reference counted pointer template.

Member Data Documentation

template<classT>unsigned*ost::Pointer<T>::ptrCount[protected]
       Referenced by ost::Pointer< T >::operator!(), ost::Pointer< T >::operator--(), ost::Pointer< T
       >::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T >::ptrDetach().

   template<classT>T*ost::Pointer<T>::ptrObject[protected]
       Referenced by ost::Pointer< T >::getObject(), ost::Pointer< T >::operator*(), ost::Pointer< T
       >::operator->(), ost::Pointer< T >::operator=(), ost::Pointer< T >::Pointer(), and ost::Pointer< T
       >::ptrDetach().

Member Function Documentation

template<classT>T*ost::Pointer<T>::getObject(void)const[inline]
       References ost::Pointer< T >::ptrObject.

   template<classT>boolost::Pointer<T>::operator!()const[inline]
       References ost::Pointer< T >::ptrCount.

   template<classT>T&ost::Pointer<T>::operator*()const[inline]
       References ost::Pointer< T >::ptrObject.

   template<classT>intost::Pointer<T>::operator++()const[inline]template<classT>intost::Pointer<T>::operator--()const[inline]
       References ost::Pointer< T >::ptrCount.

   template<classT>T*ost::Pointer<T>::operator->()const[inline]
       References ost::Pointer< T >::ptrObject.

   template<classT>Pointer&ost::Pointer<T>::operator=(constPointer<T>&ref)[inline]
       References ost::Pointer< T >::ptrCount, ost::Pointer< T >::ptrDetach(), and ost::Pointer< T >::ptrObject.

   template<classT>voidost::Pointer<T>::ptrDetach(void)[inline],[protected]
       References ost::Pointer< T >::ptrCount, and ost::Pointer< T >::ptrObject.

       Referenced by ost::Pointer< T >::operator=(), and ost::Pointer< T >::~Pointer().

Name

       ost::Pointer< T > - Used to create and manage referece counted pointers.

Synopsis

       #include <pointer.h>

   PublicMemberFunctionsPointer (T *ptr=NULL)
       Pointer (const Pointer< T > &ref)
       virtual ~Pointer ()
       Pointer & operator= (const Pointer< T > &ref)
       T & operator* () const
       T * getObject () const
       T * operator-> () const
       bool operator! () const
       int operator++ () const
       int operator-- () const

   ProtectedMemberFunctions
       void ptrDetach (void)

   ProtectedAttributes
       unsigned * ptrCount
       T * ptrObject

See Also