SourcePro® 2021.1 |
SourcePro® API Reference Guide |
Product Documentation: SourcePro Documentation Home |
The rwtMakeScopeGuardG() and rwtMakeScopeGuardM() functions are provided as a convenience mechanism to construct scope guard instances given a function to invoke and parameters to pass to that function.
Functions | |
template<class Func > | |
RWScopeGuard0GImp< Func > | rwtMakeScopeGuardG (Func func) |
template<class Func , class A1 > | |
RWScopeGuard1GImp< Func, A1 > | rwtMakeScopeGuardG (Func func, A1 a1) |
template<class Func , class A1 , class A2 > | |
RWScopeGuard2GImp< Func, A1, A2 > | rwtMakeScopeGuardG (Func func, A1 a1, A2 a2) |
template<class Func , class A1 , class A2 , class A3 > | |
RWScopeGuard3GImp< Func, A1, A2, A3 > | rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3) |
template<class Func , class A1 , class A2 , class A3 , class A4 > | |
RWScopeGuard4GImp< Func, A1, A2, A3, A4 > | rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3, A4 a4) |
template<class Func , class A1 , class A2 , class A3 , class A4 , class A5 > | |
RWScopeGuard5GImp< Func, A1, A2, A3, A4, A5 > | rwtMakeScopeGuardG (Func func, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) |
template<class Func , class Obj > | |
RWScopeGuard0MImp< Obj, Func > | rwtMakeScopeGuardM (Obj &obj, Func func) |
template<class Func , class Obj , class A1 > | |
RWScopeGuard1MImp< Obj, Func, A1 > | rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1) |
template<class Func , class Obj , class A1 , class A2 > | |
RWScopeGuard2MImp< Obj, Func, A1, A2 > | rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2) |
template<class Func , class Obj , class A1 , class A2 , class A3 > | |
RWScopeGuard3MImp< Obj, Func, A1, A2, A3 > | rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3) |
template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 > | |
RWScopeGuard4MImp< Obj, Func, A1, A2, A3, A4 > | rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3, A4 a4) |
template<class Func , class Obj , class A1 , class A2 , class A3 , class A4 , class A5 > | |
RWScopeGuard5MImp< Obj, Func, A1, A2, A3, A4, A5 > | rwtMakeScopeGuardM (Obj &obj, Func func, A1 a1, A2 a2, A3 a3, A4 a4, A5 a5) |
RWScopeGuard0GImp<Func> rwtMakeScopeGuardG | ( | Func | func | ) |
Template function to create an RWScopeGuard set to call func()
automatically when control flow leaves the current scope.
RWScopeGuard1GImp<Func, A1> rwtMakeScopeGuardG | ( | Func | func, |
A1 | a1 | ||
) |
Template function to create an RWScopeGuard set to call func(a1)
automatically when control flow leaves the current scope.
RWScopeGuard2GImp<Func, A1, A2> rwtMakeScopeGuardG | ( | Func | func, |
A1 | a1, | ||
A2 | a2 | ||
) |
Template function to create an RWScopeGuard set to call func(a1,a2)
automatically when control flow leaves the current scope.
RWScopeGuard3GImp<Func, A1, A2, A3> rwtMakeScopeGuardG | ( | Func | func, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) |
Template function to create an RWScopeGuard set to call func(a1,a2,a3)
automatically when control flow leaves the current scope.
RWScopeGuard4GImp<Func, A1, A2, A3, A4> rwtMakeScopeGuardG | ( | Func | func, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4 | ||
) |
Template function to create an RWScopeGuard set to call func(a1,a2,a3,a4)
automatically when control flow leaves the current scope.
RWScopeGuard5GImp<Func, A1, A2, A3, A4, A5> rwtMakeScopeGuardG | ( | Func | func, |
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4, | ||
A5 | a5 | ||
) |
Template function to create an RWScopeGuard set to call func(a1,a2,a3,a4,a5)
automatically when control flow leaves the current scope.
RWScopeGuard0MImp<Obj, Func> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func | ||
) |
Template function to create an RWScopeGuard set to call obj.func()
automatically when control flow leaves the current scope.
RWScopeGuard1MImp<Obj, Func, A1> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func, | ||
A1 | a1 | ||
) |
Template function to create an RWScopeGuard set to call obj.func(a1)
automatically when control flow leaves the current scope.
RWScopeGuard2MImp<Obj, Func, A1, A2> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func, | ||
A1 | a1, | ||
A2 | a2 | ||
) |
Template function to create an RWScopeGuard set to call obj.func(a1,a2)
automatically when control flow leaves the current scope.
RWScopeGuard3MImp<Obj, Func, A1, A2, A3> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3 | ||
) |
Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3)
automatically when control flow leaves the current scope.
RWScopeGuard4MImp<Obj, Func, A1, A2, A3, A4> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4 | ||
) |
Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3,a4)
automatically when control flow leaves the current scope.
RWScopeGuard5MImp<Obj, Func, A1, A2, A3, A4, A5> rwtMakeScopeGuardM | ( | Obj & | obj, |
Func | func, | ||
A1 | a1, | ||
A2 | a2, | ||
A3 | a3, | ||
A4 | a4, | ||
A5 | a5 | ||
) |
Template function to create an RWScopeGuard set to call obj.func(a1,a2,a3,a4,a5)
automatically when control flow leaves the current scope.
Copyright © 2021 Rogue Wave Software, Inc., a Perforce company. All Rights Reserved. |