Bayonne2 / Common C++ 2 Framework
Public Member Functions | Protected Member Functions | Protected Attributes
RefPointer Class Reference

Pointer to reference counted objects. More...

#include <object.h>

Collaboration diagram for RefPointer:
Collaboration graph
[legend]

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

 

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.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org Pointer to reference count managed objects.

Definition at line 105 of file object.h.

Constructor & Destructor Documentation

RefPointer::RefPointer ( )
inline

Create an unattached pointer.

Definition at line 131 of file object.h.

RefPointer::RefPointer ( RefObjectobj )

Create a pointer attached to a reference counted object.

Object being referenced.

RefPointer::RefPointer ( const RefPointerptr )

A copy constructor.

Pointer being copied.

virtual RefPointer::~RefPointer ( )
virtual

Member Function Documentation

void RefPointer::detach ( void  )
protected

Detach current object, for example, when changing pointer.

virtual void RefPointer::enterLock ( void  )
protectedvirtual

Patch point for mutex in derived class.

This may often be a single static mutex shared by a managed type.

void* RefPointer::getObject ( void  ) const
virtual void RefPointer::leaveLock ( void  )
protectedvirtual

Patch point for a mutex in derived class.

This may often be a single static mutex shared by a managed type.

bool RefPointer::operator! ( ) const
void* RefPointer::operator* ( ) const
inline

Definition at line 152 of file object.h.

void* RefPointer::operator-> ( ) const
inline

Definition at line 155 of file object.h.

RefPointer& RefPointer::operator= ( const RefObjectref )

Field Documentation

RefObject* RefPointer::ref
protected

Definition at line 108 of file object.h.


The documentation for this class was generated from the following file:

Generated on Dec 21, 2017 for commoncpp2-1.8.1, ccrtp-1.7.2, libzrtpcpp-2.3.4, ccscript3-1.1.7, ccaudio2-1.0.0 and bayonne2-2.3.2 (after installation in /usr/local/) by   doxygen 1.8.6

AltStyle によって変換されたページ (->オリジナル) /