GNU Octave  8.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
unwind_protect_var< T > Class Template Reference

#include "unwind-prot.h"

Collaboration diagram for unwind_protect_var< T >:

Public Member Functions

 unwind_protect_var (const unwind_protect_var &)=delete
 
 unwind_protect_var (T &ref)
 
 unwind_protect_var (T &ref, const T &new_val)
 
 ~unwind_protect_var (void)
 
unwind_protect_varoperator= (const unwind_protect_var &)=delete
 

Private Attributes

T & m_ref
 
m_val
 

Detailed Description

template<typename T>
class unwind_protect_var< T >

Definition at line 315 of file unwind-prot.h.

Constructor & Destructor Documentation

◆ unwind_protect_var() [1/3]

template<typename T >
unwind_protect_var< T >::unwind_protect_var ( T &  ref)
inlineexplicit

Definition at line 322 of file unwind-prot.h.

◆ unwind_protect_var() [2/3]

template<typename T >
unwind_protect_var< T >::unwind_protect_var ( T &  ref,
const T &  new_val 
)
inline

Definition at line 330 of file unwind-prot.h.

References unwind_protect_var< T >::m_ref.

◆ unwind_protect_var() [3/3]

template<typename T >
unwind_protect_var< T >::unwind_protect_var ( const unwind_protect_var< T > &  )
delete

◆ ~unwind_protect_var()

template<typename T >
unwind_protect_var< T >::~unwind_protect_var ( void  )
inline

Member Function Documentation

◆ operator=()

template<typename T >
unwind_protect_var& unwind_protect_var< T >::operator= ( const unwind_protect_var< T > &  )
delete

Member Data Documentation

◆ m_ref

template<typename T >
T& unwind_protect_var< T >::m_ref
private

◆ m_val

template<typename T >
T unwind_protect_var< T >::m_val
private

Definition at line 350 of file unwind-prot.h.

Referenced by unwind_protect_var< T >::~unwind_protect_var().


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