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::RefObject - A reference countable object.

Author

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

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

Constructor & Destructor Documentation

ost::RefObject::RefObject()[inline],[protected]
       The constructor simply initializes the count.

   virtualost::RefObject::~RefObject()[protected],[virtual]
       The destructor is called when the reference count returns to zero. This is done through a virtual
       destructor.

Detailed Description

       A reference countable object.

       This is used in association with smart pointers (RefPointer).

       Author
           David Sugar dyfet@gnutelephony.org

       Object managed by smart pointer reference count.

Member Data Documentation

unsignedost::RefObject::refCount[protected]

Member Function Documentation

virtualvoid*ost::RefObject::getObject(void)[purevirtual]
       The actual object being managed can be returned by this method as a void and then recast to the actual
       type. This removes the need to dynamic cast from RefObject and the dependence on rtti this implies.

       Returns
           underlying object being referenced.

Name

       ost::RefObject - A reference countable object.

Synopsis

       #include <object.h>

   PublicMemberFunctions
       virtual void * getObject (void)=0
           The actual object being managed can be returned by this method as a void and then recast to the
           actual type.

   ProtectedMemberFunctionsRefObject ()
           The constructor simply initializes the count.
       virtual ~RefObject ()
           The destructor is called when the reference count returns to zero.

   ProtectedAttributes
       unsigned refCountFriends
       class RefPointer

See Also