#include <coherence/lang/MemberHandle.hpp>
Inherits SmartMember.
Inherited by FinalHandle.
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.
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. | ||||
MemberHandle & | operator= (const ValueHandle &that) | |||
Assign the MemberHandle to reference another object. | ||||
MemberHandle & | operator= (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.
| ||||
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> | ||||
D | cast (MemberHandle< T > &mh, bool fThrow) | |||
Perform a dynamic cast the pointer associated with the MemberHandle to a the specified handle/view type. |
MemberHandle | ( | const Object & | oGuardian | ) | [inline] |
Construct a new MemberHandle referencing NULL via a handle.
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.
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.
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 |
MemberHandle& operator= | ( | const ValueHandle & | that | ) | [inline] |
Assign the MemberHandle to reference another object.
that | the object to reference |
MemberHandle& operator= | ( | MemberHandle< T > & | that | ) | [inline] |
Assign this MemberHandle to reference the same Object as the specified MemberHandle.
that | the object to reference |
operator ValueView | ( | ) | const [inline] |
Return 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.
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.
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.
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.
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.
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.
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.
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&
.
T&
reference to the referenced ObjectNullPointerException | if the this handle is NULL |
T& operator * | ( | ) | [inline] |
Dereference this handle, returning T&
.
T&
reference to the referenced ObjectNullPointerException | 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.
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.
that | the handle to copy | |
pSync | optional external SyncornizedMemberBlock to use to avoid internal synchronization. |
ValueView get | ( | SynchronizedMemberReadBlock * | pSync = NULL |
) | const [inline, protected] |
ValueView getEscaped | ( | SynchronizedMemberReadBlock * | pSync = NULL |
) | const [inline, protected] |
ValueHandle get | ( | SynchronizedMemberReadBlock * | pSync = NULL |
) | [inline, protected] |
ValueHandle getEscaped | ( | SynchronizedMemberReadBlock * | pSync = NULL |
) | [inline, protected] |
void performAction | ( | Action | nAction | ) | const [inline, protected] |
Perform the specified action.
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.
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.
mh | the MemberHandle from which to perform the cast | |
fThrow | true if an exception is to be thrown on a failed cast |
ClassCastException | if the cast fails and fThrow is true |