| 
    Ocean
    
   | 
 
This class implements a scoped value that allows to change a specified value at the end of a scope. More...
#include <ScopedValue.h>
Public Member Functions | |
| ScopedValueT (T &target, const TValue &delayedValue) | |
| Creates a new scoped value object.   | |
| ScopedValueT (T &target, TValue &&delayedValue) | |
| Creates a new scoped value object.   | |
| ScopedValueT (T &target, const TValue &delayedValue, const TValue &immediateValue) | |
| Creates a new scoped value object.   | |
| ScopedValueT (T &target, TValue &&delayedValue, TValue &&immediateValue) | |
| Creates a new scoped value object.   | |
| ~ScopedValueT () | |
| Destructs the scoped value object.   | |
| void | setDelayed (const TValue &value) | 
| Changes the value that will be assigned at the end of the surrounding scope.   | |
| void | setDelayed (TValue &&value) | 
| Changes the value that will be assigned at the end of the surrounding scope.   | |
| void | setImmediately (const TValue &value) | 
| Immediately changes the target value, the modification is not applied at the end of the surrounding scope.   | |
| void | setImmediately (TValue &&value) | 
| Immediately changes the target value, the modification is not applied at the end of the surrounding scope.   | |
Protected Member Functions | |
| ScopedValueT (const ScopedValueT< T > &value)=delete | |
| Disabled copy constructor.   | |
| ScopedValueT & | operator= (const ScopedValueT< T > &value)=delete | 
| Disabled copy operator.   | |
Protected Attributes | |
| T & | target_ | 
| Target value that will be changed at the end of the surrounding scope.   | |
| TValue | delayed_ | 
| Value that will be assigned at the end of the surrounding scope.   | |
This class implements a scoped value that allows to change a specified value at the end of a scope.
| T | Data type of the value (or object) to be set | 
| TValue | Data type of the value to be used for the delayed (and immediate) assignment | 
      
  | 
  inline | 
Creates a new scoped value object.
| target | The target value that will be changed at the end of the surrounding scope | 
| delayedValue | Value that will be assigned at the end of the surrounding scope | 
      
  | 
  inline | 
Creates a new scoped value object.
| target | The target value that will be changed at the end of the surrounding scope | 
| delayedValue | Value that will be assigned at the end of the surrounding scope | 
      
  | 
  inline | 
      
  | 
  inline | 
      
  | 
  inline | 
Destructs the scoped value object.
      
  | 
  protecteddelete | 
Disabled copy constructor.
| value | The value which would be copied | 
      
  | 
  protecteddelete | 
Disabled copy operator.
| value | The value which would be copied | 
      
  | 
  inline | 
Changes the value that will be assigned at the end of the surrounding scope.
| value | The value to be changed | 
      
  | 
  inline | 
Changes the value that will be assigned at the end of the surrounding scope.
| value | The value to be changed | 
      
  | 
  inline | 
Immediately changes the target value, the modification is not applied at the end of the surrounding scope.
| value | The value to be changed | 
      
  | 
  inline | 
Immediately changes the target value, the modification is not applied at the end of the surrounding scope.
| value | The value to be changed | 
      
  | 
  protected | 
Value that will be assigned at the end of the surrounding scope.
      
  | 
  protected | 
Target value that will be changed at the end of the surrounding scope.