QMCPACK
ScopeGuard< TIMER > Class Template Reference
+ Collaboration diagram for ScopeGuard< TIMER >:

Public Member Functions

 ScopeGuard (TIMER &t)
 
 ScopeGuard (const ScopeGuard &)=delete
 
ScopeGuardoperator= (const ScopeGuard &)=delete
 
 ScopeGuard (ScopeGuard &&) noexcept=default
 
ScopeGuardoperator= (ScopeGuard &&) noexcept=default
 
 ~ScopeGuard ()
 

Private Attributes

TIMER & timer
 

Detailed Description

template<class TIMER = NewTimer>
class qmcplusplus::ScopeGuard< TIMER >

Definition at line 241 of file NewTimer.h.

Constructor & Destructor Documentation

◆ ScopeGuard() [1/3]

ScopeGuard ( TIMER &  t)
inline

Definition at line 244 of file NewTimer.h.

244 : timer(t) { timer.start(); }

◆ ScopeGuard() [2/3]

ScopeGuard ( const ScopeGuard< TIMER > &  )
delete

◆ ScopeGuard() [3/3]

ScopeGuard ( ScopeGuard< TIMER > &&  )
defaultnoexcept

◆ ~ScopeGuard()

~ScopeGuard ( )
inline

Definition at line 251 of file NewTimer.h.

251 { timer.stop(); }

Member Function Documentation

◆ operator=() [1/2]

ScopeGuard& operator= ( const ScopeGuard< TIMER > &  )
delete

◆ operator=() [2/2]

ScopeGuard& operator= ( ScopeGuard< TIMER > &&  )
defaultnoexcept

Member Data Documentation

◆ timer

TIMER& timer
private

Definition at line 254 of file NewTimer.h.


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