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 51 of file RemoteReferenceCount.h.

Member Typedef Documentation

◆ ArmarXManagerPtr

Constructor & Destructor Documentation

◆ RemoteReferenceCountControlBlockManagementInterface()

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

Definition at line 338 of file RemoteReferenceCount.cpp.

◆ ~RemoteReferenceCountControlBlockManagementInterface()

Definition at line 348 of file RemoteReferenceCount.cpp.

+ Here is the call graph for this function:

Member Function Documentation

◆ activateCounting()

void activateCounting ( )
inline

Definition at line 55 of file RemoteReferenceCount.h.

◆ countReachedZero()

void countReachedZero ( )
protected

Definition at line 368 of file RemoteReferenceCount.cpp.

+ Here is the call graph for this function:

◆ getProxy()

Ice::ObjectPrx getProxy ( ) const
inline

Definition at line 67 of file RemoteReferenceCount.h.

◆ hasCountReachedZero()

bool hasCountReachedZero ( ) const
inline

Definition at line 63 of file RemoteReferenceCount.h.

◆ isCountingActivated()

bool isCountingActivated ( ) const
inline

Definition at line 59 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 77 of file RemoteReferenceCount.h.

Member Data Documentation

◆ armarXManager

ArmarXManagerPtr armarXManager
protected

Definition at line 89 of file RemoteReferenceCount.h.

◆ id

const std::string id
protected

Definition at line 95 of file RemoteReferenceCount.h.

◆ lastTimeReachedZero

IceUtil::Time lastTimeReachedZero
protected

Definition at line 93 of file RemoteReferenceCount.h.

◆ mtx

std::mutex mtx
protected

Definition at line 92 of file RemoteReferenceCount.h.

◆ selfProxy

Ice::ObjectPrx selfProxy
protected

Definition at line 90 of file RemoteReferenceCount.h.


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