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..
![]() ![]() |
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... | |
ObjectProtocol * | copy (void) |
Retain (increase retention of) object when copying. More... | |
void | operator++ (void) |
Increase retention operator. More... | |
void | operator-- (void) |
Decrease retention operator. More... | |
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.
Definition at line 173 of file protocols.h.
|
virtual |
Required virtual destructor.
Definition at line 106 of file protocols.cpp.
ObjectProtocol * ucommon::ObjectProtocol::copy | ( | void | ) |
Retain (increase retention of) object when copying.
Definition at line 128 of file protocols.cpp.
References retain().
|
inline |
Increase retention operator.
Definition at line 199 of file protocols.h.
|
inline |
Decrease retention operator.
Definition at line 206 of file protocols.h.
|
pure virtual |
Method to release (or decrease retention) of an object.
References ucommon::copy().
Referenced by ucommon::SparseObjects::purge().
|
pure virtual |
Method to retain (or increase retention) of an object.
Referenced by ucommon::AutoObject::AutoObject(), copy(), ucommon::SparseObjects::get(), and ucommon::AutoObject::set().