Cypress  1.0
C++ Spiking Neural Network Simulation Framework
Public Member Functions | Public Attributes | List of all members
cypress::Comperator< T >::ComperatorFunctor< Threshold, F > Struct Template Reference

#include <comperator.hpp>

Public Member Functions

 ComperatorFunctor (const F &f, int res=0)
 
ComperatorFunctor< Threshold, F > operator() (const T &t1, const T &t2) const
 
bool operator() () const
 

Public Attributes

const F & f
 
const int res
 

Detailed Description

template<typename T>
template<int Threshold, typename F>
struct cypress::Comperator< T >::ComperatorFunctor< Threshold, F >

Functor which can be indefinitely chained by the user to build a comperator.

Constructor & Destructor Documentation

template<typename T >
template<int Threshold, typename F>
cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::ComperatorFunctor ( const F &  f,
int  res = 0 
)
inlineexplicit

Constructor of the ComperatorFunctor.

Parameters
fis the comperator function underlying the functor.
resis the result of the previous comperator evaluation.

Member Function Documentation

template<typename T >
template<int Threshold, typename F>
ComperatorFunctor<Threshold, F> cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::operator() ( const T &  t1,
const T &  t2 
) const
inline

Compares the two given values t1 and t2 and returns a new functor.

Parameters
t1is the first value that should be compared.
t2is the second value that should be compared.
Returns
a new and updated ComperatorFunctor object.
template<typename T >
template<int Threshold, typename F>
bool cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::operator() ( ) const
inline

Returns the final result of the comparison.

Member Data Documentation

template<typename T >
template<int Threshold, typename F>
const F& cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::f

Reference to the underlying comperator function.

template<typename T >
template<int Threshold, typename F>
const int cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::res

Result of the previous evaluation of the comperator.


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