Cypress
1.0
C++ Spiking Neural Network Simulation Framework
|
#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 |
Functor which can be indefinitely chained by the user to build a comperator.
|
inlineexplicit |
Constructor of the ComperatorFunctor.
f | is the comperator function underlying the functor. |
res | is the result of the previous comperator evaluation. |
|
inline |
Compares the two given values t1 and t2 and returns a new functor.
t1 | is the first value that should be compared. |
t2 | is the second value that should be compared. |
|
inline |
Returns the final result of the comparison.
const F& cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::f |
Reference to the underlying comperator function.
const int cypress::Comperator< T >::ComperatorFunctor< Threshold, F >::res |
Result of the previous evaluation of the comperator.