Oracle® Fusion Middleware C++ API Reference for Oracle Coherence
12c (12.2.1.3.0)

E80355-01

MemberHandle Class Template Reference

#include <coherence/lang/MemberHandle.hpp>

Inherits SmartMember.

Inherited by FinalHandle.

List of all members.


Detailed Description

template<class T>
class coherence::lang::MemberHandle< T >

MemberHandle is a thread-safe handle used by an Object to reference its non-const child Objects.

MemberHandles transfer the constness of their guardian Object. When a MemberHandle is accessed from within a const method of the enclosing "parent" class, it will only provide const access to the Object which it references. If the enclosing Object becomes only accessed via views the MemberHandle will also automatically, and permanently switch its reference type from a handle to a view.

Note: In the rare case that a MemberHandle is declared via the mutable keyword, the MemberHandle must be informed of this fact by setting fMutable to true during construction.

Author:
mf 2007.07.05
See also:
MemberView

MemberHolder


Public Types

typedef T ValueType
 The type of the values the handle can reference.
typedef T::Handle ValueHandle
 The Handle type for the referenced Object.
typedef T::View ValueView
 The View type for thekil referenced Object.
typedef ValueHandle GetType
 Result type for a non-const get operation.
typedef ValueView ConstGetType
 Result type for a non-const get operation.

Public Member Functions

 MemberHandle (const Object &oGuardian)
 Construct a new MemberHandle referencing NULL via a handle.
 MemberHandle (const Object &oGuardian, const ValueHandle &that)
 Construct a new MemberHandle referencing the specified Object via a handle.
 MemberHandle (const Object &oGuardian, const ValueHandle &that, bool fMutable)
 Construct a new MemberHandle referencing the specified Object via a handle.
 ~MemberHandle ()
 Destroy the MemberHandle.
MemberHandleoperator= (const ValueHandle &that)
 Assign the MemberHandle to reference another object.
MemberHandleoperator= (MemberHandle &that)
 Assign this MemberHandle to reference the same Object as the specified MemberHandle.
 operator ValueView () const
 Return a View to the referenced Object.
 operator ValueHandle ()
 Return a Handle to the referenced Object.
template<class PT>
 o () const
 Return a View to the referenced Object.
template<class PT>
 o ()
 Return a Handle to the referenced Object.
template<class PT>
 o () const
 Return a TypedHolder to the referenced Object.
template<class PT>
 o ()
 Return a TypedHolder to the referenced Object.
ValueView operator-> () const
 Dereference the MemberHandle.
ValueHandle operator-> ()
 Dereference the MemberHandle.
const T & operator * () const
 Dereference this handle, returning T&.
T & operator * ()
 Dereference this handle, returning T&.

Protected Member Functions

void set (const TypedHandle< T > &that, SynchronizedMemberWriteBlock *pSync=NULL)
 Set the MemberHandle to reference the same Object as the supplied Handle.
void setEscaped (const TypedHandle< T > &that, SynchronizedMemberWriteBlock *pSync=NULL)
 Set the MemberHandle to reference the same Object as the supplied Handle.
ValueView get (SynchronizedMemberReadBlock *pSync=NULL) const
 Return a View to the referenced Object.
ValueView getEscaped (SynchronizedMemberReadBlock *pSync=NULL) const
 Return a View to the referenced Object.
ValueHandle get (SynchronizedMemberReadBlock *pSync=NULL)
 Return a Handle to the referenced Object.
ValueHandle getEscaped (SynchronizedMemberReadBlock *pSync=NULL)
 Return a Handle to the referenced Object.
void performAction (Action nAction) const
 Perform the specified action.
virtual void onConst ()
 Event called when the guardian Object becomes only referenced via const pointers (Views).

As the SmartMember is a data-member of this Object, the data-member infer that only const methods will be called from now on.

Derived implementations of this method should include a delegation call to their super class onConst() method, after they've done their own processing of the event.

Not that this method will only be called by the guardian if the SmartMember's mutability state is set to inherited.

virtual void onEscape (bool fEscaped) const
 Event called when the guarding Object's escape state changes.

Derived implementations of this method should include a delegation call to their super class onEscape() method, after they've done their own processing of the event.

Parameters:
fEscaped true if the object is being escaped, false if the object is being captured

virtual size64_t retained () const
 Return the deep byte size of any managed objects held by this SmartMember.

Protected Attributes

T * m_po
 The referenced Object.

