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::RefPointer - Pointer to reference counted objects.

Author

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

GNU CommonC++                                    Sun Dec 27 2020                              ost::RefPointer(3)

Constructor & Destructor Documentation

ost::RefPointer::RefPointer()[inline]
       Create an unattached pointer.

   ost::RefPointer::RefPointer(RefObject*obj)
       Create a pointer attached to a reference counted object. Object being referenced.

   ost::RefPointer::RefPointer(constRefPointer&ptr)
       A copy constructor. Pointer being copied.

   virtualost::RefPointer::~RefPointer()[virtual]

Detailed Description

Pointer to reference counted objects.

       This is a non-template form of a reference count smart pointer, and so uses common code. This can be
       subclassed to return explicit object types.

       Author
           David Sugar dyfet@gnutelephony.orgPointer to reference count managed objects.

Member Data Documentation

RefObject*ost::RefPointer::ref[protected]

Member Function Documentation

voidost::RefPointer::detach(void)[protected]
       Detach current object, for example, when changing pointer.

   virtualvoidost::RefPointer::enterLock(void)[protected],[virtual]
       Patch point for mutex in derived class. This may often be a single static mutex shared by a managed type.

   void*ost::RefPointer::getObject(void)constvirtualvoidost::RefPointer::leaveLock(void)[protected],[virtual]
       Patch point for a mutex in derived class. This may often be a single static mutex shared by a managed
       type.

   boolost::RefPointer::operator!()constvoid*ost::RefPointer::operator*()const[inline]void*ost::RefPointer::operator->()const[inline]RefPointer&ost::RefPointer::operator=(constRefObject&ref)

Name

       ost::RefPointer - Pointer to reference counted objects.

Synopsis

       #include <object.h>

   PublicMemberFunctionsRefPointer ()
           Create an unattached pointer.
       RefPointer (RefObject *obj)
           Create a pointer attached to a reference counted object.
       RefPointer (const RefPointer &ptr)
           A copy constructor.
       virtual ~RefPointer ()
       RefPointer & operator= (const RefObject &ref)
       void * operator* () const
       void * operator-> () const
       void * getObject (void) const
       bool operator! () const

   ProtectedMemberFunctions
       void detach (void)
           Detach current object, for example, when changing pointer.
       virtual void enterLock (void)
           Patch point for mutex in derived class.
       virtual void leaveLock (void)
           Patch point for a mutex in derived class.

   ProtectedAttributesRefObject * ref

See Also