VMware GemFire Native C++ Reference  9.2.4
apache::geode::client::SharedBase Class Reference

Inherited by apache::geode::client::AttributesFactory, apache::geode::client::AttributesMutator, apache::geode::client::AuthInitialize, apache::geode::client::CacheAttributes, apache::geode::client::CacheFactory, apache::geode::client::CacheListener, apache::geode::client::CacheLoader, apache::geode::client::CacheStatistics, apache::geode::client::CacheTransactionManager, apache::geode::client::CacheWriter, apache::geode::client::CqAttributes [virtual], apache::geode::client::CqAttributesFactory, apache::geode::client::CqAttributesMutator [virtual], apache::geode::client::CqListener, apache::geode::client::CqQuery, apache::geode::client::CqServiceStatistics, apache::geode::client::CqStatistics, apache::geode::client::DistributedSystem, apache::geode::client::EntryEvent, apache::geode::client::Exception, apache::geode::client::Execution, apache::geode::client::FunctionService, apache::geode::client::HashMapOfCacheable, apache::geode::client::HashMapOfException, apache::geode::client::HashSetOfCacheableKey, apache::geode::client::NullSharedBase, apache::geode::client::PartitionResolver, apache::geode::client::PdxInstanceFactory, apache::geode::client::PdxReader, apache::geode::client::PdxSerializer, apache::geode::client::PdxUnreadFields, apache::geode::client::PdxWriter, apache::geode::client::PersistenceManager, apache::geode::client::Pool, apache::geode::client::PoolFactory, apache::geode::client::Query, apache::geode::client::QueryService, apache::geode::client::Region, apache::geode::client::RegionEntry, apache::geode::client::RegionFactory, apache::geode::client::RegionService, apache::geode::client::ResultCollector, apache::geode::client::SelectResults, apache::geode::client::SelectResultsIterator, apache::geode::client::Serializable, apache::geode::client::TransactionId, apache::geode::client::VectorOfCacheable, and apache::geode::client::VectorOfCacheableKey.

Public Member Functions

void preserveSB () const
 Atomically increment reference count. More...
 
int32_t refCount ()
 
void releaseSB () const
 Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero. More...
 
 SharedBase ()
 Constructor. More...
 

Detailed Description

This abstract base class is the base class of all user objects that have the shared capability of reference counting.

Constructor & Destructor Documentation

◆ SharedBase()

apache::geode::client::SharedBase::SharedBase ( )
inline

Constructor.

Member Function Documentation

◆ preserveSB()

void apache::geode::client::SharedBase::preserveSB ( ) const

Atomically increment reference count.

◆ refCount()

int32_t apache::geode::client::SharedBase::refCount ( )
inline
Returns
the reference count

◆ releaseSB()

void apache::geode::client::SharedBase::releaseSB ( ) const

Atomically decrement reference count, the SharedBase object is automatically deleted when its reference count goes to zero.


Pivotal GemFire C++ Cache API Documentation