libTriton  version 0.7 build 1398
Public Member Functions | List of all members
triton::ComparableFunctor< Signature > Class Template Reference

#include <comparableFunctor.hpp>

Public Member Functions

 ComparableFunctor (std::function< Signature > F, void *ID)
 Constructor.
 
 ComparableFunctor (Signature *F)
 Constructor.
 
template<class apiType , class paramType >
auto operator() (apiType &api, paramType &param) const -> decltype(F_(api, param))
 Forward call to real functor.
 
template<class apiType , class paramType1 , class paramType2 >
auto operator() (apiType &api, paramType1 &param1, paramType2 &param2) 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.
 

Detailed Description

template<class Signature>
class triton::ComparableFunctor< Signature >

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.


The documentation for this class was generated from the following file: