CMS 3D CMS Logo

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

◆ SgnStruct()

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

Definition at line 8 of file Sgn.h.

8 : _(t) {}

Member Function Documentation

◆ operator double()

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

Definition at line 10 of file Sgn.h.

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

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

◆ operator()()

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

Definition at line 9 of file Sgn.h.

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

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

Member Data Documentation

◆ _

template<typename T >
T funct::SgnStruct< T >::_
funct::SgnStruct::_
T _
Definition: Sgn.h:11
OrderedSet.t
t
Definition: OrderedSet.py:90