Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

Reference Class Reference

#include <coherence/lang/Reference.hpp>

Inherits Object.

Inherited by ThreadLocalReference [virtual], and WeakReference [virtual].

List of all members.


Detailed Description

Reference provides an additional level of indirection to object instances.

It is not a general use class, but rather it is a building block for such things as WeakReference.

Author:
mf 2008.04.10
 

Public Types

typedef spec::Handle Handle
 Reference Handle definition.
typedef spec::View View
 Reference View definition.
typedef spec::Holder Holder
 Reference Holder definition.

Public Member Functions

virtual void set (Object::Holder oh)=0
 Set the referenced Object.
virtual Object::Holder get () const =0
 Return a Holder to the referenced Object.
virtual Object::Holder get ()=0
 Return a Holder to the referenced Object.

Member Function Documentation

virtual void set ( Object::Holder  oh  )  [pure virtual]

Set the referenced Object.

Parameters:
 oh the Object to reference

Implemented in ThreadLocalReference.

virtual Object::Holder get (  )  const [pure virtual]

Return a Holder to the referenced Object.

Returns:
a Holder to the referenced Object

Implemented in ThreadLocalReference, and WeakReference.

virtual Object::Holder get (  )  [pure virtual]

Return a Holder to the referenced Object.

Returns:
a Holder to the referenced Object

Implemented in ThreadLocalReference, and WeakReference.


The documentation for this class was generated from the following file:
Copyright © 2000, 2011, Oracle and/or its affiliates. All rights reserved.