The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Public Member Functions | Private Attributes | List of all members
auto_resetter< T > Class Template Reference

Public Member Functions

 auto_resetter (const T &new_value, T &value_to_change)
 
 ~auto_resetter ()
 

Private Attributes

T & value_to_change_
 
old_val_
 

Detailed Description

template<class T>
class auto_resetter< T >

Definition at line 248 of file test_network_worker.cpp.

Constructor & Destructor Documentation

template<class T>
auto_resetter< T >::auto_resetter ( const T &  new_value,
T &  value_to_change 
)
inline

Definition at line 252 of file test_network_worker.cpp.

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

Definition at line 256 of file test_network_worker.cpp.

References auto_resetter< T >::old_val_.

Member Data Documentation

template<class T>
T auto_resetter< T >::old_val_
private

Definition at line 250 of file test_network_worker.cpp.

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

template<class T>
T& auto_resetter< T >::value_to_change_
private

Definition at line 249 of file test_network_worker.cpp.


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