A common object base class with auto-pointer support. More...
#include <ucommon/cpr.h>
#include <ucommon/generics.h>
#include <ucommon/protocols.h>
#include <stdlib.h>
Go to the source code of this file.
Data Structures | |
class | ucommon::auto_object |
A general purpose smart pointer helper class. More... | |
class | ucommon::CountedObject |
A base class for reference counted objects. More... | |
class | ucommon::object_pointer< T, P > |
Typed smart pointer class. More... | |
class | ucommon::object_value< T, O > |
Template for embedding a data structure into a reference counted object. More... | |
class | ucommon::sarray< T > |
Generate a typed sparse managed object array. More... | |
class | ucommon::SparseObjects |
A sparse array of managed objects. More... | |
Namespaces | |
namespace | ucommon |
Common namespace for all ucommon objects. | |
Functions | |
ObjectProtocol * | ucommon::copy (ObjectProtocol *object) |
Convenience function to access object copy. | |
void | ucommon::release (ObjectProtocol *object) |
Convenience function to access object release. | |
void | ucommon::retain (ObjectProtocol *object) |
Convenience function to access object retention. |
A common object base class with auto-pointer support.
A common object class is used which may be referenced counted and associated with a smart auto-pointer class. A lot of the things found here were inspired by working with Objective-C. Many of the classes are designed to offer automatic heap management through smart pointers and temporary objects controlled through the scope of the stack frame of method calls.
Definition in file object.h.