libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
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 >
auto operator() (apiType &api) const -> decltype(F_(api))
 Forward call to real functor.
 
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.

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 75 of file comparableFunctor.hpp.

◆ operator()() [1/3]

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

Forward call to real functor.

Definition at line 50 of file comparableFunctor.hpp.

◆ operator()() [2/3]

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 56 of file comparableFunctor.hpp.

◆ operator()() [3/3]

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 62 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 69 of file comparableFunctor.hpp.


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