ARTS 2.5.11 (git: 725533f0)
OmpParallelCopyGuard< T > Class Template Reference

#include <workspace_ng.h>

Public Member Functions

 OmpParallelCopyGuard (T &ws)
 
 OmpParallelCopyGuard (T &ws, bool do_copy_manually)
 
 OmpParallelCopyGuard (const OmpParallelCopyGuard &cp)
 
 operator T& ()
 
 operator const T & () const
 

Private Attributes

T & orig
 
bool do_copy
 
std::shared_ptr< T > copy
 

Detailed Description

template<CanCopy T>
class OmpParallelCopyGuard< T >

Definition at line 221 of file workspace_ng.h.

Constructor & Destructor Documentation

◆ OmpParallelCopyGuard() [1/3]

template<CanCopy T>
OmpParallelCopyGuard< T >::OmpParallelCopyGuard ( T &  ws)
inline

Definition at line 227 of file workspace_ng.h.

◆ OmpParallelCopyGuard() [2/3]

template<CanCopy T>
OmpParallelCopyGuard< T >::OmpParallelCopyGuard ( T &  ws,
bool  do_copy_manually 
)
inline

Definition at line 232 of file workspace_ng.h.

◆ OmpParallelCopyGuard() [3/3]

template<CanCopy T>
OmpParallelCopyGuard< T >::OmpParallelCopyGuard ( const OmpParallelCopyGuard< T > &  cp)
inline

Definition at line 235 of file workspace_ng.h.

Member Function Documentation

◆ operator const T &()

template<CanCopy T>
OmpParallelCopyGuard< T >::operator const T & ( ) const
inline

◆ operator T&()

template<CanCopy T>
OmpParallelCopyGuard< T >::operator T& ( )
inline

Member Data Documentation

◆ copy

template<CanCopy T>
std::shared_ptr<T> OmpParallelCopyGuard< T >::copy
private

◆ do_copy

template<CanCopy T>
bool OmpParallelCopyGuard< T >::do_copy
private

Definition at line 223 of file workspace_ng.h.

◆ orig

template<CanCopy T>
T& OmpParallelCopyGuard< T >::orig
private

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