CMS 3D CMS Logo

Public Member Functions | Public Attributes

funct::CompositionStruct< A, B > Struct Template Reference

#include <Composition.h>

List of all members.

Public Member Functions

 CompositionStruct (const A &a, const B &b)
 operator double () const
double operator() (double x) const
double operator() (double x, double y) const
double operator() () const

Public Attributes

A _1
B _2

Detailed Description

template<typename A, typename B>
struct funct::CompositionStruct< A, B >

Definition at line 7 of file Composition.h.


Constructor & Destructor Documentation

template<typename A , typename B >
funct::CompositionStruct< A, B >::CompositionStruct ( const A a,
const B b 
) [inline]

Definition at line 8 of file Composition.h.

: _1(a), _2(b) { }

Member Function Documentation

template<typename A , typename B >
funct::CompositionStruct< A, B >::operator double ( ) const [inline]

Definition at line 12 of file Composition.h.

References funct::CompositionStruct< A, B >::_1, and funct::CompositionStruct< A, B >::_2.

                            {
      return _1(_2());
    }
template<typename A , typename B >
double funct::CompositionStruct< A, B >::operator() ( double  x,
double  y 
) const [inline]

Definition at line 18 of file Composition.h.

References funct::CompositionStruct< A, B >::_1, and funct::CompositionStruct< A, B >::_2.

                                                {
      return _1(_2(x, y));
    }
template<typename A , typename B >
double funct::CompositionStruct< A, B >::operator() ( double  x) const [inline]

Definition at line 15 of file Composition.h.

References funct::CompositionStruct< A, B >::_1, and funct::CompositionStruct< A, B >::_2.

                                      {
      return _1(_2(x));
    }
template<typename A , typename B >
double funct::CompositionStruct< A, B >::operator() ( ) const [inline]

Definition at line 9 of file Composition.h.

References funct::CompositionStruct< A, B >::_1, and funct::CompositionStruct< A, B >::_2.

                              {
      return _1(_2());
    }

Member Data Documentation

template<typename A , typename B >
A funct::CompositionStruct< A, B >::_1
template<typename A , typename B >
B funct::CompositionStruct< A, B >::_2