#include <Sgn.h>
Public Member Functions | |
operator double () const | |
double | operator() () const |
SgnStruct (const T &t) | |
Public Attributes | |
T | _ |
funct::SgnStruct< T >::SgnStruct | ( | const T & | t | ) | [inline] |
funct::SgnStruct< T >::operator double | ( | ) | const [inline] |
Definition at line 10 of file Sgn.h.
References funct::SgnStruct< T >::_.
{ return _() >= 0 ? 1 : -1; }
double funct::SgnStruct< T >::operator() | ( | ) | const [inline] |
Definition at line 9 of file Sgn.h.
References funct::SgnStruct< T >::_.
{ return _() >= 0 ? 1 : -1; }
T funct::SgnStruct< T >::_ |
Definition at line 11 of file Sgn.h.
Referenced by funct::SgnStruct< T >::operator double(), and funct::SgnStruct< T >::operator()().