avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Functor to take next element in list/array. More...
#include <avutils.h>
Public Member Functions | |
ScopedValue (T &var, const V &outValue) | |
Ctor. More... | |
ScopedValue (T &var, const V &inValue, const V &outValue) | |
Ctor. More... | |
~ScopedValue () | |
Functor to take next element in list/array.
Teamplate class to set value for variable when out of scope will be occured. Use RAII idiom.
By default type of variable and value is same, but it can be simple overriden, use
instead
|
inline |
Ctor.
Store reference to variable and output value.
var | variable that must be set |
outValue | value of variable |
|
inline |
Ctor.
Like previous one but automaticaly can assign initial value to variable.
var | variable that must be set |
inValue | initial value |
outValue | output value |
|
inline |