Friends

template<class D, class H>
cast (MemberHandle< T > &mh, bool fThrow)
 Perform a dynamic cast the pointer associated with the MemberHandle to a the specified handle/view type.

Constructor & Destructor Documentation

MemberHandle ( const Object oGuardian  )  [inline]

Construct a new MemberHandle referencing NULL via a handle.

Parameters:
oGuardian the object that protects this member

MemberHandle ( const Object oGuardian,
const ValueHandle that 
) [inline]

Construct a new MemberHandle referencing the specified Object via a handle.

Parameters:
oGuardian the object that protects this member
that the Object to reference

MemberHandle ( const Object oGuardian,
const ValueHandle that,
bool  fMutable 
) [inline]

Construct a new MemberHandle referencing the specified Object via a handle.

Parameters:
oGuardian the object that protects this member
that the Object to reference
fMutable true if the member is declared as mutable, false if declared as const


Member Function Documentation

MemberHandle& operator= ( const ValueHandle that  )  [inline]

Assign the MemberHandle to reference another object.

Parameters:
that the object to reference
Returns:
a reference to this MemberHandle

MemberHandle& operator= ( MemberHandle< T > &  that  )  [inline]

Assign this MemberHandle to reference the same Object as the specified MemberHandle.

Parameters:
that the object to reference
Returns:
a reference to this MemberHandle

operator ValueView (  )  const [inline]

Return a View to the referenced Object.

Returns:
a View to the referenced Object

Reimplemented in FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, and FinalHandle< coherence::util::MapTrigger >.

operator ValueHandle (  )  [inline]

Return a Handle to the referenced Object.

Returns:
a Handle to the referenced Object

Reimplemented in FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, and FinalHandle< coherence::util::MapTrigger >.

o (  )  const [inline]

Return a View to the referenced Object.

Returns:
a View to the referenced Object

Reimplemented in FinalHandle, FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::util::MapTrigger >, and FinalHandle< coherence::util::MapTrigger >.

o (  )  [inline]

Return a Handle to the referenced Object.

Returns:
a Handle to the referenced Object

Reimplemented in FinalHandle, FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::util::MapTrigger >, and FinalHandle< coherence::util::MapTrigger >.

o (  )  const [inline]

Return a TypedHolder to the referenced Object.

Returns:
a TypedHolder to the referenced Object

Reimplemented in FinalHandle, FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::util::MapTrigger >, and FinalHandle< coherence::util::MapTrigger >.

o (  )  [inline]

Return a TypedHolder to the referenced Object.

Returns:
a TypedHolder to the referenced Object

Reimplemented in FinalHandle, FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::net::NamedCache >, FinalHandle< coherence::util::MapTrigger >, and FinalHandle< coherence::util::MapTrigger >.

ValueView operator-> (  )  const [inline]

Dereference the MemberHandle.

Returns:
a const pointer to the referenced Object

Reimplemented in FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, and FinalHandle< coherence::util::MapTrigger >.

ValueHandle operator-> (  )  [inline]

Dereference the MemberHandle.

Returns:
a const pointer to the referenced Object

Reimplemented in FinalHandle, FinalHandle< coherence::net::partition::PartitionSet >, FinalHandle< BufferOutput >, FinalHandle< coherence::io::AbstractWriteBuffer >, FinalHandle< coherence::util::Set >, FinalHandle< coherence::net::cache::SimpleCacheStatistics >, FinalHandle< coherence::util::Versionable >, FinalHandle< coherence::net::cache::OldCache >, FinalHandle< coherence::util::MapListener >, FinalHandle< Map >, FinalHandle< coherence::util::List >, FinalHandle< coherence::util::MapEvent >, FinalHandle< coherence::io::pof::WritingPofHandler >, FinalHandle< coherence::util::Iterator >, FinalHandle< coherence::net::cache::CachingMap::FrontMapListener >, FinalHandle< coherence::util::InvocableMap::EntryAggregator >, FinalHandle< coherence::net::cache::CacheMap >, FinalHandle< coherence::lang::Array< int64_t > >, FinalHandle< coherence::io::ReadBuffer::BufferInput >, FinalHandle< coherence::util::LongArray >, FinalHandle< coherence::net::MemberListener >, FinalHandle< coherence::lang::ThreadGroup >, FinalHandle< coherence::net::cache::AbstractBundler >, FinalHandle< coherence::io::pof::PofBufferReader >, FinalHandle< coherence::util::ConcurrentMap >, FinalHandle< coherence::util::AtomicCounter >, FinalHandle< coherence::io::pof::PofBufferWriter >, FinalHandle< coherence::util::IdentityHashMap >, FinalHandle< coherence::io::OctetArrayWriteBuffer >, FinalHandle< coherence::util::InvocableMap::ParallelAwareAggregator >, FinalHandle< coherence::io::pof::WritingPofHandler::Complex >, FinalHandle< coherence::io::WriteBuffer >, FinalHandle< coherence::lang::ThreadLocalReference >, FinalHandle< coherence::util::ObservableMap >, FinalHandle< coherence::io::WriteBuffer::BufferOutput >, FinalHandle< coherence::lang::Object >, FinalHandle< coherence::net::cache::AbstractBundler::Statistics >, FinalHandle< coherence::io::pof::ReferenceLibrary >, FinalHandle< coherence::net::CacheService >, FinalHandle< coherence::util::Map >, FinalHandle< coherence::net::cache::BundlingNamedCache >, FinalHandle< coherence::net::NamedCache >, and FinalHandle< coherence::util::MapTrigger >.

