RemoteReferenceCountControlBlockManagementInterface Class Referenceabstract

#include <ArmarXCore/core/RemoteReferenceCount.h>

+ Inheritance diagram for RemoteReferenceCountControlBlockManagementInterface:

Public Types

using ArmarXManagerPtr = IceUtil::Handle< ArmarXManager >
 

Public Member Functions

void activateCounting ()
 
Ice::ObjectPrx getProxy () const
 
bool hasCountReachedZero () const
 
bool isCountingActivated () const
 
 RemoteReferenceCountControlBlockManagementInterface (const ArmarXManagerPtr &manager, const std::string &id)
 
 ~RemoteReferenceCountControlBlockManagementInterface () override
 

Protected Member Functions

void countReachedZero ()
 
virtual IceUtil::Time nextCheckTimePoint ()=0
 Returns the next timepoint when this ControlBlock should be checked. More...
 
virtual void onCountReachedZero ()=0
 

Protected Attributes

ArmarXManagerPtr armarXManager
 
const std::string id
 
IceUtil::Time lastTimeReachedZero
 
std::mutex mtx
 
Ice::ObjectPrx selfProxy
 

Friends

class ::armarx::RemoteReferenceCountControlBlockManager
 

Detailed Description

Definition at line 50 of file RemoteReferenceCount.h.

Member Typedef Documentation

◆ ArmarXManagerPtr

Constructor & Destructor Documentation

◆ RemoteReferenceCountControlBlockManagementInterface()

RemoteReferenceCountControlBlockManagementInterface ( const ArmarXManagerPtr manager,
const std::string &  id 
)

Definition at line 384 of file RemoteReferenceCount.cpp.

◆ ~RemoteReferenceCountControlBlockManagementInterface()

Definition at line 396 of file RemoteReferenceCount.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ activateCounting()

void activateCounting ( )
inline

Definition at line 56 of file RemoteReferenceCount.h.

◆ countReachedZero()

void countReachedZero ( )
protected

Definition at line 423 of file RemoteReferenceCount.cpp.

+ Here is the call graph for this function:

◆ getProxy()

Ice::ObjectPrx getProxy ( ) const
inline

Definition at line 74 of file RemoteReferenceCount.h.

◆ hasCountReachedZero()

bool hasCountReachedZero ( ) const
inline

Definition at line 68 of file RemoteReferenceCount.h.

◆ isCountingActivated()

bool isCountingActivated ( ) const
inline

Definition at line 62 of file RemoteReferenceCount.h.

+ Here is the caller graph for this function:

◆ nextCheckTimePoint()

virtual IceUtil::Time nextCheckTimePoint ( )
protectedpure virtual

Returns the next timepoint when this ControlBlock should be checked.

If the returned time is in the past and counting was activated, this Block is removed from counting and onCountReachedZero is called.

Returns

◆ onCountReachedZero()

virtual void onCountReachedZero ( )
protectedpure virtual
+ Here is the caller graph for this function:

Friends And Related Function Documentation

◆ ::armarx::RemoteReferenceCountControlBlockManager

Definition at line 85 of file RemoteReferenceCount.h.

Member Data Documentation

◆ armarXManager

ArmarXManagerPtr armarXManager
protected

Definition at line 97 of file RemoteReferenceCount.h.

◆ id

const std::string id
protected

Definition at line 103 of file RemoteReferenceCount.h.

◆ lastTimeReachedZero

IceUtil::Time lastTimeReachedZero
protected

Definition at line 101 of file RemoteReferenceCount.h.

◆ mtx

std::mutex mtx
protected

Definition at line 100 of file RemoteReferenceCount.h.

◆ selfProxy

Ice::ObjectPrx selfProxy
protected

Definition at line 98 of file RemoteReferenceCount.h.


The documentation for this class was generated from the following files: