GlobalObjects
Loading...
Searching...
No Matches
glo::LockManager::LockedObject::CommunicatorRightsRestrictions Class Reference

The individual lock modes of the object with object ID from LockedObject::m_LockObjektID for a communicator. More...

#include <GloLockManager.h>

Public Member Functions

 CommunicatorRightsRestrictions ()
 
 CommunicatorRightsRestrictions (Communicator *pCommunicator)
 
 ~CommunicatorRightsRestrictions ()
 
bool hasDeleteGuarantee () const
 
bool hasDeleteProtection () const
 
bool hasLockDELETEvREAD ()
 
bool hasLockDELETEvWRITE ()
 
bool hasLockEXCLUSIVE ()
 
bool hasLockREADvDELETE ()
 
bool hasLockREADvWRITE ()
 
bool hasLockTRANSACTION_DELETE ()
 
bool hasLockTRANSACTION_WRITE ()
 
bool hasLockWRITEvWRITE ()
 
bool hasReadGuarantee () const
 
bool hasReadProtection () const
 
bool hasWriteGuarantee () const
 
bool hasWriteProtection () const
 
bool isNULL () const
 

Protected Attributes

std::list< DependentObjsWithDeepMode * > m_DELETEvREAD_Count
 
std::list< DependentObjsWithDeepMode * > m_DELETEvWRITE_Count
 
std::list< DependentObjsWithDeepMode * > m_EXCLUSIVE_Count
 
Communicatorm_pCommunicator
 
std::list< DependentObjsWithDeepMode * > m_READvDELETE_Count
 
std::list< DependentObjsWithDeepMode * > m_READvWRITE_Count
 
std::list< DependentObjsWithDeepMode * > m_TRANSACTION_DELETE_Count
 
std::list< DependentObjsWithDeepMode * > m_TRANSACTION_WRITE_Count
 
std::list< DependentObjsWithDeepMode * > m_WRITEvWRITE_Count
 

Private Member Functions

void deleteObjectsInList (std::list< DependentObjsWithDeepMode * > *pList)
 

Friends

class LockedObject
 
class LockManager
 

Detailed Description

The individual lock modes of the object with object ID from LockedObject::m_LockObjektID for a communicator.

For each lock mode there is a list in which the list of dependent objects that have been locked with the lock depth mode is stored.

Author
Helmut Jakoby

Constructor & Destructor Documentation

◆ CommunicatorRightsRestrictions() [1/2]

glo::LockManager::LockedObject::CommunicatorRightsRestrictions::CommunicatorRightsRestrictions ( )

Standard constructor.

◆ CommunicatorRightsRestrictions() [2/2]

glo::LockManager::LockedObject::CommunicatorRightsRestrictions::CommunicatorRightsRestrictions ( Communicator * pCommunicator)

Constructor with parameter passing.

Parameters
[in]pCommunicatorThe communicator.

◆ ~CommunicatorRightsRestrictions()

glo::LockManager::LockedObject::CommunicatorRightsRestrictions::~CommunicatorRightsRestrictions ( )

Destructor.

Member Function Documentation

◆ deleteObjectsInList()

void glo::LockManager::LockedObject::CommunicatorRightsRestrictions::deleteObjectsInList ( std::list< DependentObjsWithDeepMode * > * pList)
private

Removes all objects in the passed list. All removed objects in memory are deleted.

Parameters
[in,out]pListPointer to the list

◆ hasDeleteGuarantee()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasDeleteGuarantee ( ) const

Checks if the own communicator for the object with object ID from LockedObject::m_LockObjektID has the warranty to delete.

Returns
If true, there is a guarantee that the object can be delete.

◆ hasDeleteProtection()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasDeleteProtection ( ) const

Checks whether object with object ID from LockedObject::m_LockObjektID may only be delete by the own communicator.

Returns
If true, object with object ID from LockedObject::m_LockObjektID has 'delete protection'.

◆ hasLockDELETEvREAD()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockDELETEvREAD ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_DELETEvREAD.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_DELETEvREAD by its own communicator.

