libTriton  version 1.0 build 1532
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. More...
 
 ComparableFunctor (Signature *F)
 Constructor. More...
 
template<class apiType , class paramType >
auto operator() (apiType &api, paramType &param) const -> decltype(F_(api, param))
 Forward call to real functor. More...
 
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. More...
 
template<class T >
bool operator== (const ComparableFunctor< T > &O) const
 Comparison of functor based on id. More...
 
template<class T >
bool operator!= (const ComparableFunctor< T > &O) const
 Comparison of functor based on id. More...
 

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.

Constructor & Destructor Documentation

◆ ComparableFunctor() [1/2]

template<class Signature >
triton::ComparableFunctor< Signature >::ComparableFunctor ( std::function< Signature >  F,
void *  ID 
)
inline

Constructor.

Definition at line 39 of file comparableFunctor.hpp.

◆ ComparableFunctor() [2/2]

template<class Signature >
triton::ComparableFunctor< Signature >::ComparableFunctor ( Signature *  F)
inline

Constructor.

Definition at line 44 of file comparableFunctor.hpp.

Member Function Documentation

◆ operator!=()

template<class Signature >
template<class T >
bool triton::ComparableFunctor< Signature >::operator!= ( const ComparableFunctor< T > &  O) const
inline

Comparison of functor based on id.

Definition at line 69 of file comparableFunctor.hpp.

◆ operator()() [1/2]

template<class Signature >
template<class apiType , class paramType >
auto triton::ComparableFunctor< Signature >::operator() ( apiType &  api,
paramType &  param 
) const -> decltype(F_(api, param))
inline

Forward call to real functor.

Definition at line 50 of file comparableFunctor.hpp.

◆ operator()() [2/2]

template<class Signature >
template<class apiType , class paramType1 , class paramType2 >
auto triton::ComparableFunctor< Signature >::operator() ( apiType &  api,
paramType1 &  param1,
paramType2 &  param2 
) const -> decltype(F_(api, param1, param2))
inline

Forward call to real functor.

Definition at line 56 of file comparableFunctor.hpp.

◆ operator==()

template<class Signature >
template<class T >
bool triton::ComparableFunctor< Signature >::operator== ( const ComparableFunctor< T > &  O) const
inline

Comparison of functor based on id.

Definition at line 63 of file comparableFunctor.hpp.


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