CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Public Attributes
funct::SgnStruct< T > Struct Template Reference

#include <Sgn.h>

Public Member Functions

 operator double () const
 
double operator() () const
 
 SgnStruct (const T &t)
 

Public Attributes

T _
 

Detailed Description

template<typename T>
struct funct::SgnStruct< T >

Definition at line 7 of file Sgn.h.

Constructor & Destructor Documentation

template<typename T >
funct::SgnStruct< T >::SgnStruct ( const T t)
inline

Definition at line 8 of file Sgn.h.

Member Function Documentation

template<typename T >
funct::SgnStruct< T >::operator double ( ) const
inline

Definition at line 10 of file Sgn.h.

References funct::SgnStruct< T >::_.

10 { return _() >= 0 ? 1 : -1; }
template<typename T >
double funct::SgnStruct< T >::operator() ( ) const
inline

Definition at line 9 of file Sgn.h.

References funct::SgnStruct< T >::_.

9 { return _() >= 0 ? 1 : -1; }

Member Data Documentation

template<typename T >
T funct::SgnStruct< T >::_