◆ hasLockDELETEvWRITE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockDELETEvWRITE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_DELETEvWRITE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_DELETEvWRITE by its own communicator.

◆ hasLockEXCLUSIVE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockEXCLUSIVE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_EXCLUSIVE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_EXCLUSIVE by its own communicator.

◆ hasLockREADvDELETE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockREADvDELETE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_READvDELETE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_READvDELETE by its own communicator.

◆ hasLockREADvWRITE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockREADvWRITE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_READvWRITE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_READvWRITE by its own communicator.

◆ hasLockTRANSACTION_DELETE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockTRANSACTION_DELETE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_TRANSACTION_DELETE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_TRANSACTION_DELETE by its own communicator.

◆ hasLockTRANSACTION_WRITE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockTRANSACTION_WRITE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_TRANSACTION_WRITE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_TRANSACTION_WRITE by its own communicator.

◆ hasLockWRITEvWRITE()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasLockWRITEvWRITE ( )

Checks whether object with object ID from LockedObject::m_LockObjektID is locked by its own communicator with the lock mode glo::LK_WRITEvWRITE.

Returns
If true, the object with object ID from LockedObject::m_LockObjektID is locked with the lock mode glo::LK_WRITEvWRITE by its own communicator.

◆ hasReadGuarantee()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasReadGuarantee ( ) const

Checks if the own communicator for the object with object ID from LockedObject::m_LockObjektID has the warranty to read.

Returns
If true, there is a guarantee that the object can be read.

◆ hasReadProtection()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasReadProtection ( ) const

Checks whether object with object ID from LockedObject::m_LockObjektID may only be read by the own communicator.

Returns
If true, object with object ID from LockedObject::m_LockObjektID has 'read protection'.

◆ hasWriteGuarantee()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasWriteGuarantee ( ) const

Checks if the own communicator for the object with object ID from LockedObject::m_LockObjektID has the warranty to write.

Returns
If true, there is a guarantee that the object can be write.

◆ hasWriteProtection()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::hasWriteProtection ( ) const

Checks whether object with object ID from LockedObject::m_LockObjektID may only be write by the own communicator.

Returns
If true, object with object ID from LockedObject::m_LockObjektID has 'write protection'.

◆ isNULL()

bool glo::LockManager::LockedObject::CommunicatorRightsRestrictions::isNULL ( ) const

Checks if object with object ID from LockedObject::m_LockObjektID is somehow locked by the own communicator.

Returns
If false, object with object ID from LockedObject::m_LockObjektID is somehow locked.

Friends And Related Symbol Documentation

◆ LockedObject

friend class LockedObject
friend

◆ LockManager

friend class LockManager
friend

Member Data Documentation

◆ m_DELETEvREAD_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_DELETEvREAD_Count
protected

The frequency of the lock mode glo::LK_DELETEvREAD with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_DELETEvWRITE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_DELETEvWRITE_Count
protected

The frequency of the lock mode glo::LK_DELETEvWRITE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_EXCLUSIVE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_EXCLUSIVE_Count
protected

The frequency of the lock mode glo::LK_EXCLUSIVE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_pCommunicator

Communicator* glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_pCommunicator
protected

Pointer to the locking communicator.

◆ m_READvDELETE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_READvDELETE_Count
protected

The frequency of the lock mode glo::LK_READvDELETE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_READvWRITE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_READvWRITE_Count
protected

The frequency of the lock mode glo::LK_READvWRITE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_TRANSACTION_DELETE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_TRANSACTION_DELETE_Count
protected

The frequency of the lock mode glo::LK_TRANSACTION_DELETE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_TRANSACTION_WRITE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_TRANSACTION_WRITE_Count
protected

The frequency of the lock mode glo::LK_TRANSACTION_WRITE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.

◆ m_WRITEvWRITE_Count

std::list< DependentObjsWithDeepMode * > glo::LockManager::LockedObject::CommunicatorRightsRestrictions::m_WRITEvWRITE_Count
protected

The frequency of the lock mode glo::LK_WRITEvWRITE with which the object with object ID from LockedObject::m_LockObjektID was locked with its locked objects.


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