OpendTect  6.6
Public Member Functions | Private Attributes | List of all members
PerThreadObjectRepository< T > Class Template Reference

Class that keeps one object per thread. This enables temporary passing of objects (such as strings) where needed. More...

Inheritance diagram for PerThreadObjectRepository< T >:
[legend]

Public Member Functions

 ~PerThreadObjectRepository ()
 
T & getObject ()
 

Private Attributes

Threads::Lock lock_
 
ObjectSet< T > objects_
 
ObjectSet< const void > threadids_
 

Detailed Description

template<class T>
class PerThreadObjectRepository< T >

Class that keeps one object per thread. This enables temporary passing of objects (such as strings) where needed.

<>

Constructor & Destructor Documentation

◆ ~PerThreadObjectRepository()

template<class T >
PerThreadObjectRepository< T >::~PerThreadObjectRepository ( )
inline

Member Function Documentation

◆ getObject()

template<class T >
T & PerThreadObjectRepository< T >::getObject

Member Data Documentation

◆ lock_

template<class T >
Threads::Lock PerThreadObjectRepository< T >::lock_
private

◆ objects_

template<class T >
ObjectSet<T> PerThreadObjectRepository< T >::objects_
private

◆ threadids_

template<class T >
ObjectSet<const void> PerThreadObjectRepository< T >::threadids_
private

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2022