|
libTriton version 1.0 build 1599
|
#include <comparableFunctor.hpp>
Public Member Functions | |
| ComparableFunctor (std::function< Signature > F, void *ID) | |
| Constructor. | |
| ComparableFunctor (Signature *F) | |
| Constructor. | |
| template<class apiType > | |
| auto | operator() (apiType &api) const -> decltype(F_(api)) |
| Forward call to real functor. | |
| template<class apiType , class paramType > | |
| auto | operator() (apiType &api, paramType ¶m) const -> decltype(F_(api, param)) |
| Forward call to real functor. | |
| template<class apiType , class paramType1 , class paramType2 > | |
| auto | operator() (apiType &api, paramType1 ¶m1, paramType2 ¶m2) const -> decltype(F_(api, param1, param2)) |
| Forward call to real functor. | |
| template<class T > | |
| bool | operator== (const ComparableFunctor< T > &O) const |
| Comparison of functor based on id. | |
| template<class T > | |
| bool | operator!= (const ComparableFunctor< T > &O) const |
| Comparison of functor based on id. | |
This Helper class is a wrapper around a std::function adding a comparison operator to make it searchable in a list even with lambda function.
Definition at line 29 of file comparableFunctor.hpp.
|
inline |
Constructor.
Definition at line 39 of file comparableFunctor.hpp.
|
inline |
Constructor.
Definition at line 44 of file comparableFunctor.hpp.
|
inline |
Comparison of functor based on id.
Definition at line 75 of file comparableFunctor.hpp.
|
inline |
Forward call to real functor.
Definition at line 50 of file comparableFunctor.hpp.
|
inline |
Forward call to real functor.
Definition at line 56 of file comparableFunctor.hpp.
|
inline |
Forward call to real functor.
Definition at line 62 of file comparableFunctor.hpp.
|
inline |
Comparison of functor based on id.
Definition at line 69 of file comparableFunctor.hpp.