| DCMTK Version 3.6.9
    OFFIS DICOM Toolkit | 
Template class which allows to declare global objects that are protected by a Read/Write Lock if used in multi-thread applications. More...
| Public Member Functions | |
| OFGlobal (const T &arg) | |
| constructor. | |
| virtual | ~OFGlobal () | 
| destructor. | |
| void | set (const T &arg) | 
| assigns new value to this object. | |
| void | xget (T &arg) | 
| gets the value of this object. | |
| T | get () | 
| returns the value of this object. | |
| Private Member Functions | |
| OFGlobal () | |
| unimplemented private default constructor | |
| OFGlobal (const OFGlobal< T > &arg) | |
| unimplemented private copy constructor | |
| const OFGlobal< T > & | operator= (const OFGlobal< T > &arg) | 
| unimplemented private assignment operator | |
| Private Attributes | |
| T | val | 
| value of this object | |
| OFReadWriteLock | theRWLock | 
| if compiled for multi-thread operation, the Read/Write Lock protecting access to the value of this object. | |
Template class which allows to declare global objects that are protected by a Read/Write Lock if used in multi-thread applications.
Must be compiled with -DWITH_THREADS for multi-thread-operation. Template class T must have copy constructor and assignment operator.
| 
 | inline | 
constructor.
| arg | value to which this object is initialised | 
References theRWLock, and val.
Referenced by OFGlobal(), and operator=().
| 
 | inline | 
| 
 | inline | 
| 
 | inline |