ucommon  7.0.0
About: GNU uCommon C++ is a portable and optimized class framework for writing C++ applications that need to use threads and support concurrent synchronization, and that use sockets, XML parsing, object serialization, thread-optimized string and data structure classes, etc..
  Fossies Dox: ucommon-7.0.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

Loading...
Searching...
No Matches
ucommon::ObjectProtocol Class Referenceabstract

A common base class for all managed objects. More...

#include <protocols.h>

Public Member Functions

virtual void retain (void)=0
 Method to retain (or increase retention) of an object. More...
 
virtual void release (void)=0
 Method to release (or decrease retention) of an object. More...
 
virtual ~ObjectProtocol ()
 Required virtual destructor. More...
 
ObjectProtocolcopy (void)
 Retain (increase retention of) object when copying. More...
 
void operator++ (void)
 Increase retention operator. More...
 
void operator-- (void)
 Decrease retention operator. More...
 

Detailed Description

A common base class for all managed objects.

This is used to manage objects that might be linked or reference counted. The base class defines only core virtuals some common public methods that should be used by all inherited object types.

Author
David Sugar dyfet.nosp@m.@gnu.nosp@m.telep.nosp@m.hony.nosp@m..org

Definition at line 173 of file protocols.h.

Constructor & Destructor Documentation

◆ ~ObjectProtocol()

ucommon::ObjectProtocol::~ObjectProtocol ( )
virtual

Required virtual destructor.

Definition at line 106 of file protocols.cpp.

Member Function Documentation

◆ copy()

ObjectProtocol * ucommon::ObjectProtocol::copy ( void  )

Retain (increase retention of) object when copying.

Definition at line 128 of file protocols.cpp.

References retain().

Here is the call graph for this function:

◆ operator++()

void ucommon::ObjectProtocol::operator++ ( void  )
inline

Increase retention operator.

Definition at line 199 of file protocols.h.

◆ operator--()

void ucommon::ObjectProtocol::operator-- ( void  )
inline

Decrease retention operator.

Definition at line 206 of file protocols.h.

◆ release()

virtual void ucommon::ObjectProtocol::release ( void  )
pure virtual

Method to release (or decrease retention) of an object.

References ucommon::copy().

Referenced by ucommon::SparseObjects::purge().

Here is the call graph for this function:

◆ retain()

virtual void ucommon::ObjectProtocol::retain ( void  )
pure virtual

Method to retain (or increase retention) of an object.

Referenced by ucommon::AutoObject::AutoObject(), copy(), ucommon::SparseObjects::get(), and ucommon::AutoObject::set().


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