Definition at line 53 of file tcatlockmanager.h.
The guard is typically aquired when lazy rebuild of objects that are relevant for rating only is required.
Developpers must be careful always to aquire the tariff catalogue internal lock as last locking operation. By this the lock should not interfere with public available locks.
A puristic rule of how to use the catalogue's internal mutex is: Aquire the lock in public member functions only and afterwards only call private member functions of the tariff catalogue.
typedef ReadGuard<Cgi*> OSB_LIB::TcatLockManager::CgiRg |
typedef ReadGuard<Cgis*> OSB_LIB::TcatLockManager::CgisRg |
typedef WriteGuard<Cgis*> OSB_LIB::TcatLockManager::CgisWg |
typedef WriteGuard<Cgi*> OSB_LIB::TcatLockManager::CgiWg |
typedef ReadGuard<E164*> OSB_LIB::TcatLockManager::E164Rg |
typedef ReadGuard<E164s*> OSB_LIB::TcatLockManager::E164sRg |
typedef WriteGuard<E164s*> OSB_LIB::TcatLockManager::E164sWg |
typedef WriteGuard<E164*> OSB_LIB::TcatLockManager::E164Wg |
Alias for guard to the 5 mutexs for tariff objects.
Definition at line 118 of file tcatlockmanager.h.
typedef Guard OSB_LIB::TcatLockManager::TcatGuard [private] |
OSB_LIB::TcatLockManager::TcatLockManager | ( | TariffCatalogue & | cat | ) | [inline] |
The only constructor.
cat | Reference to the tariff catalogue to support. |
Definition at line 390 of file tcatlockmanager.h.
RatingFnRg OSB_LIB::TcatLockManager::readLock | ( | const RatingFn::Oid & | id | ) |
Provide read lock for rating function.
TfVersionRg OSB_LIB::TcatLockManager::readLock | ( | const TfVersion::Oid & | id | ) |
Provide read lock for tariff version.
TariffRg OSB_LIB::TcatLockManager::readLock | ( | const Tariff::Oid & | id | ) |
Provide read lock for tariff.
TsVersionRg OSB_LIB::TcatLockManager::readLock | ( | const TsVersion::Oid & | id | ) |
Provide read lock for tariff system version.
TariffSystemRg OSB_LIB::TcatLockManager::readLock | ( | const TariffSystem::Oid & | id | ) |
Provide read lock for tariff system.
ScsVersionRg OSB_LIB::TcatLockManager::readLock | ( | const ScsVersion::Oid & | id | ) |
Provide read lock for service class system version.
ScSystemRg OSB_LIB::TcatLockManager::readLock | ( | const ScSystem::Oid & | id | ) |
Provide read lock for service class system.
ServiceClassRg OSB_LIB::TcatLockManager::readLock | ( | const ServiceClass::Oid & | id | ) |
Provide read lock for service class.
RatedServiceRg OSB_LIB::TcatLockManager::readLock | ( | const RatedService::Oid & | id | ) |
Provide read lock for rated service.
ServiceElementRg OSB_LIB::TcatLockManager::readLock | ( | const ServiceElement::Oid & | id | ) |
Provide read lock for service element.
TzConfigRg OSB_LIB::TcatLockManager::readLock | ( | const TzConfig::Oid & | id | ) |
Provide read lock for TzConfig.
TcsVersionRg OSB_LIB::TcatLockManager::readLock | ( | const TcsVersion::Oid & | id | ) |
Provide read lock for TcsVersion.
TcSystemRg OSB_LIB::TcatLockManager::readLock | ( | const TcSystem::Oid & | id | ) |
Provide read lock for TcSystem.
TariffZoneRg OSB_LIB::TcatLockManager::readLock | ( | const TariffZone::Oid & | id | ) |
Provide read lock for TariffZone.
TariffClassRg OSB_LIB::TcatLockManager::readLock | ( | const TariffClass::Oid & | id | ) |
Provide read lock for TariffClass.
ConnectionPtRg OSB_LIB::TcatLockManager::readLock | ( | const Id< ConnectionPt > & | id | ) |
Provide read lock for ConnectionPt.
TpsVersionRg OSB_LIB::TcatLockManager::readLock | ( | const TpsVersion::Oid & | id | ) |
Provide read lock for TpsVersion.
TpSystemRg OSB_LIB::TcatLockManager::readLock | ( | const TpSystem::Oid & | id | ) |
Provide read lock for TpSystem.
TariffPeriodRg OSB_LIB::TcatLockManager::readLock | ( | const TariffPeriod::Oid & | id | ) |
Provide read lock for TariffPeriod.
DayClassRg OSB_LIB::TcatLockManager::readLock | ( | const DayClass::Oid & | id | ) |
Provide read lock for DayClass.
SpecialDateRg OSB_LIB::TcatLockManager::readLock | ( | const SpecialDate::Oid & | id | ) |
Provide read lock for SpecialDate.
ScSystemsRg OSB_LIB::TcatLockManager::readLockAllScs | ( | ) |
Provide read lock for ScSystems.
CgisRg OSB_LIB::TcatLockManager::readLockCgis | ( | ) |
Provide read lock for CGIs.
CpTreeRg OSB_LIB::TcatLockManager::readLockCps | ( | ) |
Provide read lock for ConnectionPts.
DayClassesRg OSB_LIB::TcatLockManager::readLockDcs | ( | ) |
Provide read lock for DayClasses.
E164sRg OSB_LIB::TcatLockManager::readLockE164s | ( | ) |
Provide read lock for E164s.
RatingFnsRg OSB_LIB::TcatLockManager::readLockRatingFns | ( | ) |
Provide read lock for rating functions.
RatedServicesRg OSB_LIB::TcatLockManager::readLockRss | ( | ) |
Provide read lock for rated services.
ServiceClassesRg OSB_LIB::TcatLockManager::readLockScs | ( | ) |
Provide read lock for ServiceClasses.
ScsVersionsRg OSB_LIB::TcatLockManager::readLockScsVs | ( | ) |
Provide read lock for service class system versions.
SpecialDatesRg OSB_LIB::TcatLockManager::readLockSds | ( | ) |
Provide read lock for SpecialDates.
SeTreeRg OSB_LIB::TcatLockManager::readLockSes | ( | ) |
Provide read lock for Service elements.
TariffsRg OSB_LIB::TcatLockManager::readLockTariffs | ( | ) |
Provide read lock for Tariffs.
TariffClassesRg OSB_LIB::TcatLockManager::readLockTcs | ( | ) |
Provide read lock for TariffClasses.
TcSystemsRg OSB_LIB::TcatLockManager::readLockTcses | ( | ) |
Provide read lock for TcSystems.
TcsVersionsRg OSB_LIB::TcatLockManager::readLockTcsVs | ( | ) |
Provide read lock for TcsVersions.
TfVersionsRg OSB_LIB::TcatLockManager::readLockTfVs | ( | ) |
Provide read lock for TfVersions.
TariffPeriodsRg OSB_LIB::TcatLockManager::readLockTps | ( | ) |
Provide read lock for TariffPeriods.
TpSystemsRg OSB_LIB::TcatLockManager::readLockTpss | ( | ) |
Provide read lock for TpSystems.
TpsVersionsRg OSB_LIB::TcatLockManager::readLockTpsVs | ( | ) |
Provide read lock for TpsVersions.
TariffSystemsRg OSB_LIB::TcatLockManager::readLockTss | ( | ) |
Provide read lock for TariffSystems.
TsVersionsRg OSB_LIB::TcatLockManager::readLockTsVs | ( | ) |
Provide read lock for TsVersions.
TzConfigsRg OSB_LIB::TcatLockManager::readLockTzCfgs | ( | ) |
Provide read lock for TzConfigs.
TariffZonesRg OSB_LIB::TcatLockManager::readLockTzs | ( | ) |
Provide read lock for TariffZones.
TariffObjectsGuard OSB_LIB::TcatLockManager::tariffObjectsGuard | ( | ) |
Issue a guard for all tariff objects.
TcatGuard OSB_LIB::TcatLockManager::tcatGuard | ( | ) | [private] |
Issue a tariff catalogue internal guard.
RatingFnWg OSB_LIB::TcatLockManager::writeLock | ( | const RatingFn::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for rating function.
TfVersionWg OSB_LIB::TcatLockManager::writeLock | ( | const TfVersion::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for tariff version.
TariffWg OSB_LIB::TcatLockManager::writeLock | ( | const Tariff::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for tariff.
TsVersionWg OSB_LIB::TcatLockManager::writeLock | ( | const TsVersion::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for tariff system version.
TariffSystemWg OSB_LIB::TcatLockManager::writeLock | ( | const TariffSystem::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for tariff system.
ScsVersionWg OSB_LIB::TcatLockManager::writeLock | ( | const ScsVersion::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for service class system version.
ScSystemWg OSB_LIB::TcatLockManager::writeLock | ( | const ScSystem::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for service class system.
ServiceClassWg OSB_LIB::TcatLockManager::writeLock | ( | const ServiceClass::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for service class.
RatedServiceWg OSB_LIB::TcatLockManager::writeLock | ( | const RatedService::Oid & | id, | |
bool | noWait | |||
) |
Provide read lock for rated service.
TzConfigWg OSB_LIB::TcatLockManager::writeLock | ( | const TzConfig::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TzConfig.
TcsVersionWg OSB_LIB::TcatLockManager::writeLock | ( | const TcsVersion::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TcsVersion.
TcSystemWg OSB_LIB::TcatLockManager::writeLock | ( | const TcSystem::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TcSystem.
TariffZoneWg OSB_LIB::TcatLockManager::writeLock | ( | const TariffZone::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TariffZone.
TariffClassWg OSB_LIB::TcatLockManager::writeLock | ( | const TariffClass::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TariffClass.
Provide write lock for E164.
Provide write lock for CGI.
ConnectionPtWg OSB_LIB::TcatLockManager::writeLock | ( | const Id< ConnectionPt > & | id, | |
bool | noWait | |||
) |
Provide write lock for ConnectionPt.
TpsVersionWg OSB_LIB::TcatLockManager::writeLock | ( | const TpsVersion::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TpsVersion.
TpSystemWg OSB_LIB::TcatLockManager::writeLock | ( | const TpSystem::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TpSystem.
TariffPeriodWg OSB_LIB::TcatLockManager::writeLock | ( | const TariffPeriod::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for TariffPeriod.
DayClassWg OSB_LIB::TcatLockManager::writeLock | ( | const DayClass::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for DayClass.
SpecialDateWg OSB_LIB::TcatLockManager::writeLock | ( | const SpecialDate::Oid & | id, | |
bool | noWait | |||
) |
Provide write lock for SpecialDate.
ScSystemsWg OSB_LIB::TcatLockManager::writeLockAllScs | ( | bool | noWait | ) |
Provide write lock for ScSystems.
CgisWg OSB_LIB::TcatLockManager::writeLockCgis | ( | bool | noWait | ) |
Provide write lock for CGIs.
CpTreeWg OSB_LIB::TcatLockManager::writeLockConnectionPts | ( | bool | noWait | ) |
Provide write lock for ConnectionPts.
DayClassesWg OSB_LIB::TcatLockManager::writeLockDcs | ( | bool | noWait | ) |
Provide write lock for DayClasses.
E164MapWg OSB_LIB::TcatLockManager::writeLockE164Map | ( | bool | noWait | ) |
Provide write lock for the E164Map.
E164sWg OSB_LIB::TcatLockManager::writeLockE164s | ( | bool | noWait | ) |
Provide write lock for E164s.
RatingFnsWg OSB_LIB::TcatLockManager::writeLockRatingFns | ( | bool | noWait | ) |
Provide write lock for rating functions.
RatedServicesWg OSB_LIB::TcatLockManager::writeLockRss | ( | bool | noWait | ) |
Provide read lock for rated services.
ServiceClassesWg OSB_LIB::TcatLockManager::writeLockScs | ( | bool | noWait | ) |
Provide write lock for ServiceClasses.
ScsVersionsWg OSB_LIB::TcatLockManager::writeLockScsVs | ( | bool | noWait | ) |
Provide write lock for service class system versions.
SpecialDatesWg OSB_LIB::TcatLockManager::writeLockSds | ( | bool | noWait | ) |
Provide write lock for SpecialDates.
TariffsWg OSB_LIB::TcatLockManager::writeLockTariffs | ( | bool | noWait | ) |
Provide write lock for Tariffs.
TariffClassesWg OSB_LIB::TcatLockManager::writeLockTcs | ( | bool | noWait | ) |
Provide write lock for TariffClasses.
TcSystemsWg OSB_LIB::TcatLockManager::writeLockTcses | ( | bool | noWait | ) |
Provide write lock for TcSystems.
TcsVersionsWg OSB_LIB::TcatLockManager::writeLockTcsVs | ( | bool | noWait | ) |
Provide write lock for all tariff classification system versions.
TfVersionsWg OSB_LIB::TcatLockManager::writeLockTfVs | ( | bool | noWait | ) |
Provide write lock for TfVersions.
TariffPeriodsWg OSB_LIB::TcatLockManager::writeLockTps | ( | bool | noWait | ) |
Provide write lock for TariffPeriods.
TpsVersionsWg OSB_LIB::TcatLockManager::writeLockTpsVs | ( | bool | noWait | ) |
Provide write lock for TpsVersion.
TpSystemsWg OSB_LIB::TcatLockManager::writeLockTpSystems | ( | bool | noWait | ) |
Provide write lock for TpSystems.
TariffSystemsWg OSB_LIB::TcatLockManager::writeLockTss | ( | bool | noWait | ) |
Provide write lock for TariffSystems.
TsVersionsWg OSB_LIB::TcatLockManager::writeLockTsVs | ( | bool | noWait | ) |
Provide write lock for TsVersions.
TzConfigsWg OSB_LIB::TcatLockManager::writeLockTzCfgs | ( | bool | noWait | ) |
Provide write lock for TzConfigs.
TariffZonesWg OSB_LIB::TcatLockManager::writeLockTzs | ( | bool | noWait | ) |
Provide write lock for TariffZones.
friend class TariffCatalogue [friend] |
Allow the tariff catalogue to use the locking stuff that is specially designed for it:
Definition at line 89 of file tcatlockmanager.h.
TariffCatalogue& OSB_LIB::TcatLockManager::cat_ [private] |
Definition at line 742 of file tcatlockmanager.h.
RwMutex OSB_LIB::TcatLockManager::scMutex_ [private] |
Mutex OSB_LIB::TcatLockManager::tcatMutex_ [private] |
RwMutex OSB_LIB::TcatLockManager::tcMutex_ [private] |
RwMutex OSB_LIB::TcatLockManager::tfMutex_ [private] |
RwMutex OSB_LIB::TcatLockManager::tpMutex_ [private] |
RwMutex OSB_LIB::TcatLockManager::tsMutex_ [private] |