Oracle Coherence for C++ API
Release 3.7.1.0

E22845-01

ReferenceLibrary Class Reference

#include <coherence/io/pof/ReferenceLibrary.hpp>

Inherits Object.

List of all members.


Detailed Description

A "library" of object references and their corresponding identities in the POF stream.

Author:
wl 2010.09.21
 

Public Types

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

Public Member Functions

virtual int32_t getIdentity (Object::View v) const
 Look up an identity for an object.
virtual int32_t registerReference (Object::View v)
 Register an object.

Protected Attributes

int32_t m_cRefs
 The reference counter.
MemberHandle
< IdentityHashMap
m_hMapIdentities
 A map from objects that can be referenced to their Integer identities.

Member Function Documentation

virtual int32_t getIdentity ( Object::View  v  )  const [virtual]

Look up an identity for an object.

Parameters:
 v the object
Returns:
the identity, or -1 if the object is not registered

virtual int32_t registerReference ( Object::View  v  )  [virtual]

Register an object.

Parameters:
 v the object
Returns:
the assigned identity for the object
Exceptions:
 IllegalStateException if the object is already registered


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