Lines Matching refs:method
64 /** Wrap a const method that may fail to throw an Exception instead of
67 * @param[in] method (const) that return a boolean to indicate failure.
68 * @param[in] args parameters to call method call with. */
70 void mayFailCall(bool (K::*method)(MArgs...) const, Args &&... args) const
72 wrapCall<bool>(*this, method, std::forward<Args>(args)...);
75 /** Wrap a method that may fail to throw an Exception instead of retuning a
78 * @param[in] method that return a boolean to indicate failure.
79 * @param[in] args parameters to call method call with. */
81 void mayFailCall(bool (K::*method)(MArgs...), Args &&... args)
83 wrapCall<bool>(*this, method, std::forward<Args>(args)...);
86 /** Wrap a method that may indicate failure by returning a null pointer to
89 * @param[in] method that return a nullprt to indicate failure.
90 * @param[in] args parameters to call method call with. */
92 ReturnType *mayFailCall(ReturnType *(K::*method)(MArgs...), Args &&... args)
94 return wrapCall<ReturnType *>(*this, method, std::forward<Args>(args)...);
97 /** Wrap a const method that may indicate failure by returning a null pointer to
100 * @param[in] method that return a nullprt to indicate failure.
101 * @param[in] args parameters to call method call with. */
103 ReturnType *mayFailCall(ReturnType *(K::*method)(MArgs...) const, Args &&... args) const
105 return wrapCall<ReturnType *>(*this, method, std::forward<Args>(args)...);
126 static Ret wrapCall(I &instance, M method, Args &&... args)
129 auto res = (instance.*method)(std::forward<Args>(args)..., error);