ldas-tools-al  2.5.7
Public Member Functions | List of all members
ObjectRegistryResourceLock< T, R, ExceptionDesc, ExceptionType > Class Template Reference

Resource lock management. More...

#include <objectregistry.hh>

Inheritance diagram for ObjectRegistryResourceLock< T, R, ExceptionDesc, ExceptionType >:
ObjectRegistry< T >::AutoLock

Public Member Functions

 ObjectRegistryResourceLock (T *Resource)
 Constructor. More...
 

Detailed Description

template<typename T, ObjectRegistry< T > & R, ORRLExceptionDesc & ExceptionDesc, typename ExceptionType>
class ObjectRegistryResourceLock< T, R, ExceptionDesc, ExceptionType >

Resource lock management.

This is the public class to be used when defining objects for locking resources.

Template Parameters
TThe type of the resource to be locked/unlocked
RThe registry which should contain the resouce to be locked/unlocked.
ExceptionDescThe parameter to be passed to the ExceptionType when a range_error happens.
ExceptionTypeThe type of exception to throw on range_errors

Constructor & Destructor Documentation

◆ ObjectRegistryResourceLock()

template<typename T , ObjectRegistry< T > & R, ORRLExceptionDesc & ExceptionDesc, typename ExceptionType >
ObjectRegistryResourceLock< T, R, ExceptionDesc, ExceptionType >::ObjectRegistryResourceLock ( T *  Resource)
inline

Constructor.

Initialize by locking the object.

Exceptions
ExceptionTypeIf a range error occurs which indicates that the Resource is not being managed by R, then throw as ExceptionType instead.

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