ucommon/object.h File Reference

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>
Include dependency graph for object.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  auto_object
 A general purpose smart pointer helper class. More...
class  CountedObject
 A base class for reference counted objects. More...
class  object_pointer< T, P >
 Typed smart pointer class. More...
class  object_value< T, O >
 Template for embedding a data structure into a reference counted object. More...
class  sarray< T >
 Generate a typed sparse managed object array. More...
class  SparseObjects
 A sparse array of managed objects. More...

Functions

ObjectProtocol * copy (ObjectProtocol *object)
 Convenience function to access object copy.
void release (ObjectProtocol *object)
 Convenience function to access object release.
void retain (ObjectProtocol *object)
 Convenience function to access object retention.

Detailed Description

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.


Function Documentation

ObjectProtocol* copy ( ObjectProtocol *  object  )  [inline]

Convenience function to access object copy.

Parameters:
object we are copying.

Definition at line 479 of file object.h.

void release ( ObjectProtocol *  object  )  [inline]

Convenience function to access object release.

Parameters:
object we are releasing.

Definition at line 472 of file object.h.

void retain ( ObjectProtocol *  object  )  [inline]

Convenience function to access object retention.

Parameters:
object we are retaining.

Definition at line 465 of file object.h.


Generated on 24 Sep 2014 for ucommon by  doxygen 1.6.1