const T& operator * (  )  const [inline]

Dereference this handle, returning T&.

Returns:
a raw T& reference to the referenced Object
Exceptions:
NullPointerException if the this handle is NULL

T& operator * (  )  [inline]

Dereference this handle, returning T&.

Returns:
a raw T& reference to the referenced Object
Exceptions:
NullPointerException if the this handle is NULL

void set ( const TypedHandle< T > &  that,
SynchronizedMemberWriteBlock pSync = NULL 
) [inline, protected]

Set the MemberHandle to reference the same Object as the supplied Handle.

Parameters:
that the handle to copy
pSync optional external SyncornizedMemberBlock to use to avoid internal synchronization.

void setEscaped ( const TypedHandle< T > &  that,
SynchronizedMemberWriteBlock pSync = NULL 
) [inline, protected]

Set the MemberHandle to reference the same Object as the supplied Handle.

Parameters:
that the handle to copy
pSync optional external SyncornizedMemberBlock to use to avoid internal synchronization.

ValueView get ( SynchronizedMemberReadBlock pSync = NULL  )  const [inline, protected]

Return a View to the referenced Object.

Parameters:
pSync optional external SyncornizedMemberReadBlock to use to avoid internal synchronization.
Returns:
a View to the referenced Object

ValueView getEscaped ( SynchronizedMemberReadBlock pSync = NULL  )  const [inline, protected]

Return a View to the referenced Object.

Parameters:
pSync optional external SyncornizedMemberReadBlock to use to avoid internal synchronization.
Returns:
a View to the referenced Object

ValueHandle get ( SynchronizedMemberReadBlock pSync = NULL  )  [inline, protected]

Return a Handle to the referenced Object.

Parameters:
pSync optional external SyncornizedMemberReadBlock to use to avoid internal synchronization.
Returns:
a Handle to the referenced Object

ValueHandle getEscaped ( SynchronizedMemberReadBlock pSync = NULL  )  [inline, protected]

Return a Handle to the referenced Object.

Parameters:
pSync optional external SyncornizedMemberReadBlock to use to avoid internal synchronization.
Returns:
a Handle to the referenced Object

void performAction ( Action  nAction  )  const [inline, protected]

Perform the specified action.

Parameters:
nAction the action to perform

virtual void onConst (  )  [inline, protected, virtual]

Event called when the guardian Object becomes only referenced via const pointers (Views).

As the SmartMember is a data-member of this Object, the data-member infer that only const methods will be called from now on.

Derived implementations of this method should include a delegation call to their super class onConst() method, after they've done their own processing of the event.

Not that this method will only be called by the guardian if the SmartMember's mutability state is set to inherited.

The MemberHandle is automatically flipped when the guardian Object becomes only referenced via consts.

Reimplemented from SmartMember.


Friends And Related Function Documentation

D cast ( MemberHandle< T > &  mh,
bool  fThrow = true 
) [friend]

Perform a dynamic cast the pointer associated with the MemberHandle to a the specified handle/view type.

Parameters:
mh the MemberHandle from which to perform the cast
fThrow true if an exception is to be thrown on a failed cast
Returns:
the casted pointer, or NULL if the cast fails and fThrow is false
Exceptions:
ClassCastException if the cast fails and fThrow is true


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