test
CMS 3D CMS Logo

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

#include <Cos.h>

Public Member Functions

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

Public Attributes

T _
 

Detailed Description

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

Definition at line 9 of file Cos.h.

Constructor & Destructor Documentation

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

Definition at line 10 of file Cos.h.

10 : _(t) { }

Member Function Documentation

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

Definition at line 11 of file Cos.h.

References funct::CosStruct< T >::_, and funct::cos().

11 { return ::cos(_()); }
Cos< T >::type cos(const T &t)
Definition: Cos.h:22

Member Data Documentation

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

Definition at line 12 of file Cos.h.

Referenced by funct::CosStruct< T >::operator()().