ucommon/object.h File Reference

A common object base class with auto-pointer support. More...

#include <ucommon/platform.h>
#include <ucommon/generics.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.

Namespaces

namespace  ucc

Data Structures

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

Functions

Object * ucc::copy (Object *object)
 Convenience function to access object copy.
void ucc::release (Object *object)
 Convenience function to access object release.
void ucc::retain (Object *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.


Generated on Tue May 17 12:15:05 2011 for UCommon by  doxygen 1.5.6